When the OpenVPN client and the server are on the same network (192.168.88.x in this case) UDP and TCP work fine. But when the client is outside, I can only establish a TCP connection.
Any suggestions on what I can change?
Here's a list of my NAT rules:
Code: Select all
0 ;;; defconf: masquerade
chain=srcnat action=masquerade out-interface=pppoe-out1 log=no log-prefix=""
1 ;;; HAIRPIN
chain=srcnat action=masquerade src-address=192.168.88.0/24 dst-address=192.168.88.0/24 log=no log-prefix=""
2 ;;; web sever 443
chain=dstnat action=dst-nat to-addresses=192.168.88.2 to-ports=443 protocol=tcp dst-address=!192.168.88.1 dst-address-type=local dst-port=443 log=no log-prefix=""
3 ;;; OpenVPN udp
chain=dstnat action=dst-nat to-addresses=192.168.88.2 to-ports=1194 protocol=udp dst-address=!192.168.88.1 dst-address-type=local dst-port=1194 log=no log-prefix=""
4 ;;; OpenVPN tcp
chain=dstnat action=dst-nat to-addresses=192.168.88.2 to-ports=9443 protocol=tcp dst-address=!192.168.88.1 dst-address-type=local dst-port=9443 log=no log-prefix=""