Yesterday "Java man" made fun of me by saying that if I don't work out IP Forwarding he will install squid guard in my laptop. The purpose is to browse the internet. But let me tell you I made a small script.
# delete all existing rules.
iptables -t nat -F
iptables -t mangle -F
# Always accept loopback traffic
iptables -A INPUT -i lo -j ACCEPT
# Allow outgoing connections from the LAN side.
iptables -A FORWARD -i eth1 -o eth2 -j ACCEPT
# Enable routing.
echo 1 > /proc/sys/net/ipv4/ip_forward
Now I think we could share the internet!!! So I think now you shouldn't install squid guard in my laptop.