OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • Static Route - Non-Persistent
« previous next »
  • Print
Pages: [1]

Author Topic: Static Route - Non-Persistent  (Read 1777 times)

jchinyou

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Static Route - Non-Persistent
« 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 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

Code: [Select]

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!
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • Static Route - Non-Persistent
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2022 All rights reserved
  • SMF 2.0.18 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2