#Incoming SSH traffic from Internet
$IPTABLES -N allow-ssh-traffic-in
$IPTABLES -F allow-ssh-traffic-in
#Flood protection
$IPTABLES -A allow-ssh-traffic-in -i $WAN -m limit --limit 1/second -p tcp --tcp-flags ALL RST --dport ssh -j ACCEPT
$IPTABLES -A allow-ssh-traffic-in -i $WAN -m limit --limit 1/second -p tcp --tcp-flags ALL FIN --dport ssh -j ACCEPT
$IPTABLES -A allow-ssh-traffic-in -i $WAN -m limit --limit 1/second -p tcp --tcp-flags ALL SYN --dport ssh -j ACCEPT
$IPTABLES -A allow-ssh-traffic-in -i $WAN -m state --state RELATED,ESTABLISHED -p tcp --dport ssh -j ACCEPT
auto br0
iface br0 inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
bridge_ports eth0
post-up /etc/network/iptables.rules
post-up /usr/sbin/brctl addif br0 wlan0
post-up /etc/init.d/dhcp3-server restart
post-up /etc/init.d/linux-igd restart
post-up /etc/init.d/hostapd restart
post-up /etc/init.d/smbd restart