Routing - LAN w. Public IPs to WAN
-
I have a unique scenario. We have (2) public IP blocks from our ISP. The first block is routed and acts as the default gateway for both blocks. We use the public IPs on the LAN that route to the default gateway from the other block.
I have tried a few things and cannot get the public IPs to route from LAN to WAN. What would a configuration like this look like?
-
-
@johnpoz thank you but I want to do in TNSR, not Pfsense.
-
@talwell oh my bad - sorry... But would be the same sort of thing, just don't nat the traffic on the public IP range you on an interface behind tnsr
-
@johnpoz I am able to ping as far as the inside of the WAN interface from the LAN public IP block. From there it doesn't hit default gateway or internet. I can however get out through default gateway from WAN or from NAT'd LAN interfaces.
-
Any help??
-
@talwell Nothing special should be needed. Just assign the interface subnet to the outside interface and the routed subnet to an inside interface. Set the default gateway to the ISP gateway on the interface subnet.
Sounds like simple routing.
This all assumes that is how the ISP circuit is actually provisioned.
-
@derelict I would have thought so as well but it doesnt work. I can only ping as far as the WAN (ISP subnet with default gateway) from the public subnet that is routed. I am not understanding why I cannot even hit the default gateway (0.0.0.0/0) IP address if I am able to ping the interface attached to it. Subnets behind NAT work fine as does the WAN - just not the routed network LAN interface.
-
@talwell Perhaps the subnet is not routed properly by the ISP?