All pastes #815490 Raw Edit

iptables so far

public text v1 · immutable
·published 2007-12-14 03:02 UTC
rendered paste body
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
# firewall for webmin
iptables -A INPUT -p tcp -i eth0 -s 0/0 -d 0/0 --dport 10000 -j REJECT
# IP forwarding tables
echo "1" > /proc/sys/net/ipv4/ip_forward
echo "1" > /proc/sys/net/ipv4/ip_dynaddr
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
iptables -A FORWARD -i eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE