

Iptables -t filter -A INPUT -p tcp -d 10.8.0.3 -dport 2634 -j ACCEPT Setup Port Forwarding for user2 iptables -t nat -A PREROUTING -d YourVPSIPHere -p tcp -dport 2634 -j DNAT -to-dest 10.8.0.3:2634

Iptables -t filter -A INPUT -p tcp -d 10.8.0.2 -dport 32400 -j ACCEPT This will open port 32400 to the user1 internal vpn IP iptables -t nat -A PREROUTING -d YourVPSIPHere -p tcp -dport 32400 -j DNAT -to-dest 10.8.0.2:32400 Setup Port Forwarding for user1 find/replace YourVPSIPHere with your server/VPS IP. Set the below values with the matching usernames from the CCD file and script generated usernames. This ensures clients have static internal IP addresses for when we setup port forwards for clients it sticks to their static internal IP. nano /etc/openvpn/ccd/user1Īdd the below for the first user1 ifconfig-push 10.8.0.2 255.255.255.0ĬCD example content for additional users ifconfig-push 10.8.0.2 255.255.255.0 > used for user1 Replace user1 with the exact username from the user created via the script earlier. To created your first client configuration. To modify these values to your liking or to match the above. Tls-cipher TLS-DHE-RSA-WITH-AES-128-GCM-SHA256 In this case were using Adguard DNS to block ads at the DNS level to speed up connections. Note the “verb 0” for 0 logging and the “push “dhcp-option DNS 176.103.130.130″” which can be your desired DNS servers pushed to clients to prevent leaks. The OpenVPN Server Configuration should look like the below. openvpn-install.shĬreate Openvpn ccd folder for storing user profiles mkdir /etc/openvpn/ccdĬeate the IP Pool persistent text nano /etc/openvpn/ipp.txt See the source guide for details and explanation of options >.
#Udp connection timed out retroshare install#
Install Openvpn and make script executable wget Or alternatively use the below command to add it to end of file if not enabled/commented out. Once that is done you will want to install a few required packages if there not currently installed.įor Centos yum install nano wget curl htop -yįor Ubuntu/Debian apt-get install htop nano wget curl -yĬan check for this by using the below command and looking for “_forward = 0” and change to “_forward = 1” nano /etc/nf

If not doing this as root please add sudo to all commands.įor Ubuntu/Debian apt-get update & apt-get upgrade Once installed you will want to ensure the server is updated fully. If you need a VPS for VPN please see our plans here.įirst install your desired OS (Centos, Ubuntu, Debian)
#Udp connection timed out retroshare how to#
This guide will show you how to install a OpenVPN server with port forwarding aka open ports.
