1
Virtual private networks / Wireguard: Peer's port mismatches and never do handshake
« on: November 14, 2021, 08:47:00 am »
Hi there.
I am trying to connect my linux device to my opnserver. Unfortunately my linux device's port never matches and thus never do handshake.
OPNsense config
Endpoint config
Linux device wg0.conf
First I have tried without ListenPort, thus it was running at random port on linux device.
When I see OPN senses config, I see below.
For example in this case it's trying to connect back port 44000.
If I intentionally change to 44000 in Linux device with ListenPort declaration, OPNsense's endpoint's port will change to random port.
What could be the issue. I have allowed 52820 on firewall. Thanks in advance.
I am trying to connect my linux device to my opnserver. Unfortunately my linux device's port never matches and thus never do handshake.
OPNsense config
Endpoint config
Linux device wg0.conf
First I have tried without ListenPort, thus it was running at random port on linux device.
When I see OPN senses config, I see below.
For example in this case it's trying to connect back port 44000.
If I intentionally change to 44000 in Linux device with ListenPort declaration, OPNsense's endpoint's port will change to random port.
What could be the issue. I have allowed 52820 on firewall. Thanks in advance.