nym
nym copied to clipboard
Running a gateway with "ip_packet_router" enabled fails
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:
- 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
-
However you can manually overwrite the setting in the config.toml which you should do to replicate
-
Start the nym-gateway binary
Which area of Nym were you using?
- 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.