boringtun icon indicating copy to clipboard operation
boringtun copied to clipboard

Failed to initialize tunnel

Open HOIMASAMI opened this issue 2 years ago • 1 comments

I'm using 1stRentalServer's VPS to install boringtun, but when I'm going to run it, it got errors.

like this: root@host:~# sudo boringtun-cli -f -l ~/logs/boringtun.log wg0 2023-06-29T01:04:31.852309Z ERROR boringtun_cli: Failed to initialize tunnel, error: Socket("Operation not permitted") at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/boringtun-cli-0.5.2/src/main.rs:160

How can I fix it? Or should I let 1stRentalServer to open some functions? (This VPS seems to be OpenVZ) (I've let 1st to open "my" VPS's TAP/TUN function)

HOIMASAMI avatar Jun 29 '23 01:06 HOIMASAMI

From the main page of this repo "You will need to give the executable the CAP_NET_ADMIN capability using: sudo setcap cap_net_admin+epi boringtun. sudo is not needed."

alanesmizi avatar Oct 10 '23 10:10 alanesmizi