tproxy-example icon indicating copy to clipboard operation
tproxy-example copied to clipboard

An example of how TPROXY can be used to proxy tcp connections.

Results 5 tproxy-example issues
Sort by recently updated
recently updated
newest added

thanks for such example. but can you tell me how to print data pass through this proxy.

When remote end closes connection this program closes local connection without sending already received data from remote. Local end receives cut off data.

in tproxy_example_conn.c in function "add_tcp_connection" free_conn is called after TAILQ_INSERT_HEAD(conn_list, conn, conn_ptrs); That leads to freed ptrs being in the list => segfault. Tail insertion should be the last action