| 1 | # The next line enables ssh logins from the LAN to the router | ||
| 2 | $B->iptables("-A INPUT -p tcp -s",$B->net($_),"--syn --dport ssh -j ACCEPT") foreach $B->lan_services; | ||
| 3 | |||
| 4 | # To enable ssh logins from other sources, including the Internet, uncomment the following statement | ||
| 5 | #$B->iptables(['-A INPUT -p tcp --syn --dport ssh -m limit --limit 1/s --limit-burst 10 -j ACCEPT', | ||
| 6 | # '-A INPUT -p tcp --syn --dport ssh -j DROPFLOOD']); |