Quote:
Originally Posted by chymeira
This is what i have done so far :
$>echo "1" > /proc/sys/net/ipv4/ip_forward
i have two interfaces : ppp0 which is connected to the internet and eth0
$>iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
for my other computers , the default gateway is my eth0 .
|
Thank you.
You also need to make sure the other computers have correct values for the DNS servers. The easiest thing (with just a few computers) is to set these to the same values as your gateway machine (the one with the DSL connection). There is probably a way to do this with GUIs. Or it might just be easier to copy the /etc/resolv.conf file from your gateway machine to each of the other machines (must be done as
root).
If/when you have DNS set up correctly, if it still doesn't work, please post the results of:
Code:
route -n
iptables -nvL FORWARD
(The
iptables command must be run as
root. Any user may run the
route command.)
Quote:
im not sure if i have all the needed modules loaded , can u plz list them .
|
I have never explicitly loaded modules for this. (Some are automatically loaded as a result of
iptables commands.) For some purposes you may need to explicitly load some modules, but for simple browsing you shouldn't need to.