nym icon indicating copy to clipboard operation
nym copied to clipboard

Running a gateway with "ip_packet_router" enabled fails

Open wiiinnie opened this issue 11 months ago • 4 comments

Describe the issue After enabling "ip_packet_router" in the config.toml the node crashes on startup.

Expected behaviour Start the gateway

Stack Traces Creating TUN device with: address=10.0.0.1, netmask=255.255.255.0 Using MTU size: 1420 ip packet router has failed: tun device error: EPERM: Operation not permitted

Steps to Reproduce Start the gateway with "ip_packet_router" enabled as normal user (not using sudo)

An example:

  1. The command from the docs to enable the ip_packet router doesn't work:

./nym-gateway setup-ip-packet-router --id MYID --enabled false

Results in:

Caused by: 0: client-core error: this operation would have resulted in clients keys being overwritten without permission 1: this operation would have resulted in clients keys being overwritten without permission

  1. However you can manually overwrite the setting in the config.toml which you should do to replicate

  2. Start the nym-gateway binary

Which area of Nym were you using?

  1. nym-gateway 1.1.34

Additional context As a work around you can init the node as sudo (which will create the config.toml in /root/.nym instead of $HOME/user/.nym. When you enable the ip_packet_router now and start the node as sudo as well, it actually works.

wiiinnie avatar Mar 21 '24 12:03 wiiinnie