Sir,
I have 2 WANs with Public IP
I want WAN1 to respond to Wireguard interface A at port 13231
I want WAN2 to respond to Wireguard interface B at port 13232
How can I do that?
Regards
Sir,
I have 2 WANs with Public IP
I want WAN1 to respond to Wireguard interface A at port 13231
I want WAN2 to respond to Wireguard interface B at port 13232
How can I do that?
Regards
As there is no option to specify the interface or IP address to bind the wireguard service to, I would just add the ports and handle it by firewall:
/interface/wireguard
add listen-port=13231 name=wireguard1
add listen-port=13232 name=wireguard2
/ip/firewall/filter
add action=accept chain=input dst-port=13231 dst-address=[WAN1 IP] protocol=udp
add action=accept chain=input dst-port=13232 dst-address=[WAN2 IP] protocol=udp
I have pcc load balance.
So I want when ISP1 goes down user can connect to ISP 2
So I can also add the IP address of WAN-1 in the client Endpoint in Peer?
Regards
The question I have is WHY? As a backup?
If you have wireguard setup on WAN1, and WAN1 fails and your router moves to using WAN2, your wireguard will also shift to WAN2 after some period of delay.
If your purpose is to provide different access for different users, that starts to make a little sense but that can be accommodated on a single wireguard interface.
So just need to understand the requirement.
I have setup something similar, with Wireguard set to Wan2 and IP-IP with ipsec secret setup on WAN2.
This provides me with a backup and a different protocol, but I could just wait for wireguard to show up on WAN2.