OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: ivan.schwinn on August 30, 2018, 01:41:19 pm

Title: Static Routes in Lan interface
Post by: ivan.schwinn on August 30, 2018, 01:41:19 pm
Hello friends of the forum I'm new here, sorry if I'm posting in the wrong place, but I need a little help. After much searching for an opensource solution for utm I found opnsense for having a friendly interface and so many good points.
My problem is this: I need it to run on a routed network with static routes. NAT is only going to be done in Opensense, in the lan of the firewall I have connected a routerboard where all my static routes are already configured, how do I make opnsense "enchergar" my subnets that are configured in the hub?
Note: for me it is not possible to use ospf I need everything done in a static way as it is today.
my scenario is like this

internet (multi-wan ) => nat/firewall ip lan (172.16.x.1/24=> ip wan (172.16.x.2/24) core (without nat) ip lan (192.168.x.1/24)=> clients lan 192.168.x.0/24
Title: Re: Static Routes in Lan interface
Post by: Evil_Sense on August 30, 2018, 08:13:23 pm
You can configure static routes here:
System > Routes > Configuration
Title: Re: Static Routes in Lan interface
Post by: ivan.schwinn on August 30, 2018, 08:32:07 pm
thank you. and now for the internet to work on these networks how do I create a nat for each subnet?
Title: Re: Static Routes in Lan interface
Post by: Evil_Sense on August 30, 2018, 09:14:48 pm
Assuming the subnets are able to reach the opnsense instance, you can configure outbound NAT here:

Firewall > NAT > Outbound

You have to switch to 'Hybrid outbound NAT rule genration' and enter them as manual rules.
Title: Re: Static Routes in Lan interface
Post by: ivan.schwinn on August 30, 2018, 09:39:21 pm
Thank you, I'll test and put the result.