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

如何使得failover模式下,服务器能够正确记录源ip地址? #243

Open
yyk123 opened this issue Jun 5, 2019 · 0 comments
Open

Comments

@yyk123
Copy link

yyk123 commented Jun 5, 2019

服务端开启obfs-server,failover 转发至apache2 服务器,access.log里 源地址全是 127.0.0.1 ,fail2ban无法正确工作

127.0.0.1 - - [05/Jun/2019:22:10:21 +0800] "GET /icons/back.gif HTTP/1.1" 200 483
127.0.0.1 - - [05/Jun/2019:22:10:21 +0800] "GET /icons/unknown.gif HTTP/1.1" 200 513
127.0.0.1 - - [05/Jun/2019:22:10:21 +0800] "GET /icons/compressed.gif HTTP/1.1" 200 1308
127.0.0.1 - - [05/Jun/2019:22:30:34 +0800] "GET / HTTP/1.1" 401 579

有没有可能修改代码,使apache2 能正确记录源地址,如:

167.99.73.165 - - [05/Jun/2019:08:01:06 +0800] "GET / HTTP/1.1" 401 579
164.52.24.163 - - [05/Jun/2019:08:14:13 +0800] "GET / HTTP/1.1" 401 579
35.195.252.131 - - [05/Jun/2019:09:35:11 +0800] "GET / HTTP/1.1" 401 579
5.190.203.181 - - [05/Jun/2019:10:06:09 +0800] "GET / HTTP/1.1" 401 579
191.17.193.179 - - [05/Jun/2019:10:10:41 +0800] "GET / HTTP/1.1" 401 579
191.17.193.179 - - [05/Jun/2019:10:10:41 +0800] "GET / HTTP/1.1" 401 579
110.249.212.46 - - [05/Jun/2019:10:29:24 +0800] "GET http://110.249.212.46/testget?q=23333&port=80 HTTP/1.1" 400 0

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

No branches or pull requests

1 participant