2011/12/22 Erling Westenvik <[email protected]>: > Sorry for bumping this here @ misc when my question propably belong to > some OpenVPN forum, but it seems like no-one out there can say much on > OpenVPN issues that appears to be OpenBSD spesific. > > What puzzles me is that I cannot make the tun-interface show up in the > route table on the server: > > Destination Gateway Flags Refs Use Mtu Prio Iface > default AAA.BB.CCC.D UGS 3 1101 - 8 url0 > 127/8 127.0.0.1 UGRS 0 0 33196 8 lo0 > 127.0.0.1 127.0.0.1 UH 2 0 33196 4 lo0 > 192.168.2/24 link#5 UC 1 0 - 4 acx0 > 192.168.2.200 00:16:ea:b3:65:d0 UHLc 1 400 - 4 acx0 > 192.168.3/24 link#2 UC 2 0 - 4 bge0 > 192.168.3.106 00:1e:4f:95:19:1d UHLc 1 1582 - 4 bge0 > 192.168.3.200 fe:e1:ba:d7:c3:24 UHLc 0 28 - 4 bge0 > 193.90.160/20 link#6 UC 1 0 - 4 url0 > AAA.BB.CCC.D 00:90:1a:42:6d:81 UHLc 1 0 - 4 url0 > AAA.BB.CCC.DDD 127.0.0.1 UGHS 0 0 33196 8 lo0 > 224/4 127.0.0.1 URS 0 0 33196 8 lo0 > > /etc/hostname.tun0 <<< > link0 > up > !/usr/local/sbin/openvpn --config /etc/openvpn/server.conf >>>> > > /etc/hostname.bridge0 <<< > add bge0 > add acx0 > up >>>>
What does ifconfig tun0 say? When I did openvpn before I mostly didn't start openvpn from the tun config file myself, but rather start openvpn and make that one bring up tuns for me, but I would assume that if the tunnel goes up and then down and if it takes the tun0 down until the tunnel can be taken up again, the network that tun0 belonged to would not show in the routing table until it gets back up again. Any interface that has an address and that is up would somehow make an entry in the routing tables. -- To our sweethearts and wives. May they never meet. -- 19th century toast

