This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
mikrotik [2021/02/04 22:57] ww [IPv6 firewall stub] |
mikrotik [2022/03/16 09:52] (current) ww |
||
|---|---|---|---|
| Line 85: | Line 85: | ||
| /ip route add gateway=ether2-wan2 routing-mark=routing_mark_guests </ | /ip route add gateway=ether2-wan2 routing-mark=routing_mark_guests </ | ||
| - Set up masquerade for the second wan interface (assuming that masquerade was set up only for the '' | - Set up masquerade for the second wan interface (assuming that masquerade was set up only for the '' | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== IPv4 firewall stub ===== | ||
| + | /ip firewall filter | ||
| + | add chain=forward | ||
| + | add chain=forward | ||
| + | add chain=forward | ||
| + | add chain=forward | ||
| + | | ||
| + | | ||
| + | add chain=input | ||
| + | add chain=input | ||
| + | add chain=input | ||
| + | add chain=input | ||
| ---- | ---- | ||
| Line 90: | 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 180: | 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="" | ||
| + | </ | ||