wireguard-docs
wireguard-docs copied to clipboard
Wireguard Client , allow connection on x port
Can read more there https://github.com/hwdsl2/setup-ipsec-vpn/issues/1059
not sure what you're asking for... Isn't this just https://github.com/pirate/wireguard-docs#ListenPort ?
I have a VPS with Ipsec (L2PT Server) and client wireguard, to connect to an external wireguard server.
So, I can connect perfectly to the L2PT, but once I start the wireguard client, the L2PT disconnects, that is, it expels me, if I turn off the wireguard client, I can connect again without problems
You tried using a different port for WireGuard?
This is an example of a client wireguar configuration, there is nothing related to ports. Anyway, L2PT uses ports 500 and 4500
[Interface]
PrivateKey = <redacted>
Address = 10.66.66.6/32,fd42:42:42::6/128
DNS = 1.1.1.1,1.0.0.1
# Configuration allow ssh ip vps
PostUp = ip rule add table 200 from <ip-vps>
PostUp = ip route add table 200 default via <gw-vps>
PreDown = ip rule delete table 200 from <ip-vps>
PreDown = ip route delete table 200 default via <gw-vps>
[Peer]
PublicKey = <redacted>
PresharedKey = <redacted>
Endpoint = ipserver-external:443
AllowedIPs = 0.0.0.0/0