On Fri, Oct 14, 2005 at 04:31:36AM -0500, Josh Webb wrote:
>
> I know I should send stuff about the man pages to "hshoexer@", but is
> that @openbsd.org, @cvs.openbsd.org, or what?
someone will correct me if this is the wrong way, but can
also do a sendbug(1) and submit your diff to the manpage as a doc-bug
> If any kind soul wants to tell me how to get that route to stick around
> after a reboot, that would be great. Otherwise, I'll just look it up
> after I get some sleep.
this is how i do it:
(/etc/hostname.sis0)
--------------------
inet 192.168.7.27 0xffffffe0 NONE
--------------------
(/etc/hostname.enc0)
--------------------
up
inet 172.16.7.30 0xffffffff NONE
--------------------
(/etc/rc.local)
---------------
#the vpn!
if [ -p /var/run/isakmpd.fifo ]; then
echo -n 'adding VPN 192.168 routes:'
for VPNDEST in 192.168.23.0/25 192.168.23.128/25; {
/sbin/route add -net ${VPNDEST} -interface 192.168.7.27 > /dev/null
2>&1
echo -n " ${VPNDEST}";
};
echo " done."
echo -n 'adding VPN 172.16 routes:'
for VPNDEST in 172.16.222.1 172.16.196.1 172.16.4.1 172.16.24.1
172.16.23.1 172.16.23.129; {
/sbin/route add -host ${VPNDEST} -interface 172.16.7.30 > /dev/null
2>&1
echo -n " ${VPNDEST}";
};
echo " done."
fi
---------------
you could also do the '!' syntax for hostname.if(5) and 'route add' that way.