Date: Wed, 27 Feb 2002 08:23:31 -0500 From: Bill Moran <wmoran@potentialtech.com> To: freebsd-questions@freebsd.org Subject: repost: default route disappears Message-ID: <02022708233100.00825@proxy.pt.com>
next in thread | raw e-mail | index | archive | help
I posted this earlier this week with no responses. Set up a WAN that uses vtund (from the ports) to provide encryption and compression across a long-distance wireless connection. The network config on one gateway (we'll call it NH) looks like this: fxp0: 192.168.43.254 (LAN) xl0: 10.1.1.7 (connects to wireless antenna) tun0: 172.16.0.2 (secure tunnel established by vtun) At the other end of the wireless is another FreeBSD router which acts as a main hub for the LAN/WAN. It has connections to the other LANS as well as the internet. One of the cards in it has the IP 10.1.1.200 and the vtun described above connects to it (it's vtun address is 172.16.0.1) Thus the routing on NH looks like this: Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 172.16.0.1 UGSc 4 15102 tun0 10.1.1/24 link#2 UC 2 0 xl0 10.1.1.4 0:2:2d:17:3:c3 UHLW 0 8 xl0 1104 10.1.1.200 0:60:8:bd:1d:3e UHLW 2 157040 xl0 282 172.16.0.1 172.16.0.2 UH 6 341 tun0 192.168.43 link#1 UC 9 0 fxp0 192.168.43.4 0:2:b3:62:6d:4 UHLW 1 29365 fxp0 1159 <remainer of routes to individual hosts snipped> As you can see, the default route goes through the vtun. Occasionally, the default route will disappear for no apparent reason. Currently I have a cron job that manually adds the default route every 5 minutes. This is an ugly hack to keep this gateway working and I'd like to fix it properly. My guess is that, occasionally, the wireless will go down for a short period (for any number of environmental reasons) and the vtun disconnects. The vtun is configured to automatically reconnect, though, but when it does, the default route has disappeared. Anyone know how to add the default route in such a way that it never disappears, even if it's (technically) invalid? -- Bill Moran Potential Technology technical services http://www.potentialtech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?02022708233100.00825>