Results 1 to 8 of 8
Thread: Internet Connection Sharing
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
12-09-2004 #1
- Join Date
- May 2004
- Location
- Malta
- Posts
- 41
Internet Connection Sharing
I have a linux box (running Fedora Core 2) that I want to setup as a gateway. eth0 of this machine is connected to the ADSL modem, while eth1 is configured as a DHCP server (using dhcpd).
Now I am trying to setup internet connection sharing for machines on my internal network. To do this, I have enabled IP forwarding from /proc/sys/net/ipv4/ip_forward and changed the value of the net.ipv4.ip_forward field in /etc/sysctl.conf. I have also added the following rule to the nat table of the iptables firewall.
Code:iptables -t nat -A POSTROUTING -j MASQUERADE
My dhcp.conf file contains
Code:ddns-update-style interim; subnet 192.168.0.0 netmask 255.255.255.0 { option routers 192.168.0.1; option subnet-mask 255.255.255.0; option broadcast-address 192.168.0.255; range 192.168.0.2 192.168.0.254; }
is-serp
-
12-09-2004 #2
well are you running a DNS server as well?
-lakerdonald
-
12-09-2004 #3
- Join Date
- May 2004
- Location
- Malta
- Posts
- 41
Originally Posted by lakerdonald
Thanks
is-serp
-
12-09-2004 #4
perhaps you should set the clients' dns to the actual dns servers themselves, instead of the modem.
-lakerdonald
-
12-09-2004 #5
- Join Date
- May 2004
- Location
- Malta
- Posts
- 41
Originally Posted by lakerdonald
Thanks
is-serp
-
12-09-2004 #6
- Join Date
- Nov 2004
- Location
- Montreal, Canada
- Posts
- 1,267
I do have the same setup as you, Dynamic IP but, but the modem can connect automaticly to ISP, and my box connect to modem... You need to specify the DNS for this action unfortunatly. They are almost always permanent, My ISP only changed it once in the last 10 years (Sympatico High Speed, Canada) so you shouldnt worry about setting the DNS. You can put it automaticly, but DNS resolving will work 10-15% of the time,... which isnt what your looking for.
\"Meditative mind\'s is like a vast ocean... whatever strikes the surface, the bottom stays calm\" - Dalai Lama
\"Competition ultimatly comes down to one thing... a loser and a winner.\" - Ugo Deschamps
-
12-09-2004 #7
i think you should just keep the clients the way they are, by just having the dns manually set.
-lakerdonald
-
12-09-2004 #8
- Join Date
- May 2004
- Location
- Malta
- Posts
- 41
Originally Posted by UgoDeschamps
Thanks
is-serp