wireguard-docs icon indicating copy to clipboard operation
wireguard-docs copied to clipboard

Wireguard Client , allow connection on x port

Open AnonymousWebHacker opened this issue 2 years ago • 4 comments

Can read more there https://github.com/hwdsl2/setup-ipsec-vpn/issues/1059

AnonymousWebHacker avatar Nov 28 '21 18:11 AnonymousWebHacker

not sure what you're asking for... Isn't this just https://github.com/pirate/wireguard-docs#ListenPort ?

pirate avatar Dec 03 '21 23:12 pirate

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

AnonymousWebHacker avatar Dec 04 '21 06:12 AnonymousWebHacker

You tried using a different port for WireGuard?

pirate avatar Dec 05 '21 01:12 pirate

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

AnonymousWebHacker avatar Dec 05 '21 02:12 AnonymousWebHacker