Wireguard weird behavior
-
Hello,
I have installed wg in pf and acting as client, my problem come if my wan connection is resetting then my wg connection also go down and never come back.
But if i go to my wg tunnel (pf side) and i change the listen port from 6669 to default(51820) then my wg connection is coming up and is working, even if its the wrong port, because on the wg server is set to listen on port 6669. If my connection is going down again i need to set again another port. -
@lcbbcl Maybe you got a new dynamic WAN-IP? And if you are changing the port that means you are connecting again, the other site can not reach you.
Who has a static IP in your case? Show your config.
-
@Bob-Dig No dynamic ip involved , my home connection and also the remote server have static ip(public).
But still why wg tunnel come up and working if the listen port is wrong? -
@lcbbcl It only needs one but it would be much better if both could connect. If you have static IPs on both ends then there shouldn't be a problem at all. Maybe your config is flawed or your install.
-
-
@lcbbcl Nice video. You also have a non functional "WAN". What is set as the Default gateway in pfSense? You should switch it to the PPPoE I guess.
And it will take time if you loose your internet connection, I would guess. So maybe you find a faster way to reset the wireguard connection, changing the port probably not the best idea.
I would check if you have public reachable ports on your site to begin with. -
@Bob-Dig My wan is ppoe with vlan, the other wan is the nic interface (parent).
I will try later when i go home, if ports remain up for wg and for that reason i need to use another port to bring up the connection.
It is still werid why wg tunnel is working with different port.