Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - jchinyou

#1
17.7 Legacy Series / Static Route - Non-Persistent
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 192.168.0.0/16 (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



static_route="net1"
route_net1="-net 192.168.0.0/16 <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!

Thanks!