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

無法透過proxy 連上外網 #65

Closed
yuessir opened this issue Jan 24, 2019 · 3 comments
Closed

無法透過proxy 連上外網 #65

yuessir opened this issue Jan 24, 2019 · 3 comments

Comments

@yuessir
Copy link

yuessir commented Jan 24, 2019

下面是錯誤訊息

已設定了
[parents]
192.168.0.22 = http://userName:pwd@192.168.0.22:8080/ 99

10:38:39 fwlite_8118:WARNING starting server: 8118
10:38:39 fwlite_8119:WARNING starting server: 8119
10:39:16 fwlite_8118:INFO CONNECT www.google.com.tw:443 via 192.168.0.22. 49400
10:39:16 fwlite_8118:ERROR OSError(0, 'create tunnel via 192.168.0.22 failed!')
10:39:16 fwlite_8118:ERROR Traceback (most recent call last):
File "C:\Users\User\Downloads\fwlite-v5-beta5\fwlite5\fwlite\fwlite_cli\base_handler.py", line 83, in handle
await self._handle()
File "C:\Users\User\Downloads\fwlite-v5-beta5\fwlite5\fwlite\fwlite_cli\base_handler.py", line 94, in _handle
await self.handle_one_request()
File "C:\Users\User\Downloads\fwlite-v5-beta5\fwlite5\fwlite\fwlite_cli\base_handler.py", line 146, in handle_one_request
await method()
File "C:\Users\User\Downloads\fwlite-v5-beta5\fwlite5\fwlite\fwlite_cli\proxy_handler.py", line 657, in do_CONNECT
await self._do_CONNECT()
File "C:\Users\User\Downloads\fwlite-v5-beta5\fwlite5\fwlite\fwlite_cli\proxy_handler.py", line 682, in _do_CONNECT
self.remote_reader, self.remote_writer, self.ppname = await open_connection(addr, port, self.pproxy, self.timeout, iplist, True)
File "C:\Users\User\Downloads\fwlite-v5-beta5\fwlite5\fwlite\fwlite_cli\connection.py", line 117, in open_connection
raise IOError(0, 'create tunnel via %s failed!' % proxy.name)
OSError: [Errno 0] create tunnel via 192.168.0.22 failed!
10:39:16 fwlite_8118:INFO CONNECT www.google.com.tw:443 via 192.168.0.22. 49403
10:39:16 fwlite_8118:ERROR OSError(0, 'create tunnel via 192.168.0.22 failed!')
10:39:16 fwlite_8118:ERROR Traceback (most recent call last):
File "C:\Users\User\Downloads\fwlite-v5-beta5\fwlite5\fwlite\fwlite_cli\base_handler.py", line 83, in handle
await self._handle()
File "C:\Users\User\Downloads\fwlite-v5-beta5\fwlite5\fwlite\fwlite_cli\base_handler.py", line 94, in _handle
await self.handle_one_request()
File "C:\Users\User\Downloads\fwlite-v5-beta5\fwlite5\fwlite\fwlite_cli\base_handler.py", line 146, in handle_one_request
await method()
File "C:\Users\User\Downloads\fwlite-v5-beta5\fwlite5\fwlite\fwlite_cli\proxy_handler.py", line 657, in do_CONNECT
await self._do_CONNECT()
File "C:\Users\User\Downloads\fwlite-v5-beta5\fwlite5\fwlite\fwlite_cli\proxy_handler.py", line 682, in _do_CONNECT
self.remote_reader, self.remote_writer, self.ppname = await open_connection(addr, port, self.pproxy, self.timeout, iplist, True)
File "C:\Users\User\Downloads\fwlite-v5-beta5\fwlite5\fwlite\fwlite_cli\connection.py", line 117, in open_connection
raise IOError(0, 'create tunnel via %s failed!' % proxy.name)
OSError: [Errno 0] create tunnel via 192.168.0.22 failed!

我的環境是AD網域
client---->company proxy---->internet(some websites blocks)
proxy 擋住了許多網站
所以我想透過 @v3aqb 開發的fwlite全局代理來突破封鎖

client---->company proxy---->ssr -->internet(freedom)
但不知是否我使用方式錯誤還是我的網絡環境問題拋出上述錯誤
再請給予指點 謝謝

@v3aqb
Copy link
Owner

v3aqb commented Jan 24, 2019

首先,使用方式错误:
company proxy 应该设在配置文件的[FWLite] --> parentproxy (#39)

另外,fwlite并不支持SSR...

SSR的windows client似乎是支持二级代理的,在系统托盘菜单的选项设置里

@yuessir
Copy link
Author

yuessir commented Jan 25, 2019

@v3aqb
snap

已配置

11:06:56 fwlite_8118:INFO CONNECT geover-prod.do.dsp.mp.microsoft.com:443 via direct. 56429
11:06:56 fwlite_8118:ERROR AttributeError("'NoneType' object has no attribute 'proxy'",)
11:06:56 fwlite_8118:ERROR Traceback (most recent call last):
File "C:\Users\User\Downloads\fwlite-v5-beta5\fwlite5\fwlite\fwlite_cli\base_handler.py", line 83, in handle
await self._handle()
File "C:\Users\User\Downloads\fwlite-v5-beta5\fwlite5\fwlite\fwlite_cli\base_handler.py", line 94, in _handle
await self.handle_one_request()
File "C:\Users\User\Downloads\fwlite-v5-beta5\fwlite5\fwlite\fwlite_cli\base_handler.py", line 146, in handle_one_request
await method()
File "C:\Users\User\Downloads\fwlite-v5-beta5\fwlite5\fwlite\fwlite_cli\proxy_handler.py", line 657, in do_CONNECT
await self._do_CONNECT()
File "C:\Users\User\Downloads\fwlite-v5-beta5\fwlite5\fwlite\fwlite_cli\proxy_handler.py", line 682, in _do_CONNECT
self.remote_reader, self.remote_writer, self.ppname = await open_connection(addr, port, self.pproxy, self.timeout, iplist, True)
File "C:\Users\User\Downloads\fwlite-v5-beta5\fwlite5\fwlite\fwlite_cli\connection.py", line 104, in open_connection
remote_reader, remote_writer, _ = await open_connection(proxy.hostname, proxy.port, proxy.get_via(), timeout=timeout, tunnel=True)
File "C:\Users\User\Downloads\fwlite-v5-beta5\fwlite5\fwlite\fwlite_cli\connection.py", line 100, in open_connection
if not proxy.proxy:
AttributeError: 'NoneType' object has no attribute 'proxy'

@v3aqb
Copy link
Owner

v3aqb commented Jan 25, 2019 via email

@yuessir yuessir closed this as completed Jan 25, 2019
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