Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I am trying to set up a Linux Home Server *CentOS) with 2 NICs. I want my client machine's Inetrnet to route through this server which will act as ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2011
    Posts
    1

    Set up Home Server


    Hi,
    I am trying to set up a Linux Home Server *CentOS) with 2 NICs.
    I want my client machine's Inetrnet to route through this server which will act as Firewall.
    I have a seperate Modem/Router connected to the server.
    Any idea how I can achieve this. I am able to connect to Internet from the server but not from the client.

  2. #2
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,932
    What you're trying to do is to set up IP Masquerading, you use iptables to accomplish this. You end up with a 'public' side of your firewall machine (your CentOS server) using your public IP address and a 'private' side using IP addresses in the private range. You can Google up "IP Masquerading with iptables", there's plenty of help out there and its usually explained a lot better than we can do it here in just a couple of forum posts.

    You might want to start here

    There is an alternative too - on my home LAN I have a separate computer for the firewall, and I run Smoothwall Express on that (a Linux distro that turns on old computer into a firewall). It's made up of old junk parts and cast-offs from upgrades over the years, but it means I don't have to get hands-on and dirty with iptables.
    Linux user #126863 - see http://linuxcounter.net/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •