All pastes #337957 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-02-03 02:04 UTC
rendered paste body
iptables --flush 
iptables --table nat --flush
iptables -Z
iptables --delete-chain 
iptables --table nat --delete-chain 
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -A INPUT -i lo -j ACCEPT && echo "regla 10 ok"
iptables -I OUTPUT -p tcp -j ACCEPT
iptables -I OUTPUT -p udp -j ACCEPT
iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE                      
iptables --append FORWARD --in-interface eth1 -j ACCEPT