Forum Discussion
mikegray_198028
Cirrus
Feb 13, 2016irule to connect external domains via webproxy
Hello,
Here i am searching for a solution to connect to a public domain (www.ventanillaunica.gob.mx)) via web proxy
User/client(https://test.mydomain.com)) => LTM VIP => Proxy pool => inte...
mikegray_198028
Cirrus
Feb 15, 2016Cnc)(/S1-green-P:Active)(/Common)(tmos.ltm) list virtual test_webpxy
ltm virtual test_webpxy {
destination 192.168.0.10:any
ip-protocol tcp
mask 255.255.255.0
pool test_webpxy
profiles {
tcp { }
}
rules {
test_webpxy
}
source 0.0.0.0/0
source-address-translation {
type automap
}
translate-port disabled
vs-index 564
}
/S1-green-P:Active)(/Common)(tmos.ltm) list pool test_webpxy
ltm pool test_webpxy {
members {
webproxy.mydomain.com:webcache {
address 192.168.0.65
session monitor-enabled
state up
}
}
monitor tcp_half_open
}
/S1-green-P:Active)(/Common)(tmos.ltm) list rule test_webpxy
ltm rule test_webpxy {
when CLIENT_ACCEPTED {
set bypass 0
set bufferdata ""
TCP::collect 0 0
}
when CLIENT_DATA {
if { $bypass eq 1 } {
TCP::payload replace 0 [string length $bufferdata] ""
TCP::release
return
}
set bufferdata [TCP::payload]
TCP::collect
}
when SERVER_CONNECTED {
serverside {TCP::respond "CONNECT www.ventanillaunica.gob.mx:443 HTTP/1.0\r\n\r\n"}
TCP::collect
}
when SERVER_DATA {
if { $bypass eq 1 } {
TCP::release
return
}
if { [TCP::payload] starts_with "HTTP/1.0 200 Connection established\r\n\r\n" } {
TCP::payload replace 0 39 ""
TCP::respond $bufferdata
TCP::release
set bypass 1
} else {
TCP::close
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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