OPNsense Forum

English Forums => General Discussion => Topic started by: THe_ZiPMaN on June 06, 2022, 08:00:35 PM

Title: Static route based on interface without specifying gateway IP
Post by: THe_ZiPMaN on June 06, 2022, 08:00:35 PM
Good evening,
I need to add a static route through an interface without specifying a gateway.

From the command line it is really simple to do it, and it works:

# route add 100.99.99.21 -iface vtnet8

But I couldn't discover a way to configure it through the web interface and I really don't want to cheat creating a scripts (it will be undocumented and will be forgotten until something bad happens :) )

I looked for a solution in the documentation and in the forum and wasn't able to find anything except a similar question in the French forum in 2018 gone unanswered.

Is it possible to create such a route? Should I create a feature request?
Thanks
Flavio Visentin
Title: Re: Static route based on interface without specifying gateway IP
Post by: lilsense on June 06, 2022, 09:07:02 PM
under system routes... you can do the same.