Forum Discussion
Redirect to DMZ instead to Internet for a specific website
Hi Guys,
I a thinking of creating an iRule that would direct the user traffic to DMZ instead of going to the internet for a specific website (company portal). LTM is configured with 3 VLANS (dmz, internet and user)
when HTTP_REQUEST {
company portal is accessible both public and local
if { [HTTP::host] eq "www.portal.com" } {
pool DMZ_Pool }
if not, traffic will go to the internet via default pool of VS
}
I haven't tried this but would there be an issue since DNS will see the website address as public ip but it will be routed to local server?
Any suggestion to do this? I have seen something like DNS_REQUEST but not sure of to use it
thanks
7 Replies
- What_Lies_Bene1
Cirrostratus
OK, so is this internal users going outbound? The clients resolve the IP via DNS (is the IP a public IP?) and the traffic hits the F5 on the user VLAN yes? - jake_macabuag_4
Nimbostratus
yes, internal users going outbound hitting the F5. the DNS is public ip since users are accessing it also on the outside. The reason for doing this so that LAN users don't have to use a different URL whenever they access the site, whether inside or outside the office. They will just use one URL and it will be F5 who does the controlling
vs_portal 121.x.x.x:80
pool webportal (going to DMZ)
- What_Lies_Bene1
Cirrostratus
OK, thanks. The iRule won't work if the Virtual Server type is anything other than Standard, which I suspect yours is not, it'll also require a HTTP Profile to be assigned. - What_Lies_Bene1
Cirrostratus
In either case, no need for an iRule (or even the HTTP Profile). - jake_macabuag_4
Nimbostratus
i have additional virtual server 0.0.0.0:80 (standard) using http profile. i map the irule but havent tested it yet. - jake_macabuag_4
Nimbostratus
so using this will work, i supposed - What_Lies_Bene1
Cirrostratus
It certainly should.
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