I've got some routing issue with my debian lenny system. I have iptables installed, and i wrote my firewall script. The system has two ethernet interfaces, and a ppp0 interface for the ADSL. The eth0 is connected to the local network, and i have a dhcp server set up for it. Untill this morning the internet connection sharing worked fine, and now it doesnt. I just cannot understand what is going on. Everything else in the firewall script is working fine except this function.
As far as i remember i didn't change any config files... And i don't have a clue what happened.
In my firewall script this is the section about masquerading:
if [ -e /proc/sys/net/ipv4/ip_forward ]; then
echo 1 > /proc/sys/net/ipv4/ip_forward
$IPT -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
$IPT -t nat -A POSTROUTING -o $EXTIF -j MASQUERADE
If you can help me and need further details, let me know what they are.