Untitled
public text v1 · immutable#!/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