Settings
Help

Crate pt_proxy

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