

Sudo apt-get install iptables-persistent Build OpenVPN with Xor Patch on Serverĭownload the OpenVPN 2.4.6 source code: mkdir ~/Downloads

Masquerade the source IP address of outgoing packets: sudo iptables -t nat -A POSTROUTING -s 10.0.0.0/8 -o eth0 -j MASQUERADE This will require adding a rule to your Security Group in a cloud environment, or adding a rule to your iptables rules if that is what you are using as a firewall. Open your firewall for udp traffic on port `443` (in our example). Make these changes effective: sudo sysctl -p Write the file to disk, and quit the editor. Uncomment the line: _forward=1Īdd at the bottom of the file the lines: .disable_ipv6 = 1 Start by making sure your server is up to date: sudo apt-get updateĮdit the system configuration file: sudo vi /etc/nf To prepare the server to run OpenVPN with the Xor patch, we will allow packet forwarding, disable IPv6, open the firewall, and masquerade the source IP address of outgoing packets. We communicate between client and server via `udp` on port `443`, which you may need to change, depending on what restrictions apply on your network.The server public IP address is 34.34.34.34, which you will need to change to correspond to your actual server public IP address.The client runs Ubuntu Linux version 18.04.The server runs Ubuntu Linux version 18.04.The example given here makes these assumptions: In this article, we build OpenVPN with the Xor obfuscation patch. The Tunnelblick project then split it into five components. The Xor patch provides a modification that may allow OpenVPN to work in restrictive environmemts.
