Docker-openvpn: RTNETLINK answers: Operation not permitted

Created on 22 Jan 2019  Â·  6Comments  Â·  Source: kylemanna/docker-openvpn

Hello,

I would like to understand and correct this error:

openvpn         | Tue Jan 22 21:22:16 2019 /sbin/ip route del 192.168.254.0/24
openvpn         | RTNETLINK answers: Operation not permitted
openvpn         | Tue Jan 22 21:22:16 2019 ERROR: Linux route delete command failed: external program exited with error status: 2

Can you help me ?

Thank you !

Most helpful comment

Hahaahah just close the issue. @mario26 your solution is to run the container as privileged.

All 6 comments

According to 'ip' exit codes from the manpages , "If an error was reported by the kernel exit status is 2" - if that can help troubleshoot

are you running this with high privileges?

Same issue. Running with spec.template.spec.containers.securityContext.capabilities.add.NET_ADMIN set under Kubernetes.

if it fails, try with sudo for a command instead

Yeah, privileged mode is needed in docker for it to work.

On Mon, Feb 11, 2019, 06:37 Mathieu Aubin notifications@github.com wrote:

if it fails, try with sudo for a command instead

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/kylemanna/docker-openvpn/issues/451#issuecomment-462223782,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADV__Adq6RlO9cCLPx32jx3j8YoiAY5_ks5vMQGCgaJpZM4aNkZe
.

Hahaahah just close the issue. @mario26 your solution is to run the container as privileged.

@mkozjak it's correct ! Thank you :+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wilbertliu picture wilbertliu  Â·  5Comments

jkroepke picture jkroepke  Â·  7Comments

tapir picture tapir  Â·  5Comments

rgarrigue picture rgarrigue  Â·  3Comments

lucaszanella picture lucaszanella  Â·  7Comments