an implementation of transparent proxy protocol to break through the firewall.
TCP flow establishing connection
How router works
TCP encode headers
https://github.com/ptpt52/natcap/blob/master/docs/natcap_tcp_type1.pdfhttps://github.com/ptpt52/natcap/blob/master/docs/natcap_tcp_type2.pdfhttps://github.com/ptpt52/natcap/blob/master/docs/natcap_tcp_type3.pdf
Install on Ubuntu
Install essential packages
sudo apt-get install build-essential ipset libev-dev
sudo apt-get build-dep linux-image-`uname -r`
sudo apt-get install lua5.1 lua-cjson lua-bitop ipcalc
Get the source code
git clone https://github.com/ptpt52/natcap.git
Build and run as client
cd natcap
make && make -C natcapd
#edit client.sh change server line
sudo ./client.sh
Build and run as server
cd natcap
make && make -C natcapd
sudo ./server.sh
from https://github.com/ptpt52/natcap