Forum Discussion
benlui_9160
Nimbostratus
Sep 08, 2009NAT for whole internal subnet
I am using BIG-IP HA pair with 2 segments, external (203.194.252.x) and internal (192.168.0.x).
bigip has 1 floating ip (203.194.252.123)
my internal hosts need to access external hosts (e.g 203.194.252.101, 102...), I can create NAT for ONE original address only (e,g. 192.168.0.3) but NOT for whole internal subnet (192.168.0.0/24). How can I do that?
- hoolio
Cirrostratus
I'd avoid NATs and instead use a virtual server. A network virtual server would allow you to pass traffic from clients on the internal VLAN to the outside VLAN. You could configure a forwarding IP virtual server on 203.194.252.0/24 and enable it only on the internal VLAN. If you want LTM to perform source address translation on the LTM to destination host connections, you can enable SNAT automap on the VIP. - benlui_9160
Nimbostratus
But I have no dedicated server in 203.194.252.0/24 for internal hosts to access (that means my internal hosts might access different servers in 203.194.252.0/24) , so I cannot create a virtual server on 203.194.252.0/24. - hoolio
Cirrostratus
You could create a default SNAT, but a virtual server with SNAT enabled is going to be more specific and configurable than a SNAT. So do you want to basically route any requests from the internal hosts to any arbitrary destination host? If so, a 0.0.0.0:0 virtual server will work. Make sure to only enable it on the internal VLAN. If you have a pool of gateway servers you want to load balance, you'd want to add them to a gateway pool and use a Performance Layer4 VS with a FastL4 profile. If you just want to use the LTM routing table to send the traffic on, you can use a Forwarding IP VS. - benlui_9160
Nimbostratus
finally I use SNAT for some of my internal hosts (192.168.0.x) to access ALL external (203.194.252.x). Thanks - benlui_9160
Nimbostratus
But I have a question, - hoolio
Cirrostratus
You can't restrict the destination IP addresses with a SNAT itself. But you could use packet filters to limit which destination addresses/subnets/ports the SNAT translation IP can connect to. You can check the LTM config guide for your version for details on packet filters. - benlui_9160
Nimbostratus
I cannot use forwarding virtual server as I should not put over 200+ hosts in the pool. - hoolio
Cirrostratus
The idea behind a forwarding virtual server is that the destination address isn't translated and isn't sent to a pool. The request just goes out according to the routing table to the original destination IP address. If you want/need to translate the source IP you can enable SNAT on the forwarding virtual server.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects