You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I get the error Message OpenVPN was configured to add an IPv4 route. However, no IPv4 has been configured for tun0, therefore the route installation may fail or may not work as expected.
I think the problem is that my openVPN Server offers "dev tap2" but the gluetun docker container needs a tun interface ?
Is that correct ? And how can I get a TAP interface running with gluetun
I get this error when I try to start the VPN:
2024-05-01T20:42:38Z INFO [firewall] allowing VPN connection...
...
2024-05-01T20:42:38Z INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]131.141.77.124:1194
2024-05-01T20:42:38Z INFO [openvpn] UDP link local: (not bound)
2024-05-01T20:42:38Z INFO [openvpn] UDP link remote: [AF_INET]131.141.77.124:1194
2024-05-01T20:42:38Z WARN [openvpn] 'dev-type' is used inconsistently, local='dev-type tun', remote='dev-type tap'
2024-05-01T20:42:59Z WARN [openvpn] 'link-mtu' is used inconsistently, local='link-mtu 1558', remote='link-mtu 1590'
2024-05-01T20:42:59Z WARN [openvpn] 'tun-mtu' is used inconsistently, local='tun-mtu 1500', remote='tun-mtu 1532'
2024-05-01T20:42:59Z INFO [openvpn] [] Peer Connection Initiated with [AF_INET]
2024-05-01T20:42:59Z INFO [openvpn] TUN/TAP device tun0 opened
2024-05-01T20:42:59Z WARN [openvpn] OpenVPN was configured to add an IPv4 route. However, no IPv4 has been configured for tun0, therefore the route installation may fail or may not work as expected.
2024-05-01T20:42:59Z ERROR [openvpn] OpenVPN tried to add an IP route which already exists (RTNETLINK answers: File exists)
2024-05-01T20:42:59Z WARN [openvpn] Previous error details: Linux route add command failed: external program exited with error status: 2
2024-05-01T20:42:59Z ERROR [openvpn] Error: Nexthop has invalid gateway.
2024-05-01T20:42:59Z WARN [openvpn] Previous error details: Linux route add command failed: external program exited with error status: 2
2024-05-01T20:42:59Z ERROR [openvpn] Error: Nexthop has invalid gateway.
2024-05-01T20:42:59Z WARN [openvpn] Previous error details: Linux route add command failed: external program exited with error status: 2
2024-05-01T20:42:59Z ERROR [openvpn] OpenVPN tried to add an IP route which already exists (RTNETLINK answers: File exists)
This is my config file:
client
proto udp
remote 131.141.77.124:1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca -CA2.pem
cert Cert.pem
key Key.pem
ns-cert-type server
cipher AES-256-CBC
comp-lzo
verb 3
askpass /gluetun/pw.txt
auth-nocache
When I am in the running container with the failed start of the VPN:
root@docker-host:~# docker exec -it openvpn-client-gluetun ip r
default via 172.24.0.1 dev eth0
131.141.77.124 via 172.24.0.1 dev eth0
131.141.77.124 via 172.24.0.1 dev eth0 metric 1
172.24.0.0/16 dev eth0 proto kernel scope link src 172.24.0.2
root@docker-host:~# docker exec -it openvpn-client-gluetun ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
12: tun0: <POINTOPOINT,MULTICAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 500
link/none
95: eth0@if96: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
link/ether 02:42:ac:18:00:02 brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 172.24.0.2/16 brd 172.24.255.255 scope global eth0
valid_lft forever preferred_lft forever
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi I get the error Message
OpenVPN was configured to add an IPv4 route. However, no IPv4 has been configured for tun0, therefore the route installation may fail or may not work as expected.
I think the problem is that my openVPN Server offers "dev tap2" but the gluetun docker container needs a tun interface ?
Is that correct ? And how can I get a TAP interface running with gluetun
I get this error when I try to start the VPN:
This is my config file:
When I am in the running container with the failed start of the VPN:
Beta Was this translation helpful? Give feedback.
All reactions