現在用這方法去動態留意 Whatsapp使用的IP,然後在指定時間內禁止使用- /ip firewall mangle
- add action=add-dst-to-address-list address-list=Whatsapp \
- address-list-timeout=10m chain=prerouting content=whatsapp.com dst-port=\
- 80 in-interface=!wan protocol=tcp
- add action=add-dst-to-address-list address-list=Whatsapp \
- address-list-timeout=10m chain=prerouting content=whatsapp.com dst-port=\
- 443 in-interface=!wan protocol=tcp
- add action=add-dst-to-address-list address-list=Whatsapp \
- address-list-timeout=10m chain=prerouting content=whatsapp.com dst-port=\
- 5222 in-interface=!wan protocol=tcp
- add action=add-dst-to-address-list address-list=Whatsapp \
- address-list-timeout=10m chain=prerouting content=whatsapp.com dst-port=\
- 5223 in-interface=!wan protocol=tcp
- add action=add-dst-to-address-list address-list=Whatsapp \
- address-list-timeout=10m chain=prerouting content=whatsapp.com dst-port=\
- 5228 in-interface=!wan protocol=tcp
複製代碼- /ip firewall filter
- add action=drop chain=forward comment="Whatsapp Drop" dst-address-list=\
- Whatsapp time=9h-11h59m59s,sun,mon,tue,wed,thu,fri,sat
- add action=drop chain=input comment="Whatsapp Drop" src-address-list=Whatsapp \
- time=9h-11h59m59s,sun,mon,tue,wed,thu,fri,sat
複製代碼 |