On Sun, Sep 11, 2016 at 06:03:07PM +0900, Bryan Linton wrote:
> I'm seeing this too.  From reading this thread on bugs@, it looks
> like support for this was removed from the /sbin/route command (as
> well as the kernel itself) to enable upcoming support for other
> features.
> 
> Unfortunately, it doesn't look like support for having
> non-directly-connected static routes is planned to be re-added
> anytime soon, because it would interfere with the current efforts
> to move the network stack to a more SMP-friendly design.
> 
> http://marc.info/?l=openbsd-bugs&m=147291674529119&w=2
> 
> If anyone has any suggestions for a workaround, please enlighten
> me.  Unfortunately I don't have control over the server in my
> case, so changing the "topology subnet" to "topology p2p" as
> suggested previously in the thread isn't something I can do in my
> case.

Thanks for raising this info, you are right, it is route.c changed
which caused this issue.

I tried with an older OpenBSD box where it is working fine:

~~~
...
Sun Sep 11 11:29:58 2016 /sbin/route add -net 10.0.0.0 10.40.204.1 -netmask 
255.0.0.0
add net 10.0.0.0: gateway 10.40.204.1
Sun Sep 11 11:29:58 2016 GID set to _openvpn
Sun Sep 11 11:29:58 2016 UID set to _openvpn
Sun Sep 11 11:29:58 2016 Initialization Sequence Completed
^CSun Sep 11 11:30:13 2016 event_wait : Interrupted system call (code=4)
Sun Sep 11 11:30:13 2016 SIGTERM received, sending exit notification to peer
Sun Sep 11 11:30:16 2016 /sbin/route delete -net 10.0.0.0 10.40.204.1 -netmask 
255.0.0.0
route: must be root to alter routing table
Sun Sep 11 11:30:16 2016 ERROR: OpenBSD/NetBSD route delete command failed: 
external program exited with error status: 1
Sun Sep 11 11:30:16 2016 Closing TUN/TAP interface
Sun Sep 11 11:30:16 2016 PLUGIN_CALL: POST 
/usr/local/lib/openvpn/plugins/openvpn-plugin-down-root.so/PLUGIN_DOWN status=0
Sun Sep 11 11:30:16 2016 PLUGIN_CLOSE: 
/usr/local/lib/openvpn/plugins/openvpn-plugin-down-root.so
Sun Sep 11 11:30:16 2016 SIGTERM[soft,exit-with-notification] received, process 
exiting
# sysctl kern.version ; pkg_info openvpn | head -n1
kern.version=OpenBSD 6.0-current (GENERIC.MP) #2371: Fri Aug 19 09:18:22 MDT 
2016
    dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

Information for inst:openvpn-2.3.11
~~~

j.

Reply via email to