I've recently bought some cheap vps, and would like to open some ports, i already done that on server with ufw. btw I'm connecting to a VPN that allows me to forward ports to my local machine via OpenVPN since my local provder is blocking ports.
OpenVPN works fine on my pc all connected and working but it shows me only TCP ports are open,all UDP ports closed when i connected on VPN, but when i check on some webiste port checker and paste ip of server it tells its open..
i guess it has somehing with iptables or something like that..? Could anyone help me? THANKS
EDIT.I made this work by doing this command:
iptables -t nat -A PREROUTING -d SERVERIP -p UDP --dport 1234-j DNAT --to-dest 10.8.0.6:1234
iptables -t filter -A INPUT -p udp -d 10.8.0.6 --dport 3480 -j ACCEPT
and 10.8.0.6 is ip of OPENVPN