OPNsense Forum

English Forums => Virtual private networks => Topic started by: 0xDEADC0DE on January 28, 2023, 11:39:22 pm

Title: Wireguard multiple WAN ports
Post by: 0xDEADC0DE on January 28, 2023, 11:39:22 pm
I'm often in Dubai, VPN is legal but often filtered in Hotels.
I have a Wireguard server running on OPNsense and it's working great but sometimes in the Hotels they start blocking this port. So as an alternative I wanted to add more ports I can use as fallbacks.

First try was to clone the whole Wireguard server with all assigned endpoints.
They get new interfaces wg1 to wg3 but don't appear in the interfaces overview.
Only when I create a new server and not clone one.
So I thought a new config makes more work and I tried to go to the firewall and
and route all ports 51821 to 52825 to the same local port 51820 so Wireguard is working.
I could get it working, so any hints if this is even possible would be helpfull.

Title: Re: Wireguard multiple WAN ports
Post by: newsense on January 30, 2023, 02:17:24 am
Run Wireguard on 443, and if they block your IP run WG:443 in a cloud vm.
Title: Re: Wireguard multiple WAN ports
Post by: 0xDEADC0DE on January 30, 2023, 05:01:03 pm
This wouldn't solve my problem as they would block port 443 then.
That's why I want to use ports 80, 443, 53 and some more.
If they block one port, I just use another one until the first one is released.
Title: Re: Wireguard multiple WAN ports
Post by: tiermutter on January 30, 2023, 06:14:48 pm
Sure they will block 443 so that most / all website access will be denied? :o
You may use multiple WG server instances using different ports...
Title: Re: Wireguard multiple WAN ports
Post by: 0xDEADC0DE on January 30, 2023, 07:16:56 pm
They block port and ip, and they don't care if they would block 443 for me at all.

And that was my question how multiple WG server instances work as I couldn't get it running.
My preference would be to have multiple external ports open that all route to the same port on
the OPNsense to the same WG server instance.