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

Doesn't work from an external server #18

Open
mostafasoufi opened this issue May 14, 2018 · 1 comment
Open

Doesn't work from an external server #18

mostafasoufi opened this issue May 14, 2018 · 1 comment

Comments

@mostafasoufi
Copy link

mostafasoufi commented May 14, 2018

Hi there,

It seems doesn't work from an external server, But it's worked fine on the same server.

$ curl -x socks5://user1:secret1@localhost:1080 https://web.telegram.org
<!doctype html><html lang=en manifest=webogram.appcache ng-csp xmlns:ng=http://angularjs.org id=ng-app style="display: none;"><head><meta charset=utf-8><meta name=viewport content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"><title>Telegram Web</title><link rel=stylesheet href=css/app.css><link rel=manifest href=manifest.webapp.json><link rel=icon href=favicon.ico type=image/x-icon><link rel=apple-touch-icon href=img/iphone_home120.png><link rel=apple-touch-icon sizes=120x120 href=img/iphone_home120.png><link rel=apple-touch-startup-image media="(device-width: 320px)" href=img/iphone_startup.png><meta name=apple-mobile-web-app-title content="Telegram Web"><meta name=mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black-translucent><meta name=theme-color content=#497495><meta name=google content=notranslate><meta property=og:title content="Telegram Web"><meta property=og:url content="https://web.telegram.org/"><meta property=og:image content=https://web.telegram.org/img/logo_share.png><meta property=og:site_name content="Telegram Web"><meta property=description content="Welcome to the Web application of Telegram messenger. See https://github.com/zhukov/webogram for more info."><meta property=og:description content="Welcome to the Web application of Telegram messenger. See https://github.com/zhukov/webogram for more info."></head><body><div class=page_wrap ng-view></div><div id=notify_sound></div><script src=js/app.js></script></body></html>
$ curl -x socks5://user1:secret1@MYSERVERIP:1080 https://web.telegram.org
curl: (6) Could not resolve host: web.telegram.org
root@docker-s-1vcpu-1gb-nyc1-01:~# ufw status
WARN: / is group writable!
Status: active

To                         Action      From
--                         ------      ----
22                         LIMIT       Anywhere                  
2375/tcp                   ALLOW       Anywhere                  
2376/tcp                   ALLOW       Anywhere                  
8088                       ALLOW       Anywhere                  
1080                       ALLOW       Anywhere                  
443                        ALLOW       Anywhere                  
1080/tcp                   ALLOW       Anywhere                  
22 (v6)                    LIMIT       Anywhere (v6)             
2375/tcp (v6)              ALLOW       Anywhere (v6)             
2376/tcp (v6)              ALLOW       Anywhere (v6)             
8088 (v6)                  ALLOW       Anywhere (v6)             
1080 (v6)                  ALLOW       Anywhere (v6)             
443 (v6)                   ALLOW       Anywhere (v6)             
1080/tcp (v6)              ALLOW       Anywhere (v6) 
@landergate
Copy link

Make sure you have no issues with DNS resolving on that remote client.
DNS requests are not being socksified by default, resolving happens locally using local resolving params, i.e. your ISP DNS resolver.

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