Hello. I am hitting a strange behaviour with openbsd 5.9.
# uname -a OpenBSD router_dev01.lan 5.9 GENERIC.MP#1888 amd64 There's pppd running on the box (for a 3g connection) and OpenVPN connection on top of that. The bug is that any routes pushed from openvpn server get assigned to ppp0 interface (instead of tun0, as I would naively expect). It's possible reproduce this behaviour by running "route add" command manually, for example: # route add 1.2.3.4/32 10.88.0.1 add host 1.2.3.4/32: gateway 10.88.0.1 # netstat -rn -f inet Routing tables Internet: Destination Gateway Flags Refs Use Mtu Prio Iface default 10.64.64.64 UGS 1 19 - 8 ppp0 1.2.3.4 10.88.0.1 UGHS 0 0 - 8 ppp0 10.64.64.64 10.145.0.40 UH 1 1 - 8 ppp0 10.88.0/24 10.88.0.124 UGS 0 161 - 8 tun0 10.88.0.124 10.88.0.124 UHl 1 1 - 1 tun0 10.88.0.124 10.88.0.124 UH 0 0 - 8 tun0 10.90.0/24 10.88.0.1 UGS 0 0 - 8 ppp0 10.99.0/24 10.88.0.1 UGS 0 0 - 8 ppp0 10.145.0.40 10.145.0.40 UHl 0 4 - 1 ppp0 ... Note that 10.88.0/24 network is associated with interface tun0. The new route (with gw in that network, 10.88.0.1) however get's assigned to interface ppp0. What's happening here? --- Regards, Mart