我不知道这是一个错误还是我刚刚配置了错误。
我在一个 IP 为 192.168.1.1 的 OpenWrt 路由器上,它作为另一个 IP 为 192.168.0.1 的路由器的客户端。
OpenWrt 路由器有一个防火墙规则,它基本上通过基于 192.168.0.1 路由器网络的主机为其网络上的任何客户端发送所有互联网。
此主机的 IP 为 192.168.0.6,并且运行的是最新mitmproxy --mode transparent
版本 7。
当我在 192.168.1.1 的网络上使用客户端时,会mitmproxy
崩溃,并且我在终端中收到此错误消息。
192.168.0.35:47586: client connect
192.168.0.35:47586: Transparent mode failure: OSError(92, 'Protocol not available')
192.168.0.35:47586: mitmproxy has crashed!
Traceback (most recent call last):
File "mitmproxy/proxy/server.py", line 279, in server_event
File "mitmproxy/proxy/layer.py", line 144, in handle_event
File "mitmproxy/proxy/layer.py", line 257, in handle_event
File "mitmproxy/proxy/layer.py", line 129, in handle_event
File "mitmproxy/proxy/layer.py", line 220, in __continue
File "mitmproxy/proxy/layer.py", line 183, in __process
File "mitmproxy/proxy/layer.py", line 271, in _handle_event
File "mitmproxy/proxy/layer.py", line 285, in _ask
File "mitmproxy/proxy/layer.py", line 144, in handle_event
File "mitmproxy/proxy/layers/http/__init__.py", line 740, in _handle_event
File "mitmproxy/proxy/layers/http/__init__.py", line 761, in event_to_child
File "mitmproxy/proxy/layers/http/__init__.py", line 749, in event_to_child
File "mitmproxy/proxy/layer.py", line 144, in handle_event
File "mitmproxy/proxy/layers/http/__init__.py", line 136, in _handle_event
File "mitmproxy/proxy/layers/http/__init__.py", line 162, in state_wait_for_request_headers
AssertionError
我想知道我的防火墙设置是否从请求标头中剥离了一些重要的东西。
目前它说从 wan 重定向到 lan