Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
In case you have already installed Python 2.7 and pip and of course cloned the appropriate branch to your computer, then it is kind of easy to set up the tool. There are a few more steps, but do not worry at all.
If you would like to use the SCTP module in the framework, you need to install the SCTP library. On a Debian based Linux, run the following command:
# apt-get install libsctp-dev
Then install the requirements with pip:
# pip install -r misc/requirements_linux.txt
Enable IP forwarding as root by using either:
# sysctl -w net.ipv4.ip_forward=1
# echo 1 > /proc/sys/net/ipv4/ip_forward
then set up iptables to do the NAT'ing for you (do not forget to change your IP range from the config and the interface name to the default gateway's interface):
# iptables -t nat -A POSTROUTING -s 10.9.0.0/24 -o eth0 -j MASQUERADE
After you have done the configuration below as well, you need to start the framework as root in server mode as follows:
# python xfltreat.py
This might be hacky, on CentOS iptables must be installed.
# yum install iptables-services
# systemctl start iptables
In client mode, there is not much to configure on the operating system, but the configuration file (xfltreat.conf) should match the configuration of the server side (module ports, authentication/encryption key etc.).
After you have done the configuration below as well, you need to start the framework as root in client mode as follows:
# python xfltreat.py --client
To configure the transport, encryption and authentication modules read the Configuration article.