ausbin / nsdo

run a command in a Linux network namespace
https://code.austinjadams.com/nsdo
MIT License
40 stars 6 forks source link

sitnl_send: rtnl: generic error (-101): Network is unreachable on buster/raspbian #9

Open elizabethexpialadocious opened 2 years ago

elizabethexpialadocious commented 2 years ago

upon start up I get the following error in my syslog:

openvpn[47061]: TCP/UDP: Preserving recently used remote address: [AF_INET]174.128.180.116:443
openvpn[47061]: UDP link local: (not bound)
openvpn[47061]: UDP link remote: [AF_INET]174.128.180.116:443
openvpn[47061]: [99/server] Peer Connection Initiated with [AF_INET]174.128.180.116:443
openvpn[47061]: sitnl_send: rtnl: generic error (-101): Network is unreachable
openvpn[47061]: TUN/TAP device tun0 opened
openvpn[47061]: /usr/local/bin/openvpn-ns tun0 1500 1553 172.18.11.82 172.18.11.81 init
openvpn[47090]: Error: Nexthop has invalid gateway.

after sudo systemctl start openvpn-client@tbusa returns and I do a nsdo tbusa bash I receive the following:

$ ping google.com
ping: google.com: Temporary failure in name resolution
$ ping 172.217.20.174
ping: connect: Network is unreachable

nsdo was made per instructions insofar as its use with openvpn is concerned:

$ make
$ sudo make install install-openvpn

and added the following onto /etc/openvpn/client/tbusa.conf

# ... (rest of configuration) ...

# see https://github.com/ausbin/nsdo

# script should run `ip`, not openvpn
route-noexec
ifconfig-noexec
up "/usr/local/bin/openvpn-ns"
route-up "/usr/local/bin/openvpn-ns"
ausbin commented 2 years ago

Sorry, I didn't see this until now (lost in github notification spam)

Quick question: if you yank out all of the nsdo-specific configuration from the openvpn config file, does it work then? That is, without nsdo entirely?