R
R
Ruslan Galiev2017-02-15 15:22:20
openvpn
Ruslan Galiev, 2017-02-15 15:22:20

Openvpn behind NAT clients can't connect?

Hello
VPN is configured based on openvpn installed on a server running Debian 8 amd64. Installed and configured according to instructions .
The server is behind the gateway, with a white IP. On which the rule is written for forwarding connections from the Internet and the local network coming on the TCP / 1194 port (openvpn configured it on TCP) to a white IP address, to a server with openvpn.
When checking outside with telnet'om to a white IP, the connection fails. When checking outside telnet'om 22 ports, which are also forwarded in the same way. the connection goes through.
Tell me what settings I forgot to do. when setting up an openvpn gateway/server?
UVW:

# ufw status
Status: active

To                         Action      From
--                         ------      ----
22                         ALLOW       Anywhere
1194/udp                   ALLOW       Anywhere
80/tcp                     ALLOW       Anywhere
7705/tcp                   ALLOW       Anywhere
7505/tcp                   ALLOW       Anywhere
1194/tcp                   ALLOW       Anywhere
22                         ALLOW       Anywhere (v6)
1194/udp                   ALLOW       Anywhere (v6)
80/tcp                     ALLOW       Anywhere (v6)
7705/tcp                   ALLOW       Anywhere (v6)
7505/tcp                   ALLOW       Anywhere (v6)
1194/tcp                   ALLOW       Anywhere (v6)

iptable:
# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination         

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination         
MASQUERADE  all  --  10.0.0.0/8           anywhere

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
chupasaurus, 2017-02-15
@chupasaurus

In the instructions you followed - OpenVPN is configured to use UDP, and you forwarded TCP.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question