All pastes #180947 Raw Edit

InitHello

public shellscript v1 · immutable
#180947 ·published 2006-09-24 10:27 UTC
rendered paste body
#!/bin/shiptables --flushiptables --table nat --flushiptables --delete-chainiptables --table nat --delete-chainiptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADEiptables -A FORWARD -i eth1 -j ACCEPTiptables -t nat -A PREROUTING -p tcp --dport 10000:19999 -j DNAT --to-destination 192.168.0.2iptables -t nat -A PREROUTING -p udp --dport 10000:19999 -j DNAT --to-destination 192.168.0.2iptables -t nat -A PREROUTING -p tcp --dport 20000:29999 -j DNAT --to-destination 192.168.0.3iptables -t nat -A PREROUTING -p udp --dport 20000:29999 -j DNAT --to-destination 192.168.0.3iptables -t nat -A PREROUTING -p tcp --dport 30000:39999 -j DNAT --to-destination 192.168.0.4iptables -t nat -A PREROUTING -p udp --dport 30000:39999 -j DNAT --to-destination 192.168.0.4iptables -t nat -A PREROUTING -p tcp --dport 40000:49999 -j DNAT --to-destination 192.168.0.5iptables -t nat -A PREROUTING -p udp --dport 40000:49999 -j DNAT --to-destination 192.168.0.5echo 1 > /proc/sys/net/ipv4/ip_forward