1
0
Fork 0
mirror of https://github.com/dirtbags/moth.git synced 2025-01-06 03:50:56 -07:00
moth/doc/openwrt/iptables
2010-10-21 16:06:24 -06:00

27 lines
447 B
Bash
Executable file

#! /bin/sh /etc/rc.common
START=45
STOP=89
VLANS=48
start () {
stop
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -A INPUT -p udp --dport 67 -j ACCEPT
iptables -A INPUT -p icmp --icmp-type echo-request -j ACCEPT
iptables -A INPUT -s 10.0.0.0/16 -j ACCEPT
iptables -A INPUT -j REJECT
}
stop () {
iptables -F INPUT
iptables -F OUTPUT
iptables -F FORWARD
}