Forum Discussion
Miguel_Alfaro_6
Nimbostratus
Jun 27, 2008Change TCP and UDP IP address
There is a way to change TCP or UDP headers?
For example: If some user makes a request to some Web, let’s say www.av.com (206.190.60.37) the irule sees that IP and changes it by someone like (205.178.137.173) in order to redirect the traffic.
The same if use ssh or telnet or any kind of traffic.
Something like
set old_IP [scan [IP::local_addr] "%d.%d.%d.%d"]
if $old_IP 206.190.60.37
set new “205.178.137.173”
set new_ip [binary format c4 $new]
TCP::header replace (“ip address”) $new_ip ??????
- hoolio
Cirrostratus
It looks like you have a wildcard VIP defined where you don't know what the destination IP will be and only want to perform destination address translation for some of the addresses. If that's the case, I'd suggest configuring additional IP Forwarding VIPs for the addresses you do you want to perform address translation for. Set the pool to be the translated address. if you want the translation done for any destination port, set the VIP and pool member port to 0. - Miguel_Alfaro_6
Nimbostratus
What I want to do is address translation for all public IPs and turns them to private IPs. - hoolio
Cirrostratus
I suppose that could be possible to do this as you've described using the node command. You'd need to have address translation enabled on the VIP you try this with.
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