Code Monkey home page Code Monkey logo

Comments (4)

Al-Bsharat avatar Al-Bsharat commented on August 19, 2024

Hello,
That is it possible to pass the user IP from haproxy to 3proxy?

from 3proxy.

Nothing4You avatar Nothing4You commented on August 19, 2024

at this time only using transparent proxying in iptables/nftables, otherwise this issue would be resolved.

from 3proxy.

Al-Bsharat avatar Al-Bsharat commented on August 19, 2024

@z3APA3A There is any new about this?

from 3proxy.

ezbik avatar ezbik commented on August 19, 2024

I was able to address this by using another tool, which makes apps (like 3proxy) that don't understand PROXY protocol, receive original client IP by spoofing it. The tool is https://github.com/cloudflare/mmproxy or Ubuntu's https://github.com/path-network/go-mmproxy , so the schema as follows:

Proxy_client>Haproxy>Mmproxy>3proxy>Web.

  • Proxy endpoint is http://srv1:8080 and https://srv1:8443
  • Haproxy listens on srv1:8080 (TCP) and srv1:8443 (TLS)
  • .. that forwards to mmproxy on srv2:8080, using PROXY protocol
  • .. that forwards to 3proxy on localhost:8081

So 3proxy finally receives orig client IP.

from 3proxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.