Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting dockcer ip insted of users ubuntu server #117

Closed
rubi022 opened this issue Mar 25, 2020 · 9 comments
Closed

Getting dockcer ip insted of users ubuntu server #117

rubi022 opened this issue Mar 25, 2020 · 9 comments

Comments

@rubi022
Copy link

rubi022 commented Mar 25, 2020

Hi, I am getting docker container private IP, How can I fix it?
https://i.imgur.com/OF01FZo.jpg

@lekabyte
Copy link

lekabyte commented Apr 8, 2020

i have the same problem. did you solve it?

@rubi022
Copy link
Author

rubi022 commented Apr 8, 2020

nop was I asked multiple times but no one seems to help.
Someone said an upgrade to the new version will solve it but did not work for me.

@lekabyte
Copy link

lekabyte commented Apr 9, 2020

Here are my findings

docker container ip is detected up to barong 2.3.46. in 2.3.47 detects real client ip but websocket stops to work.

the diff between barong to detect real client ip is in file
"lib\barong\cloudflare_middleware.rb"

in 2.3.46: "ips = ips_from('HTTP_X_FORWARDED_FOR')"
in 2.3.47: "ips = ips_from(@env['HTTP_X_FORWARDED_FOR'])"

if you change this it will detect real client ip. but i can't get websocket to work. i get error described here: #132

tried also without using cloudflare service.

@rubi022
Copy link
Author

rubi022 commented Apr 17, 2020

@lekabyte did you change to code?
What did you change do, Can you share the updated file here?

@rubi022
Copy link
Author

rubi022 commented Apr 17, 2020

I am using 2.3.47 and I am getting cloudflare IP not users ip

@lekabyte
Copy link

i was using cloudflare too. but never got cloudflare ip. i got docker container ip instead. i got it fixed. don't have the best solution, but it works. i will post when i get back home what versions i am using and what i changed

@rubi022
Copy link
Author

rubi022 commented Apr 17, 2020

@lekabyte thank you for your reply.
At first, I was getting docker. I made the changes after seeing your comment and now I am getting Cloudflare IP, I will wait for your post.

@rubi022
Copy link
Author

rubi022 commented Apr 24, 2020

peatio: quay.io/openware/peatio:2.3.55
barong: quay.io/openware/barong:2.3.48

fixed it for me.

@dpatsora
Copy link
Member

Hello
We are so sorry that we reply to you so late.
We fixed this issue in quay.io/openware/barong:2.3.48.

Sincerely yours,
Openware Team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants