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

anylink 可以通过Nginx做代理吗? #363

Open
w55554 opened this issue Mar 26, 2025 · 2 comments
Open

anylink 可以通过Nginx做代理吗? #363

w55554 opened this issue Mar 26, 2025 · 2 comments

Comments

@w55554
Copy link

w55554 commented Mar 26, 2025

版本

AnyLink v0.13.1 build on go1.22.10 [linux, amd64] date:2025-03-10T10:55:01+08:00 commit_id(abce53e)

系统版本

Ubuntu 22.04.5 LTS
内核
Linux ikuai-ubuntu 6.8.0-52-generic #53~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jan 15 19:18:46 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

目前我的Nginx配置是

server {
        listen 80 default_server;
        listen [::]:80 default_server;

        root /var/www/html;
        index index.php index.html index.htm index.nginx-debian.html;
        access_log  logs/default_access.log main;
        error_log  logs/default_error.log;
        server_name _;
        location / {
         #proxy_buffering off;
         #add_header X-Upstream $upstream_addr;
         #proxy_http_version 1.1;
         #proxy_set_header Upgrade $http_upgrade;
         #proxy_set_header Connection upgrade;
         #proxy_set_header X-Real-IP $remote_addr;
         #proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
         #proxy_set_header Host $host;
         proxy_set_header X-Forwarded-Proto https;
         #proxy_ssl_verify on;
         #proxy_ssl_server_name on;
         #proxy_ssl_trusted_certificate /usr/local/nginx/ca.pem;
         proxy_pass https://192.168.51.254:8899;


        }

        location ~ /\.ht {
                deny all;
        }
}

但是客户端通过ciso secure client 连接的时候报错。

@w55554 w55554 changed the title affected/package: anylink 可以通过Nginx做代理吗? anylink 可以通过Nginx做代理吗? Mar 26, 2025
@w55554
Copy link
Author

w55554 commented Mar 26, 2025

先报以下错误

Cisco Secure Client 无法与指定的安全网关建立连接,请尝试重新连接

点击确定后又报下面的错误

安全网关已拒绝连接尝试,需要尝试与同意安全网关或其他安全网关建立新连接,此操作要求重新进行身份验证。

@bjdgyc
Copy link
Owner

bjdgyc commented Mar 28, 2025

anylink 仅支持四层反向代理,不支持七层反向代理

https://github.com/bjdgyc/anylink/blob/main/doc/question.md#%E5%8F%8D%E5%90%91%E4%BB%A3%E7%90%86%E9%97%AE%E9%A2%98

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

2 participants