Mercurial > hg > nginx-quic
comparison auto/unix @ 6530:1d0e03db9f8e
Upstream: the "transparent" parameter of proxy_bind and friends.
This parameter lets binding the proxy connection to a non-local address.
Upstream will see the connection as coming from that address.
When used with $remote_addr, upstream will accept the connection from real
client address.
Example:
proxy_bind $remote_addr transparent;
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Fri, 18 Dec 2015 19:05:27 +0300 |
parents | 8426275a13fd |
children | 2c7b488a61fb |
comparison
equal
deleted
inserted
replaced
6529:cb8177ca0990 | 6530:1d0e03db9f8e |
---|---|
324 ngx_feature_run=no | 324 ngx_feature_run=no |
325 ngx_feature_incs="#include <sys/socket.h>" | 325 ngx_feature_incs="#include <sys/socket.h>" |
326 ngx_feature_path= | 326 ngx_feature_path= |
327 ngx_feature_libs= | 327 ngx_feature_libs= |
328 ngx_feature_test="setsockopt(0, SOL_SOCKET, SO_ACCEPTFILTER, NULL, 0)" | 328 ngx_feature_test="setsockopt(0, SOL_SOCKET, SO_ACCEPTFILTER, NULL, 0)" |
329 . auto/feature | |
330 | |
331 | |
332 # NetBSD bind to any address for transparent proxying | |
333 | |
334 ngx_feature="SO_BINDANY" | |
335 ngx_feature_name="NGX_HAVE_TRANSPARENT_PROXY" | |
336 ngx_feature_run=no | |
337 ngx_feature_incs="#include <sys/socket.h>" | |
338 ngx_feature_path= | |
339 ngx_feature_libs= | |
340 ngx_feature_test="setsockopt(0, SOL_SOCKET, SO_BINDANY, NULL, 0)" | |
341 . auto/feature | |
342 | |
343 | |
344 # Linux transparent proxying | |
345 | |
346 ngx_feature="IP_TRANSPARENT" | |
347 ngx_feature_name="NGX_HAVE_TRANSPARENT_PROXY" | |
348 ngx_feature_run=no | |
349 ngx_feature_incs="#include <sys/socket.h> | |
350 #include <netinet/in.h>" | |
351 ngx_feature_path= | |
352 ngx_feature_libs= | |
353 ngx_feature_test="setsockopt(0, IPPROTO_IP, IP_TRANSPARENT, NULL, 0)" | |
354 . auto/feature | |
355 | |
356 | |
357 # FreeBSD bind to any address for transparent proxying | |
358 | |
359 ngx_feature="IP_BINDANY" | |
360 ngx_feature_name="NGX_HAVE_TRANSPARENT_PROXY" | |
361 ngx_feature_run=no | |
362 ngx_feature_incs="#include <sys/socket.h> | |
363 #include <netinet/in.h>" | |
364 ngx_feature_path= | |
365 ngx_feature_libs= | |
366 ngx_feature_test="setsockopt(0, IPPROTO_IP, IP_BINDANY, NULL, 0)" | |
329 . auto/feature | 367 . auto/feature |
330 | 368 |
331 | 369 |
332 # BSD way to get IPv4 datagram destination address | 370 # BSD way to get IPv4 datagram destination address |
333 | 371 |