Hello,
I would like to set up three encrypted tunnels over a static line. I did this manually using ifconfig and route commands and everything was fine. However, when I try to do it in order for it to be static on system boot, it doesn't work. This is the content concerned from my rc.conf file:
When I try to ping the IP address of the same machine (i.e. ping 10.0.0.1 from the machine that has this tunnel), I get response. But when I try to ping it from the other machine (10.0.0.2 ping 10.0.0.1) I get network is down.
What am I doing wrong?
I would like to set up three encrypted tunnels over a static line. I did this manually using ifconfig and route commands and everything was fine. However, when I try to do it in order for it to be static on system boot, it doesn't work. This is the content concerned from my rc.conf file:
Code:
ifconfig_msk0="inet 192.168.1.1 netmask 255.255.255.0"
cloned_interfaces="gif0 gif1 gif2"
ifconfig_gif0="inet 10.0.0.1 10.0.0.2 tunnel 192.168.1.1 192.168.1.2 up"
static_routes="tunnelone tunneltwo tunnelthree"
route_tunnelone="10.0.0.0 10.0.0.2 255.255.255.0"
ifconfig_gif1="inet 172.16.0.1 172.16.0.2 tunnel 192.168.1.1 192.168.1.2 up"
route_tunneltwo="172.16.0.0 172.16.0.2 255.255.255.0"
ifconfig_gif2="inet 10.30.0.1 10.30.0.2 tunnel 192.168.1.1 192.168.1.2 up"
route_tunnelthree="10.30.0.0 10.30.0.2 255.255.255.0"
inetd_enable="YES"
When I try to ping the IP address of the same machine (i.e. ping 10.0.0.1 from the machine that has this tunnel), I get response. But when I try to ping it from the other machine (10.0.0.2 ping 10.0.0.1) I get network is down.
What am I doing wrong?