pia-foss / manual-connections

Scripts for manual connections to Private Internet Access
MIT License
620 stars 170 forks source link

fix port forwarding call from connect_to_wireguard_with_token.sh #185

Open fholzer opened 9 months ago

fholzer commented 9 months ago

connect_to_wireguard_with_token.sh seems to call port_forwarding.sh with the external VPN server IP, which results in a 401, failing to set up port forwarding. This PR fixes that by extracting the server_vip from the response payload in connect_to_wireguard_with_token.sh and passing it to port_forwarding.sh as PF_GATEWAY.

ebardie commented 6 months ago

@fholzer if I use this the connexion attempt times out. What port number are you using on the VIP host?