-
Notifications
You must be signed in to change notification settings - Fork 15
OpcodeForwardProxyPass
mykiimike edited this page Sep 22, 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,
allowConnect: false
}]
],
}
})};
- 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
- allowConnect to allow CONNECT methods on the interface
- localAddress is used to specify the IP to bind for network connections. NOTE: In the case of network interface alias don't forget to use a /32 mask