I have a VPN to my SIM supplier that gives me access to the private IP of a SIM. What I want is to port forward to my RUT240's IP port 80 from a public IP via the VPN.
I have a server with a public IP, for example, 22.214.171.124 that forwards port 9999 traffic to the routers IP 10.1.0.1 port 80. I have set this up successfully, I can even send REST API calls to it via HTTP://126.96.36.199:9999/ubus and get a response back. However, when I try to access the web UI via my browser, it shows a white page that keeps loading that eventually stops.
I can see that my browser's request is being routed to http://188.8.131.52:9999/cgi-bin/luci so the router is accessible, but it will not continue to load the page. Remote access on port 80 is enabled on the router. Is there something else I have to enable/disable? My forwarding rules are below.
My server is in AWS, so I have to use the private IP. Its private IP (to which the Elastic IP is mapped) is 172.16.4.9
MACRO_CUST -o eth0 -s 172.16.4.0/24 -j MASQUERADE
PREROUTING_CUST -p tcp --dport 9999 -j DNAT --to-destination 10.1.0.1:80
POSTROUTING_CUST -p tcp -d 10.1.0.1 --dport 80 -j SNAT --to-source 172.16.4.9