-
Notifications
You must be signed in to change notification settings - Fork 15
OpcodeForwardProxyPass
Michael VERGOZ edited this page May 24, 2014
·
3 revisions
HTTP forward proxy pass operation opcode used to connect to the source server.
var serverConfig = function(bs) { return({
// [...]
pipeline: {
myPipe: [
['proxyPass', {
mode: 'host',
timeout: 100
}]
],
}
})};
- mode is the forwarding method used to connect to source servers :
- host : use the request host HTTP header with IP DNS resolving in order to emit connections
- tproxy-src-host spoof the source address and use the IP DNS resolving to emit connections
- tproxy-src-dst spoof the source and use the destination address to emit connections (need tproxy server interface ON)
- tproxy-dst do not spoof the source address but use the destination address to emit connections (need tproxy server interface ON)
- timeout is the connection timeout in second, default 30 seconds