Forum Discussion
meena_60183
Nimbostratus
Nov 20, 2008Intelligent SNAT help
I need some help in understanding if I am in the right direction.
I have the following scenario.
I have 2 web servers 10.11.2.34 and 10.11.2.35 that needs port 80 (http) load balancing. I created a virtual server with a public IP of x.x.31.69 and that works fine. These servers have the BigIP as the default gateway. I can access the servers for mgmt. access like RDP etc.
Now, there is a requiremnet that the outgoing traffic initiated from these servers should appear that it is originating from the virtual address of x.x.31.69. I created a SNAT that NATed 10.11.2.34 and 10.11.2.35 to x.x.31.69.
Now, when I ping the server 10.11.2.34 or 35, I get a reply from x.x.31.69. I cannot access the servers using RDP.
I would like to restrict the SNAT only for port 80 traffic. Do I need an iRule or do I need to do something else? I am little confused on this part.
Any suggestions?
Meena
11 Replies
- James_Quinby_46Historic F5 AccountMeena -
- meena_60183
Nimbostratus
But the requirement is to have a single address (same as the Virtual address for the incoming load balanced traffic) for both servers. If I restrict the SNAT for port 80 only, traffic like ICMP and RDP would go directly without getting NATed? Is that correct? - meena_60183
Nimbostratus
Please ignore my previous reply. I reconfigured the SNAT pool with a single IP address which is the same as the virtual address and apllied it to the virtual server and it worked. - meena_60183
Nimbostratus
I tested the outbound web access from these 2 servers and they are not being NATed to x.x.31.69. It only NATs the load balanced traffic and not any outbound traffic. - hoolio
Cirrostratus
Hi Meena, - meena_60183
Nimbostratus
I did create a default SNAT which referenced the SNAT pool but the RDP connections to the server stops working and also when I ping the server IP address the replies come from SNAt address of x.x.31.69 which breaks lot of things. - hoolio
Cirrostratus
Sorry for any confusion. If you only want to perform SNAT translation for connections to a specific destination port, you'd actually need to configure a VIP. You can't restrict a default SNAT to a single port.when CLIENT_ACCEPTED { Check if client is not part of the allowed clients datagroup if {not [matchclass [IP::client_addr] equals allowed_clients_dg]}{ Drop the request drop Allow the request, but disable SNAT snat none } }
- meena_60183
Nimbostratus
Hi - hoolio
Cirrostratus
Hi Meena, - meena_60183
Nimbostratus
I changed the default gateway of the servers to be the LTM.
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