Categorieën
IPTABLES Uncategorized

IPTABLES

NAT & Port Forwarding

  • iptables -A OUTPUT -o eth1 -j ACCEPT
  • iptables -A INPUT -i eth1 -j ACCEPT
  • iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
  • iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
  • iptables-save > /etc/iptables/rules.v4