All pastes #241028 Raw Edit

Miscellany

public text v1 · immutable
·published 2006-11-06 00:05 UTC
rendered paste body
#!/bin/sh


iptables --flush                           
iptables --table nat --flush
iptables --delete-chain                    
iptables --table nat --delete-chain


iptables -A PREROUTING -t nat -j DNAT --to 192.168.10.250


# Set up IP FORWARDing and Masquerading
iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables -A FORWARD --in-interface eth1 -j ACCEPT      

echo 1 > /proc/sys/net/ipv4/ip_forward