Forum Discussion
Use NAT to connect two non-routable network
In the attached diagram, I had two private(non-routable) subnet 192.168.1.0/24 and 192.168.2.0/24.
Each subnet had a server (192.168.1.1 and 192.168.2.1) which use the load balancer as their default gateway. The two load balancer can reach each other directly(i.e. 172.20.1.0/24 and 172.20.2.0/24) is routable.
What I would like to do is use the NAT function of the load balancer to connect the 2 server up without letting them know anything about the external IP of each other(i.e. I can ping the private IP).
I will set NAT rule as follows.
LB1:
172.20.1.1<-->192.168.1.1
192.168.2.1<-->172.20.2.1
LB2:
172.20.2.1<-->192.168.2.1
192.168.1.1<-->172.20.1.1
Will it works on LTMv9?
8 Replies
- Deb_Allen_18Historic F5 AccountYes, that looks like it would work.
- kwkyiu_53019
Nimbostratus
Thanks for your reply, but our service provider said that setting the rule 192.168.2.1<-->172.20.2.1 on LB1 and 192.168.1.1<-->172.20.1.1 on LB2 will have no effect (i.e. LTMv9 will not do such NAT) and refuse to config those rules - JRahm
Admin
The LTM will do that just fine. What probably will not work fine is if that cloud is the ISP you are talking about and the connectivity between the datacenters is not MPLS. In that scenario, the RFC1918 addressing will not be permitted on their network outside an MPLS VPN. - kwkyiu_53019
Nimbostratus
I can add NAT to LTM even the NAT Address and Origin Address is not on local subnet of the LTM? - Hamish
Cirrocumulus
Funnily enough I've been pondering a similar situation... Except with front-end and backend F5's and requiring de-NAT'ing at the backend... I think iRUles won't doit, but one thing I thought of was to use ssh (Available in the Linux OS of the F5) to create a tunnel between the two ends... Then you should be able to doit without any NAT or SNAT (Hmm... Didn't consider whether last-hop would work with that yet, or how performance would go). - Deb_Allen_18Historic F5 Accountyes, you can NAT to a non-local address, and you can control whether LTM responds to ARP requests or not.
- kwkyiu_53019
Nimbostratus
Posted By hamish@travellingkiwi.com on 07/31/2008 5:06 AM
- kwkyiu_53019
Nimbostratus
yes, you can NAT to a non-local address, and you can control whether LTM responds to ARP requests or not.
You'd have to be careful of L2 & L3 loops, of course, as always, but if they just need to talk to each other, you can connect them via a private subnet on its own vlan, either with a crossover cable or an intervening switch. We have long recommended that practice for redundant pairs, esp if you are mirroring persistence or connections, might work for a simple comm channel between 2 pairs just as well.
Recent Discussions
Related Content
* 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