the Internet connection sharing problem the set
"""" Let's get started then:
Edit /etc/sysconfig/network-scripts/ifcfg-eth0 - This is the main config file for the first (internet facing) interface.
It should read : (you can leave out anything on a line after #)
Edit /etc/sysconfig/network-scripts/ifcfg-eth1 - This is the main config file for the second (LAN facing) interface.
It should read :
/etc/resolv.conf should contain the nameserver address(es) - put the address of your ISPs nameserver right at the top. eg:
nameserver 188.8.131.52You can have multiple nameserver xxx.xxx.xxx.xxx lines - the resolver will try them all in turn if one fails
The default gateway and your hostname go in /etc/sysconfig/network:
We then need to set up packet forwarding:
Put the following command at the beginning of /etc/sysctl.conf
Then 'turn off' the redirection to squid:
Install iptables - type "urpmi iptables" as root, or use the package manager in the start menu or mcc
Add the following code to the bottom of /etc/rc.d/rc.local.
iptables -t nat -D PREROUTING -i eth0 -j loc_dnatThis will delete a rule from your firewall - later, when you understand more, you can change shorewall and remove this line, but for now we'll keep it simple.