What's new

Openvpn internal error add route

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

lucian

Occasional Visitor
solved

i put prefix instead of mask in the gui configuration field. confusing to use both variants interchangeable. :\


I have set up my router as openvpn server and have activated "manage client-specific options". it dies trying to add the route (see log). i have never seens this /-1 and no idea how to debug. any advice welcome.

server net is: 192.168.2.0
internal vpn net: 10.8.0.0

client net is: 192.168.25.0

AX86U - 388.6 alpha and 388.6 beta same behavior


Code:
Jan  8 10:26:02 ovpn-server1[3053]: Diffie-Hellman initialized with 2048 bit key
Jan  8 10:26:02 ovpn-server1[3053]: TUN/TAP device tun21 opened
Jan  8 10:26:02 ovpn-server1[3053]: TUN/TAP TX queue length set to 1000
Jan  8 10:26:02 ovpn-server1[3053]: /usr/sbin/ip link set dev tun21 up mtu 1500
Jan  8 10:26:02 ovpn-server1[3053]: /usr/sbin/ip link set dev tun21 up
Jan  8 10:26:02 ovpn-server1[3053]: /usr/sbin/ip addr add dev tun21 10.8.0.1/24
Jan  8 10:26:02 ovpn-server1[3053]: ovpn-up 1 server tun21 1500 0 10.8.0.1 255.255.255.0 init
Jan  8 10:26:02 custom_script: Running openvpn-event
Jan  8 10:26:02 ovpn-server1[3053]: /usr/sbin/ip route add 192.168.25.0/-1 via 10.8.0.2
Jan  8 10:26:02 ovpn-server1[3053]: ERROR: Linux route add command failed: external program exited with error status: 1
Jan  8 10:26:02 ovpn-server1[3053]: ERROR: Linux route add command failed
Jan  8 10:26:02 ovpn-server1[3053]: Socket Buffers: R=[524288->524288] S=[524288->524288]
Jan  8 10:26:02 ovpn-server1[3053]: UDPv4 link local (bound): [AF_INET][undef]:11940
Jan  8 10:26:02 ovpn-server1[3053]: UDPv4 link remote: [AF_UNSPEC]
Jan  8 10:26:02 ovpn-server1[3053]: MULTI: multi_init called, r=256 v=256
Jan  8 10:26:02 ovpn-server1[3053]: IFCONFIG POOL IPv4: base=10.8.0.2 size=253
Jan  8 10:26:02 ovpn-server1[3053]: Initialization Sequence Completed
 
Last edited:

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top