sahat:~ # clear
sahat:~ # iptables -A FORWARD -o eth1 -i ! eth0 -j ACCEPT
sahat:~ # iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
sahat:~ # iptables -A FORWARD -f -j ACCEPT
sahat:~ # iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sahat:~ # echo "1" > /proc/sys/net/ipv4/ip_forward
sahat:~ # service network restart
Saturday, August 30, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment