google / nogotofail

An on-path blackbox network traffic security testing tool
Apache License 2.0
2.94k stars 418 forks source link

IPv6 traffic in "redirect" mode causes connection startup errors #114

Closed klyubin closed 7 years ago

klyubin commented 7 years ago

Client attempts to connect to http://ipv6.whatismyv6.com/. nogotofail MiTM, running in redirect (not tproxy!) mode spews:

[ERROR] Socket error in connection startup from fd12:3456:789a:bcde::1000 [ERROR] [Errno 2] No such file or directory Traceback (most recent call last): File "nogotofail/mitm/connection/server.py", line 176, in _on_server_socket_select self.setup_connection(client_socket) File "nogotofail/mitm/connection/server.py", line 100, in setup_connection if connection.start(): File "nogotofail/mitm/connection/connection.py", line 698, in start self._get_original_dest(self.client_socket)) File "nogotofail/mitm/connection/connection.py", line 723, in _get_original_dest dst = sock.getsockopt(socket.SOL_IP, SO_ORIGINAL_DST, 28) File "/usr/lib64/python2.7/socket.py", line 228, in meth return getattr(self._sock,name)(*args) error: [Errno 2] No such file or directory