Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
18 ;;; 7/0 goes to WAN1
chain=prerouting action=mark-connection new-connection-mark=WAN1_conn passthrough=yes
dst-address-type=!local in-interface=LAN1 connection-mark=no-mark
per-connection-classifier=both-addresses-and-ports:7/0
19 ;;; 7/1 goes to WAN2
chain=prerouting action=mark-connection new-connection-mark=WAN2_conn passthrough=yes
dst-address-type=!local in-interface=LAN1 connection-mark=no-mark
per-connection-classifier=both-addresses-and-ports:7/1
20 ;;; 7/2 goes to WAN1
chain=prerouting action=mark-connection new-connection-mark=WAN3_conn passthrough=yes
dst-address-type=!local in-interface=LAN1 connection-mark=no-mark
per-connection-classifier=both-addresses-and-ports:7/2
21 ;;; 7/3 goes to WAN3
chain=prerouting action=mark-connection new-connection-mark=WAN3_conn passthrough=yes
dst-address-type=!local in-interface=LAN1 connection-mark=no-mark
per-connection-classifier=both-addresses-and-ports:7/3
22 ;;; 7/4 goes to WAN2
chain=prerouting action=mark-connection new-connection-mark=WAN2_conn passthrough=yes
dst-address-type=!local in-interface=LAN1 connection-mark=no-mark
per-connection-classifier=both-addresses-and-ports:7/4
23 ;;; 7/5 goes to WAN1
chain=prerouting action=mark-connection new-connection-mark=WAN1_conn passthrough=yes
dst-address-type=!local in-interface=LAN1 connection-mark=no-mark
per-connection-classifier=both-addresses-and-ports:7/5
24 ;;; 7/6 goes to WAN2
chain=prerouting action=mark-connection new-connection-mark=WAN2_conn passthrough=yes
dst-address-type=!local in-interface=LAN1 connection-mark=no-mark
per-connection-classifier=both-addresses-and-ports:7/6
26 ;;; Clear local routing marks
chain=prerouting action=mark-connection new-connection-mark=no-mark passthrough=yes
src-address=192.168.0.0/24 dst-address=192.168.0.0/24 dst-address-type="" in-interface=LAN1
connection-mark=!no-mark
27 ;;; conn mark WAN1 mark routing WAN1
chain=prerouting action=mark-routing new-routing-mark=to_WAN1 passthrough=yes in-interface=LAN1
connection-mark=WAN1_conn
28 ;;; conn mark WAN2 mark routing WAN2
chain=prerouting action=mark-routing new-routing-mark=to_WAN2 passthrough=yes in-interface=LAN1
connection-mark=WAN2_conn
29 ;;; conn mark WAN3 mark routing WAN3
chain=prerouting action=mark-routing new-routing-mark=to_WAN3 passthrough=yes in-interface=LAN1
connection-mark=WAN3_conn
30 ;;; output to WAN1
chain=output action=mark-routing new-routing-mark=to_WAN1 passthrough=yes connection-mark=WAN1_conn
31 ;;; output to WAN2
chain=output action=mark-routing new-routing-mark=to_WAN1 passthrough=yes connection-mark=WAN2_conn
32 ;;; output to WAN3
chain=output action=mark-routing new-routing-mark=to_WAN3 passthrough=yes connection-mark=WAN3_conn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment