Forum Discussion
Irule F5 response IP public
Hi guy.
I have config GTM on F5 I4800. After config complete. I have try test, all any thing very ok.
But I have bought subdomain: abc.com.vn and config Delegation to IP Public for Listener. When config complete. I try test. But I can not reciver IP public 123.123.123.12 for ( Pool virtual : 10.10.10.10) ( It is IP NAT for 10.10.10.10 ).
I think that. I need config iRule, F5 response IP public eq = 123.123.123.12.
Please help me.
Thanks all
Hi,
You could use this irule:
when DNS_RESPONSE { set rrs [DNS::answer] foreach rr $rrs { if { ([DNS::rdata $rr] eq "a.a.a.a")} { DNS::answer clear DNS::answer insert [DNS::rr "aaa.aaa.com. IN A b.b.b.b"] } elseif { ([DNS::rdata $rr] eq "c.c.c.c")} { DNS::answer clear DNS::answer insert [DNS::rr "ccc.ccc.com. IN A d.d.d.d"] } } }
add it to the DNS Listener.
This Irule fixes 2 A records.
a.a.a.a = internal ip address#1
aaa.aaa.com. = the A record#1
b.b.b.b = external ip address#1
c.c.c.c = internal ip address#2
ccc.ccc.com. = the A record#2
d.d.d.d = external ip address#2
Cheers,
Kees
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