Community discussions

 
User avatar
amt
Long time Member
Long time Member
Topic Author
Posts: 520
Joined: Fri Jan 16, 2015 2:05 pm

ECMP settings for Outgoing packets uses same routing decision

Tue Jan 08, 2019 3:43 pm

Hello,

at wiki page for Outgoing packets uses same routing decision there are few mangle rules as below;
/ ip firewall mangle
add chain=input in-interface=wlan1 action=mark-connection new-connection-mark=wlan1_conn
add chain=input in-interface=wlan2 action=mark-connection new-connection-mark=wlan2_conn
add chain=output connection-mark=wlan1_conn action=mark-routing new-routing-mark=to_wlan1     
add chain=output connection-mark=wlan2_conn action=mark-routing new-routing-mark=to_wlan2     
/ ip route
add dst-address=0.0.0.0/0 gateway=10.111.0.1 routing-mark=to_wlan1 
add dst-address=0.0.0.0/0 gateway=10.112.0.1 routing-mark=to_wlan2
I set these rules, but rules for router it self, if I want to do mangle rules for forwarded traffic what should i do ?

Thanks for help
 
User avatar
sebastia
Forum Guru
Forum Guru
Posts: 1480
Joined: Tue Oct 12, 2010 3:23 am
Location: Antwerp, BE

Re: ECMP settings for Outgoing packets uses same routing decision

Tue Jan 08, 2019 9:48 pm

in chain=prerouting
 
User avatar
amt
Long time Member
Long time Member
Topic Author
Posts: 520
Joined: Fri Jan 16, 2015 2:05 pm

Re: ECMP settings for Outgoing packets uses same routing decision

Wed Jan 09, 2019 10:09 am

in chain=prerouting
thanks sebastia,
do I need mark mark-connection ?
 
User avatar
sebastia
Forum Guru
Forum Guru
Posts: 1480
Joined: Tue Oct 12, 2010 3:23 am
Location: Antwerp, BE

Re: ECMP settings for Outgoing packets uses same routing decision

Wed Jan 09, 2019 9:23 pm

For routing management only routing-mark is needed.

Who is online

Users browsing this forum: Bing [Bot] and 5 guests