sujith_h ([info]sujith_h) wrote,

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.

  • Post a new comment

    Error

  • 2 comments

Anonymous

June 5 2007, 15:18:14 UTC 4 years ago

"But let me tell you I made a small script."

?????

what happened to attribution!!

[info]sujith_h

June 6 2007, 03:45:39 UTC 4 years ago

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!!!
Create an Account
Forgot your login or password?
Facebook Twitter More login options
English • Español • Deutsch • Русский…