OPNsense Forum

English Forums => General Discussion => Topic started by: stretch on May 09, 2017, 09:39:56 PM

Title: Public ips on opt interface
Post by: stretch on May 09, 2017, 09:39:56 PM
Hi, I need my machines on the OPT interface to have real public ips configured on their interfaces

So machine A would have
IP 85.123.123.123
SUBNET 255.255.255.248
Do I make the GW the same as the opensense wan IP 85.123.123.122?

How do I configure opnsense to pass incoming traffic on wan to the right machine on opt?
Title: Re: Public ips on opt interface
Post by: franco on May 09, 2017, 09:57:04 PM
Hi stretch,

It's under Firewall: NAT: One to One, pretty straight-forward setup. :)


Cheers,
Franco
Title: Re: Public ips on opt interface
Post by: stretch on May 09, 2017, 11:16:57 PM
Yeah I've used it for private to public i.e

10.0.0.1 > 85.123.123.123

but does it work for

85.123.123.123 > 85.123.123.123

Do I need to bridge interfaces?
Title: Re: Public ips on opt interface
Post by: franco on May 11, 2017, 02:35:08 PM
No, One to One is normally used for 85.123.123.123 (external secondary IP) -> 10.0.0.1 (internal IP), exactly what you described in your original post unless I misunderstood.


Cheers,
Franco