I didn’t find any information about this. The problem - I have 2 connections to the Internet, but they have one for both gateway, how to make p2p trafic got to the wan1 and another trafic to the wan2. Thanks.
Search harder ![]()
It’s been discussed over and over here - almost a daily topic…
With one gateway??? All topics written about connection with two gateway, but I have one from ISP and two different IP on interfaces. ![]()
I mangle all other trafic(not p2p) and add one policy route for all other.
This not work.
then i mangle port 80 policy routing work good.
This is working policy route multiple gateway:
[admin@juri] ip address> pri
Flags: X - disabled, I - invalid, D - dynamic
ADDRESS NETWORK BROADCAST INTERFACE
0 82.135.243.27/24 82.135.243.0 82.135.243.255 WAN1
1 82.135.202.3/24 82.135.202.0 82.135.202.255 WAN2
[admin@juri] ip route> pri
96 A S 0.0.0.0/0 r 82.135.243.1 WAN1
r 82.135.202.1 WAN2
And then i mark all trafic:
41 ;;; all
chain=prerouting action=mark-routing new-routing-mark=all passthrough=yes
And add one route no routing mark:
[admin@juri] ip route> pri
96 A S 0.0.0.0/0 r 82.135.243.1 WAN1
And route whitch routing mark all internet not work,and p2p not coming from WAN1.
Maybe you can use two routing marks and then two default routes for this marks with different pref. sources…
Look at this picture and you will understand me, it is problem for me.
