All pastes #493845 Raw Edit

Mine

public text v1 · immutable
·published 2007-05-17 23:40 UTC
rendered paste body
#!/bin/sh
#Sets up the server as a router
iptables -t filter -F
iptables -t filter -X
iptables -t filter -P INPUT ACCEPT
iptables -t filter -P FORWARD DROP
iptables -t filter -P OUTPUT ACCPT
iptables -t nat -F
iptables -t nat -X
iptables -t nat -I POSTROUTING 1 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t filter -A FORWARD -i wlan0 -o eth0 -p 6 -s 0.0.0.0/0 -d 192.168.2.2 --dport 6667 -j ACCEPT
iptables -t nat -A PREROUTING -p 6 -s 0.0.0.0/0 -d 192.168.1.103 --dport 6667 -j DNAT --to 192.168.2.2:6667

ifconfig eth0 192.168.2.1 


/etc/init.d/bind9 restart