All pastes #175454 Raw Edit

Untitled

public text v1 · immutable
·published 2006-09-18 20:04 UTC
rendered paste body
#!/bin/sh
#
# rc.basicnat:  IPTABLES based NAT routing over ppp0
#
# Put any local setup commands in here:

iptables --flush
iptables -X

iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE

iptables -A FORWARD -s 192.168.0.0/24 -j ACCEPT
iptables -A FORWARD -d 192.168.0.0/24 -j ACCEPT
iptables -A FORWARD -s ! 192.168.0.0/24 -j DROP