Assign Public IP to the LAN
-
Hello,
I have several Public IP addresses that I assigned to WAN.
if I do 1:1 on WAN interface to specific host 10.5.1.10 on my LAN it does the trick and my public IP this PC does change to the one I want it to be. But only this specific machine gets this public IP address translated.Logically i would assume another rule needs be create 1:1 translate network 10.5.1.1/24 to the selected public ip. In this case I lose connection to internet.
I kind of ran out of ideas!
How can I make whole LAN to be on selected public IP address instead of been on routers IP?
-
Go to interfaces bridge tab and add a bridge and select LAN and WAN.
-
I would setup gateways and then in your rules tell your lan to use what ever gateway you want. Make sure that you order them right so your one computer will use one public but the rest of the network will you the other public. You may have to sub interface your wan port and put your public IPs all on your router too.
-
You'll need to configure manual outbound NAT accordingly, Firewall>NAT, Outbound tab.
https://doc.pfsense.org/index.php/Outbound_NAT
and in greater detail in the 2.1 book available to gold subscribers @ portal.pfsense.orgGo to interfaces bridge tab and add a bridge and select LAN and WAN.
Don't do that, that's not going to help anything and you don't want your LAN on the same broadcast domain as WAN unless you have a very specific requirement for that, which you don't seem to.
I would setup gateways and then in your rules tell your lan to use what ever gateway you want.
Gateways in a single WAN scenario have no relevance to how traffic is NATed.
-
Thank you sir you clearly know what are you talking about!
@cmb:
You'll need to configure manual outbound NAT accordingly, Firewall>NAT, Outbound tab.
https://doc.pfsense.org/index.php/Outbound_NAT
and in greater detail in the 2.1 book available to gold subscribers @ portal.pfsense.orgGo to interfaces bridge tab and add a bridge and select LAN and WAN.
Don't do that, that's not going to help anything and you don't want your LAN on the same broadcast domain as WAN unless you have a very specific requirement for that, which you don't seem to.
I would setup gateways and then in your rules tell your lan to use what ever gateway you want.
Gateways in a single WAN scenario have no relevance to how traffic is NATed.
-
Thank you sir you clearly know what are you talking about!
One might say I wrote the book on it. In fact, I did. ;D