internet sharing with centOS

Discussion in 'Installation/Configuration' started by sam_rag, Feb 13, 2007.

  1. sam_rag

    sam_rag New Member

    Dear everyone!

    i have been using adsl connection to share internet for whole network using gateway of (for test purpose) with dns address
    i tried internet browsing with a linux terminas(centOS) with ip

    I want to use the linux as an internet gateway. so i tried using 2 ethernet cards so i configured them as
    eth0: ip address:
    eth1: ip address:
    dns address:

    i wanted to test if i could share the internet from another subnetwork with ip via with gateway configured as

    now i can ping from the remote computer to both and

    but internet sharing is not happening

    i tried all the steps mentioned by

    i wanted to make sure internet sharing happens.. so that i can completely shift to linux for internet sharing..

    thanks in advance..
  2. martinfst

    martinfst ISPConfig Developer ISPConfig Developer

    This address should be configured on one of your ethernet cards then ....
    Did you get this address from your ISP?
  3. sam_rag

    sam_rag New Member

    yeah that dns address was supplied by the isp provider
    moreover, i believe there are something to do with the iptables and nat
    could you please guide me the way?
    thanks again
    Last edited: Feb 14, 2007
  4. falko

    falko Super Moderator ISPConfig Developer

    If you want to use your system as a router, you should try a distribution that is tailored for your needs such as IPCop.
  5. sam_rag

    sam_rag New Member

    hey it worked.. !
    there was some conflicting regarding /etc/hosts file.
    still more experimenting to do..
    messenger etc are working
    now i want to learn more..
  6. sam_rag

    sam_rag New Member

    now i am trying to install squid for proxy..
    i downloaded and compiled..
    i tried to follow
    but its kinda confusing for a starter like me..
    i believe there are easier ways..
    i would appreciate if you share your experience
    thanks in advance..
  7. falko

    falko Super Moderator ISPConfig Developer

    Isn't there a Squid package available for CentOS? That would save you from compiling Squid yourself.

Share This Page