Open IamC8 opened 8 years ago
Ok solved it. You need to change the command of curl and add --insecure
Thus
json=curl --insecure --silent -m $CURL_TIMEOUT --interface $INTERFACE -d "user=$USER&pass=$PASSWORD&client_id=$CLIENT_ID&local_ip=$IPADDRESS" 'https://www.privateinternetaccess.com/vpninfo/port_forward_assignment' | head -1
thank you, I have been honestly pulling my hair out for so many hours now trying to get this to work unsuccessfully.. official pia script did not work for me under any circumstance (im using qnap TS-453a) and this script wasnt working either until i added the --insecure part but finally I get a port forward return however the message received is misleading
[/etc/openvpn] # ./port_forward.sh --file userpass.file Using VPN connection on interface tun0... VPN Internal IP = xx.xx.xx.xx awk: xregcomp: Invalid preceding regular expression Error assigning port forward in pia {"port":27150}
gives me error assigning port but then a port (which works, ive just put it into transmission and its open)
Hi I have tried all the following servers: Netherlands Switzerland CA North York CA Toronto Romania Sweden France Germany
The script gives me: "Error assigning port forward in pia" in all of them My current pia.conf is:
client auth-user-pass userpass.data dev tun proto udp comp-lzo fast-io script-security 2 mtu-disc yes verb 4 mute 5 cipher bf-cbc auth sha1 tun-mtu 1500
fragment 1426
mssfix 1426 resolv-retry infinite nobind persist-key persist-tun tls-client remote-cert-tls server log-append /var/log/openvpn/piavpn.log ca ca.crt status-version 3 status status daemon up /etc/openvpn/update-resolv-conf down /etc/openvpn/update-resolv-conf keepalive 10 60 remote many.tried.here.privateinternetaccess.com 1194
iptables are "empty" no extra routes Log shows successful connection "Initialization Sequence Completed"
Please help if you can.
Regards IamC8