OPNsense Forum

Archive => 17.7 Legacy Series => Topic started by: jchinyou on December 28, 2017, 04:54:31 pm

Title: Static Route - Non-Persistent
Post by: jchinyou on December 28, 2017, 04:54:31 pm
HI All,

I'm new to OPNsense and having some trouble making some static routes persistent.

My Topology:

Router1 <---> OPNsense <---> Router2 <---> Internal network <---> Mgmt Wrkstn

As you can see in this case I have 2 routers and not a flat network behind OPNsense on the LAN side.

I've been trying to add a static route to OPNsense to point to my Router 2 however it is non-persistent after rebooting OPNsense.

Things I've tried:
1) Command Line: route add (Works but non-persistent)
2) WebUI: Add the route to OPNsense via the WebUI (Works but non-persistent)
3) Leverage /etc/rc.conf or /etc/rc.local or /usr/local/etc/rc.local or /usr/local/etc/rc.conf

Code: [Select]

route_net1="-net <gw IP>

4) Tried using a bash script in the OPNsense.start scripts but ran into permissions errors.

Not quite sure where else to go...anyone with any insights I'd really appreciate it!