Forum Discussion
Change source IP address of outgoing traffic
I have a server which I would like the source IP to change per flow/conversation. Ideal situation is the source IP would be taken from a pool. I'm still learning iRules and any help would be appreciated! I want each conversation to have a different source. even if the destination is the same.
2 Replies
- Kevin_Stewart
Employee
Take a look at the snat
https://devcentral.f5.com/wiki/iRules.snat.ashx
and snatpool commands
https://devcentral.f5.com/wiki/iRules.snatpool.ashx
With these you can dynamically assign a single SNAT IP or one from a pool that will effectively change the source address of that connection.
- giltjr
Nimbostratus
Which IP address?
Client <---- Address1 ---> F5 <----- Address2 -----> Pool Member
Do you want the IP address that the F5 uses to communicate with the client with (Address 1, also the VIP address) to change?
Or do you want the IP address that the F5 uses to communicate the the pool member (Address 2) to change?
What type of traffic is this, HTTP, SSH, FTP, something else? The reason I ask this is that for HTTP you may add overhead to both the F5 and the pool member by doing this.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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