OPNsense Forum

English Forums => General Discussion => Topic started by: tofaz on November 08, 2018, 03:07:29 am

Title: [SOLVED] Static route configuration issue
Post by: tofaz on November 08, 2018, 03:07:29 am
Hi all,

I am trying to setup a static route on my LAN interfance in order to link a second network behind a router on my private network. My private network is a 10.0.0.0/24 and the other network is a 172.16.0.0/24. The router has the interface1 with 10.0.0.160 and interface2 with 172.16.0.1.

I have added a new gateway in System->Gateways->Single as 10.0.0.160 on the LAN interface.
But when I'm going to add the static route in  System->Routes->Configuration, it is not allowing me to add a route for the network 172.16.0.0 on the LAN new added gateway (Message "Specify a valid network matching the gateways ip protocol").

Am I doing something wrong?

I have tried on another kind of firewall and it is allowing me to add the static route.

Thank you!


Title: Re: Static route configuration issue
Post by: tofaz on November 12, 2018, 04:18:46 am
I have found the issue. The route has to be specified as network/mask, so in my case 172.16.0.0/24 worked.

I honestly was too used to the PFsense GUI.
Title: Re: [SOLVED] Static route configuration issue
Post by: franco on November 12, 2018, 08:33:56 am
Hi there,

Thanks for posting your solution. :)


Cheers,
Franco