Skip to content

Conversation

@djs55
Copy link
Collaborator

@djs55 djs55 commented Jul 2, 2022

This is to help debug a strange Windows failure:

Add a vpnkit.exe curl http://example.com test program

Add verbose debug logging around TCP connections

@djs55 djs55 force-pushed the network-debugging2 branch from 97d13de to a6bda91 Compare July 2, 2022 19:26
djs55 added 10 commits July 13, 2022 13:18
Signed-off-by: David Scott <dave@recoil.org>
Previously we had
- Endpoint.input_tcp: which handled RST and then called
  intercept_tcp_syn with a default forwarding option (connect to (ip,
  port))
- Endpoint.intercept_tcp_syn: also used by services like the HTTP proxy

The RST handling wasn't clear for the HTTP proxy etc, so rename
intercept_tcp_syn to intercept_tcp and ensure it handles RST packets
too.

Signed-off-by: David Scott <dave@recoil.org>
We will have a future function which forwards to a Unix socket.

Signed-off-by: David Scott <dave@recoil.org>
For now we only track connected TCP sockets, but in a future patch
we will add Unix sockets.

Prepare by tagging the socket with `Tcp socket and move the close
logic into the module.

Signed-off-by: David Scott <dave@recoil.org>
This is modelled on the existing "Gateway_forwards"

Signed-off-by: David Scott <dave@recoil.org>
This reads and watches the <json path> for configuration updates,
modelled on the existing `--gateway-forwards`

Signed-off-by: David Scott <dave@recoil.org>
Define a simple handshake with a .json-formatted request and response.

Signed-off-by: David Scott <dave@recoil.org>
Signed-off-by: David Scott <dave@recoil.org>
This will allow testing of the I/O system.

Signed-off-by: David Scott <dave@recoil.org>
Signed-off-by: David Scott <dave@recoil.org>
@djs55 djs55 force-pushed the network-debugging2 branch from a6bda91 to 694e011 Compare July 13, 2022 15:17
Signed-off-by: David Scott <dave@recoil.org>
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

Successfully merging this pull request may close these issues.

1 participant