Hello, i've a small problem. I installed openvpn access server on a remote vps and configured to allow my asuswrt merlin to connect as a client. On the server, I have successfully opened a port for a web server that I have locally, inserting the right port forwarding configuration for the openvpn access server user. Tunnel between router and openvpn access server opens successfully. I also put the following rule in asuswrt merlin:
Unfortunately, however, port forwarding in the router seems to work only if I enable traffic redirection in the tunnel via VPN Director for the client in question (192.168.1.20). But I don't want to redirect all client traffic, I just want port forwarding through the tunnel. The problem is then only in the router configuration (via VPN Director it works). Does anyone have any idea how I can fix this issue? Thanks.
iptables -t nat -A PREROUTING -i tun11 -p tcp --dport 8080 -j DNAT --to-destination 192.168.1.20:8080