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 [2021/03/10 07:58] 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 150: | Line 143: | ||
http:// | http:// | ||
+ | |||
+ | ==== Country Code ==== | ||
+ | |||
+ | :!: 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. | ||
+ | |||
+ | **Country Code List**: https:// | ||
+ | |||
+ | - **Create the script/ | ||
+ | - **Copy the '' | ||
+ | - **Import the script** | ||
+ | - **Create a firewall rule** referencing the new address list | ||
+ | |||
+ | < | ||
+ | /import IP-Firewall-Address-List.rsc | ||
+ | /ip firewall filter | ||
+ | add action=drop chain=input comment=" | ||
+ | log-prefix=" | ||
+ | add action=drop chain=forward comment=" | ||
+ | log-prefix=" | ||
+ | </ | ||
==== FTP ==== | ==== FTP ==== |