IP Forwarding

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.

#!/bin/sh

#
# delete all existing rules.
#
iptables -F
iptables -t nat -F
iptables -t mangle -F
iptables -X

# 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.

Comments (2)

anonymousJune 5th, 2007 at 8:48 pm

“But let me tell you I made a small script.”

?????

what happened to attribution!!

sujith_hJune 6th, 2007 at 9:15 am

Hey please address yourself, otherwise its very difficult for
me to know who you are!!! And by the way I am not a script
junky I was made!!!

Leave a comment

Your comment