Advertisement
TheBiagio1996

Mangle rules PCC 3 WANs

Nov 7th, 2024 (edited)
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.69 KB | None | 0 0
  1. /ip firewall mangle
  2. add action=accept chain=prerouting dst-address=192.168.10.0/24 in-interface=bridge_LAN
  3. add action=accept chain=prerouting dst-address=192.168.11.0/24 in-interface=bridge_LAN
  4. add action=accept chain=prerouting dst-address=192.168.15.0/24 in-interface=bridge_LAN
  5. add action=mark-connection chain=input connection-state=new in-interface=DIMENSIONE-WAN new-connection-mark=DIMENSIONE_conn
  6. add action=mark-connection chain=input connection-state=new in-interface=ether1-TIM new-connection-mark=TIM_conn passthrough=yes
  7. add action=mark-connection chain=input connection-state=new in-interface=ether3-EOLO-FWA new-connection-mark=EOLO_conn
  8. add action=mark-connection chain=output connection-mark=no-mark connection-state=new new-connection-mark=TIM_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:3/0
  9. add action=mark-connection chain=output connection-mark=no-mark connection-state=new new-connection-mark=DIMENSIONE_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:3/1
  10. add action=mark-connection chain=output connection-mark=no-mark connection-state=new new-connection-mark=EOLO_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:3/2
  11. add action=mark-connection chain=prerouting connection-mark=no-mark connection-state=new dst-address-type=!local in-interface=bridge_LAN new-connection-mark=TIM_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:3/0
  12. add action=mark-connection chain=prerouting connection-mark=no-mark connection-state=new dst-address-type=!local in-interface=bridge_LAN new-connection-mark=DIMENSIONE_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:3/1
  13. add action=mark-connection chain=prerouting connection-mark=no-mark connection-state=new dst-address-type=!local in-interface=bridge_LAN new-connection-mark=EOLO_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:3/2
  14. add action=mark-routing chain=output connection-mark=TIM_conn new-routing-mark=TIM
  15. add action=mark-routing chain=prerouting connection-mark=TIM_conn in-interface=bridge_LAN new-routing-mark=TIM
  16. add action=mark-routing chain=output connection-mark=DIMENSIONE_conn new-routing-mark=DIMENSIONE
  17. add action=mark-routing chain=prerouting connection-mark=DIMENSIONE_conn in-interface=bridge_LAN new-routing-mark=DIMENSIONE passthrough=yes
  18. add action=mark-routing chain=output connection-mark=EOLO_conn new-routing-mark=EOLO passthrough=yes
  19. add action=mark-routing chain=prerouting connection-mark=EOLO_conn in-interface=bridge_LAN new-routing-mark=EOLO passthrough=yes
  20. add action=mark-routing chain=output comment="DDNS Mikrotik Cloud" dst-address-list=mikrotik-cloud new-routing-mark=DIMENSIONE passthrough=no
Tags: ROS 7.16.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement