Using same gateway for multiwan pfsense
-
Hello good, we have a pfsense shared between 2 companies each with its LAN interface. The issue is that we want to go through the same gateway WAN using each their static public IP provider in the same range, for example:
- Company 1: 80.30.22.2
- Company 2: 80.30.22.3
- Gateway: 80.30.22.1
We want it so that every company has external services only work if the connection is made from a certain ip, firewall rules from the other side.
Just let me assign a pora each WAN gateway, but not the same. I said that already exists. I tried playing around with the rules in each LAN section of each company but come out with the same public IP … Is there any way that both Internet companies go through the same gateway but using different public ips:
- Company 1: 80.30.22.2
- Company 2: 80.30.22.3
We got 10 fps in the same range but a single gateway.
Thanks in advance.
-
Is there any way that both Internet companies go through the same gateway but using different public ips
Yes, what you want is outbound NAT.
-
If you have only one Internet connection, you should use a single WAN configuration. Configure the first public IP address on the WAN interface. Then create an Virtual IP of type IP Alias for the second public IP address on the same WAN interface.
You'll need to create two Manual Outbound NAT rules for the WAN interface. If the the source LAN address is Company 1 subnet, translate using the Interface Address. If the source LAN address is Company 2 subnet, translate using the Virtual IP.
-
Thanks for all. I solved with nat outbound. Many thanks for all.