Forum Discussion
msmith_64485
Nimbostratus
Jan 25, 2010IP to FQDN
Looking for an irule that will replace the IP address of outgoing traffic with the FQDN. Issue is external server does not have a valid PTR record to allow resolution. Owner of this server does not want to add PTR and communication with this server is required. If there is a better way to address this issue please direct me to it.
30 Replies
Sort By
- hoolio
Cirrostratus
I was assuming originally that you were using a network VIP and only wanted to rewrite the host header when certain host header values were seen. If you want to rewrite the host header on all requests, you can remove the check for an IP of 1.1.1.1 (or 2.2.2.2) in the host header value. - msmith_64485
Nimbostratus
Aaron, - msmith_64485
Nimbostratus
Aaron, - hoolio
Cirrostratus
For some reason, the check of the Host header isn't matching and the host header isn't being replaced. However, I think replacing the host header on every request makes more sense for the scenario. Can you try testing this iRule:when HTTP_REQUEST { Replace the host header with www.example.com HTTP::header replace Host "www.example.com" }
- msmith_64485
Nimbostratus
Aaron, - msmith_64485
Nimbostratus
Aaron, - hoolio
Cirrostratus
Posted By msmith on 01/29/2010 7:01 AM
when HTTP_REQUEST { Replace the host header with www.example.com HTTP::header replace Host "www.example.com" } when HTTP_REQUEST priority 501 { Log the host header value log local0. "[IP::client_addr]:[TCP::client_port]: Current HTTP Host: [HTTP::host]" }
- msmith_64485
Nimbostratus
Aaron, - msmith_64485
Nimbostratus
What is your address? - hoolio
Cirrostratus
aaron dot hooley at integralis dot com . @ .
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