I don’t want to use http ssl listen becase of SSL handshaking burden on
NginX.
I decided to use stream codec like below.
stream {
upstream aa34 {
zone first_row 64k;
server google.com fail_timeout=5s;
}
server {
listen 127.0.0.1:8081;
location / {
proxy_pass https://aa34;
}
}
In this case, I think I can’t specify any http related parameters like
‘X-forwarded-for’.
Is there any way to change source ip address of TCP/IP Protocol
header(Ip
Header) to client’s real Ip ?
There is a problem that can’t get real client’s Ip address.
[snipp]
server {
listen 127.0.0.1:8081;
location / {
proxy_pass https://aa34;
}
}
In this case, I think I can’t specify any http related parameters like
‘X-forwarded-for’.
Is there any way to change source ip address of TCP/IP Protocol
header(Ip
Header) to client’s real Ip ?
Aleks, I’m really thank you for your timely response.
I checked “proxy_protocol on;” option is working fine and watched the L4
machine send proxy protocol header like “PROXY TCP4 [Ip1] [Ip2] [Port1]
[Port2]”.
Really thank you.
Posted at Nginx Forum:
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.