Giter VIP home page Giter VIP logo

Comments (3)

nanqinlang avatar nanqinlang commented on July 17, 2024

没明白你说的 remote_addr 是指什么
lkl 的 haproxy 并不是直接转发本地的 127.0.0.1,它是在本地开一个 10.0.0.1 的 tap,然后把这个 tap 转发到 10.0.0.2

from general.

jimorsm avatar jimorsm commented on July 17, 2024

from general.

nanqinlang avatar nanqinlang commented on July 17, 2024

我觉得你是不是想太多了,只要你安装 lkl 时指定的端口包括了 80 443,就已经成功 lkl 了。根本就不用纠结什么真实 IP。
关于你说的 真实IP 是 10.0.0.2,你是不是看的 accesslog?那是理所应当的,你自己在本地 forward 了一遍,这时候 remoteaddr 已经改变了。至于怎么保持 remoteaddr 为客户实际IP,你自己研究吧。

from general.

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.