This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
networking:router:mikrotik_fw [2022/07/22 09:39] gcooper |
networking:router:mikrotik_fw [2022/07/22 10:06] (current) gcooper |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Mikrotik RouterOS Firewall ====== | ====== Mikrotik RouterOS Firewall ====== | ||
- | |||
- | FIXME Need evaluate these scripts: | ||
- | |||
- | **Free**: https:// | ||
- | |||
- | **Lite Free**: https:// | ||
- | |||
- | http:// | ||
===== Denial of Service ===== | ===== Denial of Service ===== | ||
Line 33: | Line 25: | ||
===== Destination NAT (Port Forwarding) Examples ===== | ===== Destination NAT (Port Forwarding) Examples ===== | ||
- | :!: "Destination NAT" | + | :!: '' |
- | :!: With Mikrotik RouterOS, you don't have to add a separate | + | :!: With Mikrotik RouterOS, you do not add an explicit '' |
< | < | ||
Line 54: | Line 46: | ||
http:// | http:// | ||
- | Normal ' | + | Normal |
< | < | ||
/ip firewall nat | /ip firewall nat | ||
- | + | add action=masquerade chain=srcnat comment=" | |
- | add action=masquerade chain=srcnat comment=" | + | |
</ | </ | ||
Line 83: | Line 74: | ||
===== Basic Firewall ===== | ===== Basic Firewall ===== | ||
+ | |||
+ | FIXME This basic firewall script needs modernization, | ||
Firewall/ | Firewall/ | ||
Line 152: | Line 145: | ||
==== Country Code ==== | ==== Country Code ==== | ||
- | |||
- | **Country Code List**: https:// | ||
:!: This is probably **for more powerful routers with lots of RAM** as it could add many rules. | :!: This is probably **for more powerful routers with lots of RAM** as it could add many rules. | ||
- | | + | :!: You probably want to put the rules **near the top** of the list. |
- | - Copy the '' | + | |
- | - Import the script | + | **Country Code List**: https:// |
- | - Create a firewall rule referencing the new address list | + | |
+ | | ||
+ | - **Copy the '' | ||
+ | - **Import the script** | ||
+ | - **Create a firewall rule** referencing the new address list | ||
< | < | ||
/import IP-Firewall-Address-List.rsc | /import IP-Firewall-Address-List.rsc | ||
/ip firewall filter | /ip firewall filter | ||
- | add action=drop chain=input comment=" | + | add action=drop chain=input comment=" |
- | | + | |
- | add action=drop chain=forward comment=" | + | add action=drop chain=forward comment=" |
- | | + | |
</ | </ | ||