Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- iptables -N wanout
- iptables -I INPUT -i `nvram get lan_ifname` -j wanout
- iptables -I FORWARD -i `nvram get lan_ifname` -j wanout
- WOUT="/tmp/wanout"
- echo 'iptables -I wanout -j ACCEPT' > $WOUT
- chmod 777 $WOUT
- $WOUT '-s 192.168.1.2'
- $WOUT '-s 192.168.1.3'
- $WOUT '-s 192.168.1.4'
- $WOUT '-s 192.168.1.5'
- $WOUT '-s 192.168.1.6'
- $WOUT '-s 192.168.1.7'
- $WOUT '-s 192.168.1.8'
- $WOUT '-s 192.168.1.9'
- $WOUT '-s 192.168.1.10'
- $WOUT '-s 192.168.1.11'
- $WOUT '-s 192.168.1.12'
- $WOUT '-s 192.168.1.13'
- $WOUT '-s 192.168.1.14'
- $WOUT '-s 192.168.1.15'
- $WOUT '-s 192.168.1.16'
- $WOUT '-s 192.168.1.17'
- $WOUT '-s 192.168.1.18'
- $WOUT '-s 192.168.1.19'
- $WOUT '-s 192.168.1.20'
- $WOUT '-d www.SITEHERE.com'
- iptables -A wanout -j REJECT --reject-with icmp-proto-unreachable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement