This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
mikrotik [2021/03/13 15:30] ww [IPv4 firewall stub] |
mikrotik [2022/03/16 09:52] (current) ww |
||
|---|---|---|---|
| Line 105: | Line 105: | ||
| ===== IPv6 firewall stub ===== | ===== IPv6 firewall stub ===== | ||
| /ipv6 firewall filter | /ipv6 firewall filter | ||
| - | add chain=forward connection-state=established | + | add chain=forward connection-state=established |
| - | add chain=forward connection-state=related | + | add chain=forward connection-state=related |
| - | add chain=forward in-interface-list=WAN protocol=icmpv6 | + | add chain=forward in-interface-list=WAN protocol=icmpv6 |
| - | add chain=forward in-interface-list=WAN | + | add chain=forward in-interface-list=WAN |
| - | add chain=input | + | add chain=input |
| - | add chain=input | + | add chain=input |
| - | add chain=input | + | add chain=input |
| - | add chain=input | + | add chain=input |
| - | add chain=input | + | add chain=input |
| ---- | ---- | ||
| Line 195: | Line 195: | ||
| * Nevýhoda: Google DNS NEbude dostupné přes GW2. | * Nevýhoda: Google DNS NEbude dostupné přes GW2. | ||
| * [[https:// | * [[https:// | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== Ban list ===== | ||
| + | < | ||
| + | / ip firewall filter | ||
| + | add chain=input in-interface=ether1-wan protocol=tcp dst-port=22 \ | ||
| + | connection-state=new connection-limit=5/ | ||
| + | action=add-src-to-address-list address-list=ssh_logins \ | ||
| + | address-list-timeout=12h comment="" | ||
| + | add chain=input protocol=tcp dst-port=22 src-address-list=!ssh_logins \ | ||
| + | action=accept comment="" | ||
| + | </ | ||