Newbie on tunnelling
Odhiambo Washington
wash at wananchi.com
Wed Dec 13 06:19:23 PST 2006
I need to create a VPN between two offices. Each has a LAN that is
behind a FreeBSD router/firewall.
I have managed to do the following manually:
hq-office:
kldload if_gre.ko
ifconfig gre0 create
ifconfig gre0 tunnel 62.8.68.94 62.8.82.142
ifconfig gre0 inet 10.0.0.1 10.0.0.2 netmask 255.255.255.252
route add -net 192.168.1.0/24 -interface gre0
sub-office:
kldload if_gre.ko
ifconfig gre0 create
ifconfig gre0 tunnel 62.8.82.142 62.8.68.94
ifconfig gre0 inet 10.0.0.2 10.0.0.1 netmask 255.255.255.252
route add -net 192.168.0.0/24 -interface gre0
Now my simple question is: How do I automate these commands
during boot time?
-Wash
http://www.netmeister.org/news/learn2quote.html
DISCLAIMER: See http://www.wananchi.com/bms/terms.php
--
+======================================================================+
|\ _,,,---,,_ | Odhiambo Washington <wash at wananchi.com>
Zzz /,`.-'`' -. ;-;;,_ | Wananchi Online Ltd. www.wananchi.com
|,4- ) )-,_. ,\ ( `'-'| Tel: +254 20 313985-9 +254 20 313922
'---''(_/--' `-'\_) | GSM: +254 722 743223 +254 733 744121
+======================================================================+
This is an unauthorized cybernetic announcement.
More information about the freebsd-questions
mailing list