Static route disappears
-
I've got a Sonicwall VPN router (for my work) attached to OPT1. My local network is 192.168.168.0 and all 10.0.0.0 traffic is routed over to the OPT1 interface of 10.235.25.1. The VPN router is at 10.235.25.254.
In order for the DNS forwarder on the pfSense box to grab queries from the VPN network to my local, I've added a static route. 10.1.0.2/32 is routed to 10.235.25.254. Works great.
But here's the problem. It seems that after a few hours the static route just disappears from the pfSense box's routing table - not sure exactly how long it takes before it is gone.
it's here: (note that this is not the entire output of the routing table - I also xxx'd out my external internet address)
Destination Gateway Flags Refs Use Netif Expire default xxx.xxx.xxx.xxx UGS 0 5811723 sis0 10.1.0.2/32 10.235.25.254 UGS 0 0 sis2 10.235.25/24 link#4 UC 0 0 sis2 10.235.25.1 127.0.0.1 UGHS 0 0 lo0 10.235.25.2 127.0.0.1 UGHS 0 0 lo0 10.235.25.254 00:06:b1:1d:b2:74 UHLW 2 0 sis2 1025 127.0.0.1 127.0.0.1 UH 2 0 lo0 192.168.168 link#3 UC 0 0 sis1
a handful of hours later, it is gone:
Destination Gateway Flags Refs Use Netif Expire default xxx.xxx.xxx.xxx UGS 0 5787118 sis0 10.235.25/24 link#4 UC 0 0 sis2 10.235.25.1 127.0.0.1 UGHS 0 0 lo0 10.235.25.2 127.0.0.1 UGHS 0 0 lo0 10.235.25.254 00:06:b1:1d:b2:74 UHLW 1 0 sis2 1169 127.0.0.1 127.0.0.1 UH 2 0 lo0 192.168.168 link#3 UC 0 0 sis1
I can get it back if I click to edit the static route, save and Apply Changes.
2 questions:
- Any idea why it is disappearing
- if no answer to 1), is there a command I can cron to refresh that static route on a periodic basis? Otherwise I guess I will just script a webclient to do my bidding for now…
If more info is needed, let me know and I'll post it here.
-
This host use DHCP on wan?
-
This host use DHCP on wan?
By host, I assume you mean the Sonicwall box? It's IP is static, but I'm having the box assign the OPT1 IP via DHCP. I can switch it to static if you think that will fix the problem.
-
Try to switch to static and see if the problem goes away. If it does, then I know where the problem may be.
-
Try to switch to static and see if the problem goes away. If it does, then I know where the problem may be.
Ok, did that. I'll wait a few hours and see if it breaks.
-
Nope - that didn't fix it. Route disappeared again.
-
We need to narrow down what is in the logs files that happens around the same time then.
-
Ok, I'll have to figure out a way to determine when it disappears exactly.