Forum Discussion
'HairPinning' on LTM ?
I have a case where I have a Virtual Server provisioned, and accessible from the world at 'https://company.com'.
Now we need other, 'internal' applications to be able to call to 'https://company.com/urihere'.
While I know I could create an 'internally facing' virtual server for this, then I'm faced with DNS challenges, or using host files.
Is there a better way to do this ?
- ekaleido_26616
Cirrocumulus
Can you use an iRule to control who can access /urihere? Would seem to be the easiest way, given the information you've provided. There are cleaner ways, but this is a start...
when HTTP_REQUEST { if { [HTTP::path] starts_with "/urihere" } { switch -glob [IP::client_addr] { "10.*" { return } "172.12.*" { return } "192.168.*" { return } default { discard } } } }
- Randy_Johnson_L
Nimbostratus
Thaks, ekaleido-- Not quite what I'm going for, as my internal webservers do not seem to be able to even reach 'themselves' through the externally facing VIP / hairpinning. However, these 'internal' webservers are able to ping and traceroute from the internal servers to the external company.com. However, when attempting to connect to https://company.com, I get a 'Connection Reset'.
- ekaleido_26616
Cirrocumulus
Do you need to enable or disable SNAT AutoMap on the virtual server?
- ekaleido
Cirrus
Can you use an iRule to control who can access /urihere? Would seem to be the easiest way, given the information you've provided. There are cleaner ways, but this is a start...
when HTTP_REQUEST { if { [HTTP::path] starts_with "/urihere" } { switch -glob [IP::client_addr] { "10.*" { return } "172.12.*" { return } "192.168.*" { return } default { discard } } } }
- Randy_Johnson_L
Nimbostratus
Thaks, ekaleido-- Not quite what I'm going for, as my internal webservers do not seem to be able to even reach 'themselves' through the externally facing VIP / hairpinning. However, these 'internal' webservers are able to ping and traceroute from the internal servers to the external company.com. However, when attempting to connect to https://company.com, I get a 'Connection Reset'.
- ekaleido
Cirrus
Do you need to enable or disable SNAT AutoMap on the virtual server?
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