Log in

No account? Create an account
Core Dump
IP Forwarding 
5th-Jun-2007 06:12 pm
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 -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.
5th-Jun-2007 03:18 pm (UTC)
"But let me tell you I made a small script."


what happened to attribution!!

6th-Jun-2007 03:45 am (UTC) - Mr.Anonymous
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!!!
This page was loaded Sep 19th 2018, 11:22 pm GMT.