Crate pt_proxy

Source

Structs§

Args 🔒
Tunnel SOCKS5 traffic through obfs4 connections
BridgeLineParseError 🔒
Error defined to denote a failure to get the bridge line
ForwardingCreds 🔒
Store the data we need to connect to the obfs4 client

Enums§

Command 🔒
Specify which mode we wish to use the program in

Constants§

CLIENT_STATE_LOCATION 🔒
The location where the obfs4 client will store its state
SERVER_STATE_LOCATION 🔒
The location where the obfs4 server will store its state

Functions§

build_client_config 🔒
Create the config to launch an obfs4 client process
build_server_config 🔒
Create the config to launch an obfs4 server process
connect_to_obfs4_client 🔒
Create a SOCKS5 connection to the obfs4 client
launch_obfs4_client_process 🔒
Launch obfs4 client process
launch_obfs4_server_process 🔒
Launch obfs4 server process
main 🔒
Main function, ties everything together and parses arguments etc.
read_cert_info 🔒
Read cert info and relay it to the user
run_forwarding_server 🔒
Launch the dumb TCP pipe, whose only job is to abstract away the obfs4 client and its complicated setup, and just forward bytes between the obfs4 client and the client
run_socks5_server 🔒
Run the final hop of the connection, which finally makes the actual network request to the intended host and relays it back