forked from freifunk-franken/firmware
Statefull Inspektion for WAN Interface
On a router wich is directly connected to the internet, there is lot of traffix on the WAN port. E.g. ssh bruteforces. That's like a DOS for a small device. This fixes #395 Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
This commit is contained in:
parent
a4499d466b
commit
bf9c42a24c
|
@ -43,3 +43,8 @@
|
|||
|
||||
#solves MTU problem with bad ISP´s
|
||||
iptables -A FORWARD -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
|
||||
|
||||
# Wenn ein router direkt am Netz hängt, ist er auch ssh Angriffen ausgesetzt.
|
||||
# Das wirkt bei kleinen Geräten wir ein DOS
|
||||
iptables -I INPUT -i eth0.2 -m state --state RELATED,ESTABLISHED -j ACCEPT
|
||||
iptables -I INPUT -i eth0.2 -j DROP
|
||||
|
|
Loading…
Reference in New Issue
Block a user