I have two ISPs at home and two Wireguard Tunnels from Server-‘X’(IP:XX.XX.XX.XX). I have upgraded my RB5009 to ROS7.1.5. As it’s now allowed to use same peer’s public key for different interfaces with new 7.1.5 update.
The Tunnel-1 goes through ISP-1 by default, as Default Route is marked on ISP-1.
I basically use, /ip routes then add the Server IP(IP:XX.XX.XX.XX) in Dst. Address:, ISP-X in Gateway: and select Routing Table: as main. Then the tunnel goes via that ISP-X.
Now my question is - how can I make my Tunnel-2 from same Server-‘X’(IP:XX.XX.XX.XX), to go via ISP-2?
Your description and requirements are not clear.
Please provide a network diagram.
Confirm that that RB5009 for both tunnels is acting as the Client device for the initial connection.
Also what type of Server are you connecting too? 3rd party VPN?
What type of traffic are you trying to push through each tunnel is it outbound only? Is it two way traffic
Will need to see config as well.
/export file=anynameyouwish
That is an assumption and seeing how wireguard routing and IP routing work hand in hand,
its likely a both issue…
Making such conclusions before getting the facts is like ejaculation ( of the premature variety ).
Is there different traffic usage of wireguard tunnels depending upon subnet on 5009 ?
Is there different traffic usage of wireguard tunnels depending upon device/user on 5009?
what type of device or service is the WIREGUARD SERVER (another MT router?, a third party service ?)
For each Tunnel the WIREGUARD Server that you are connecting too is providing:
a. different or same endpoint address??
b. different or same endpoint port ??
c. different or same IP wireguard interface address
I would like to answer Q7 so most of the first ones will be easier to understand.
Answers ~
Q7. This is a local IX connected third party server. Both of my ISPs are connected to the same IX as the server, so whenever I am connected to the Wireguard Server, I get a speed boost. Now I want to keep two wireguard tunnels connected to the same server but using both ISPs.
Q1+Q2+Q3+Q4. Some selected address where I want my boosted speed to work. i will merge both tunnels using load-balancing for those destinations only. For ex., Google Drive Downloads, Some other download sites etc.
Q5+Q6. I would say no. These tunnels, I may use them for all the users on my network and for selected addresses only. So whenever they are hitting those heavy downloading destinations, they will use local IX bandwidth and get extra speed boost.
Q8a+Q8b. Same Endpoint address and Port.
Q8c. I got two wireguard.conf from the server. And, set them up as two differnet wireguard interfaces.
By the way there is an issue with incomplete routiing…
/ip route
add disabled=no dst-address=0.0.0.0/0 gateway=wg-tunnel-1 routing-table=wg-tunnel-1
suppress-hw-offload=no
add disabled=no dst-address=0.0.0.0/0 gateway=wg-tunnel-2 routing-table=wg-tunnel-2
suppress-hw-offload=no
Tell me how the router is supposed to know which tunnel the traffic is supposed to go through if there are two options???
This is why I was asking which subnet or user is going to use wg1 and which wg2.
You need some structure or logic to the plan.!!