Jump to content


Photo

openVPN Configuration


Best Answer DrShakalu, 17 August 2020 - 05:54 PM

If someone has the same issue, following the instructions from this tutorial: https://www.digitalo...on-ubuntu-14-04 and enjoy your free openVPN Server which is under your control!

Go to the full post


  • Please log in to reply
1 reply to this topic

#1 DrShakalu

DrShakalu
  • New Members
  • 2 posts

Posted 22 July 2020 - 08:29 AM

Hello,

 

I am trying to set up an openVPN Server to use your awesome tool to play Command and Conquer 3.

 

I have connection issues when I turned on the VPN, so I tried the status with the connection test tool.

Using server nntest.cnc-online.net:30000
Bound to local port 39199
Bound to local alternate port 39200
Resolving hostname 'nntest.cnc-online.net'...
Resolved server host to be '37.247.49.213'
Sending client INIT from port 39199 to nntest.cnc-online.net:30000
Received server INIT [853778]
Our public address is 164.68.121.122:39199
Sending client INIT2 [853778] from port 39200 to nntest.cnc-online.net:30000
Received server INIT2 [853778]
Our alternate public address is 164.68.121.122:39200
Sending cient START [853778] from port 39200 to nntest.cnc-online.net:30000
Received server START [853778]
Server extra port is 40000
Sending client PING [853778] from port 39199 to nntest.cnc-online.net:40000

===========
  FAILURE  
===========
Failed to receive any pings from nntest.cnc-online.net:40000.
It appears your router and/or connection is not capable of NAT negotiation.
==> You will need to use port forwarding and possibly configure a static port.
Error in _data_received: system:676 Unknown error
Error in _data_received: system:676 Unknown error
Error in _data_received: system:676 Unknown error
Error in _data_received: system:676 Unknown error
Error in _data_received: system:676 Unknown error

Server Configuration:

port 1194

proto udp
dev tun

ca ca.crt
cert certificate.crt
key keys.key  # This file should be kept secret

dh dh2048.pem

server 10.8.0.0 255.255.255.0

ifconfig-pool-persist /var/log/openvpn/ipp.txt

push "redirect-gateway def1 bypass-dhcp"

push "dhcp-option DNS 8.8.8.8"

keepalive 10 120

tls-auth ta.key 0 # This file is secret

cipher AES-256-CBC

persist-key
persist-tun

status /var/log/openvpn/openvpn-status.log

verb 3

explicit-exit-notify 1

auth SHA512

Ip Tables

iptables -t nat -I POSTROUTING -o eth0 -s 10.8.0.0/24 -j MASQUERADE
iptables -I FORWARD -i tun0 -o eth0 -s 10.8.0.0/24 -m conntrack --ctstate NEW -j ACCEPT
iptables -I FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT

sysctl net.ipv4.ip_forward
net.ipv4.ip_forward = 1

 

I have no glue what I should configure on the openVPN Server to make it work.

 

Did someone install an own openVPN Server and could make it work? I would really appreciate a hint.

 

Thank you....

 


Edited by DrShakalu, 22 July 2020 - 11:10 AM.


#2 DrShakalu

DrShakalu
  • New Members
  • 2 posts

Posted 17 August 2020 - 05:54 PM   Best Answer

If someone has the same issue, following the instructions from this tutorial: https://www.digitalo...on-ubuntu-14-04 and enjoy your free openVPN Server which is under your control!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users