eventure / hide.client.linux

Hide.me CLI VPN client for Linux
https://hide.me
GNU General Public License v2.0
90 stars 35 forks source link

unable to connect: permission denied #30

Closed tubbadu closed 7 months ago

tubbadu commented 7 months ago

I installed this inside a docker compose container (using the ubuntu image) using the official command:

curl -L https://hide.me/download/linux-amd64 | tar -xz && sudo ./install.sh

I wrote username and password of my free hide.me account, and then tried to connect:

alias hide.me=/opt/hide.me/hide.me
hide.me token free-ch.hideservers.net
hide.me connect free-ch.hideservers.net

and this is the output:

Name: Resolved free-ch.hideservers.net to 185.195.71.215
Pins: Hide.Me Server CA #1 pin OK
Pins: Hide.Me Root CA pin OK
AcTo: Access-Token stored in accessToken.txt
root@8e9322445869:/home/data# hideme connect free-ch.hideservers.net
Link: Generated a new wireguard private key
Link: Wireguard interface vpn activated
Link: Wireguard device vpn configured
Link: DHCP bypass throw route 255.255.255.255/32 mtu 0 table 55555 added
Link: Loopback route 0.0.0.0/0 dev lo mtu 0 table 55555 added
Link: Loopback route ::/0 dev lo mtu 0 table 55555 added
Link: IPv4 RPDB rule added
Link: IPv6 RPDB rule added
Init: Done
Conn: Connecting in 0s
Name: Resolved free-ch.hideservers.net to 185.195.71.212
Conn: Connecting to 185.195.71.212
Pins: Hide.Me Server CA #1 pin OK
Pins: Hide.Me Root CA pin OK
Rest: Remote UDP endpoint is 185.195.71.212:432
Rest: Keepalive is 20 seconds
Rest: Assigned IPs are 10.134.157.98, fd00:6968:6564:34e::a86:9d62
Rest: Gateway IPs are 10.134.156.1, fd00:6968:6564:34e::1
Rest: DNS servers are 10.134.156.1, fd00:6968:6564:34e::1
Link: Interface vpn MTU set to 1392
Link: Peer 185.195.71.212:432 added
Link: Address 10.134.157.98 added to interface vpn
Link: [ERR] Addition of fd00:6968:6564:34e::a86:9d62 to interface vpn failed: permission denied
Link: Received 0 bytes, transmitted 148 bytes
Link: Peer 185.195.71.212:432 removed
Link: Down
Link: Received 0 bytes, transmitted 0 bytes
Link: Peer 185.195.71.212:432 removed
Link: Down
Conn: [ERR] Link up failed: permission denied
Pins: Hide.Me Server CA #1 pin OK
Pins: Hide.Me Root CA pin OK
Conn: Disconnected
Conn: Connecting in 30s

I tried other server but it's always the same. is there something wrong in my configuration?

tcohar commented 7 months ago

You either need to enable IPv6 in your docker container or use "-4" command line switch when invoking hide.me

tubbadu commented 7 months ago

it works now, thanks!