Greetings from Switzerland,
I've been struggling for 2 days to get NAT to work on my new Asus RT-AX88U Pro router with Merlin firmware 3006.102.4.
I have a new Starlink connection but need to access my MDaemon mail server (port 443) and my Jeedom home automation server from the outside. As Starlink residential doesn't allow personal IP (CG-NAT), I bought a PureVPN subscription with dedicated IP and port forwarding.
For testing purposes, I used a line of Python to create a mini web server, which works fine locally on http://192.168.2.40:8080/.
On the PureVPN side, I've enabled all ports for port forwarding.
On the Asus side, I set up a NAT from port 8080 to 192.168.2.40:8080.
I've also (ChatGPT suggestion...) added in /jffs/scripts/nat-start:
VPN_IF="tun11"
VPN_PORT="8080"
DEST_IP="192.168.2. 40"
DEST_PORT="8080"
iptables -t nat -A PREROUTING -i $VPN_IF -p tcp --dport $VPN_PORT -j DNAT --to-destination $DEST_IP:$DEST_PORT
iptables -A FORWARD -i $VPN_IF -p tcp --dport $VPN_PORT -d $DEST_IP -j ACCEPT
Then:
chmod +x /jffs/scripts/nat-start
sh /jffs/scripts/nat-start
but I can't display my web page with 172.x.x.x:8080 (my PureVPN fixed ip).
Note that PureVPN gave me xxx.pointtoserver.com in addition to the IP. But curiously, a ping on this domain name points to another IP. I've contacted their support, and they tell me it's normal, that there's load balancing going on.
What's wrong? Can I access Asus logs to see if traffic is coming in?
I've been struggling for 2 days to get NAT to work on my new Asus RT-AX88U Pro router with Merlin firmware 3006.102.4.
I have a new Starlink connection but need to access my MDaemon mail server (port 443) and my Jeedom home automation server from the outside. As Starlink residential doesn't allow personal IP (CG-NAT), I bought a PureVPN subscription with dedicated IP and port forwarding.
For testing purposes, I used a line of Python to create a mini web server, which works fine locally on http://192.168.2.40:8080/.
On the PureVPN side, I've enabled all ports for port forwarding.
On the Asus side, I set up a NAT from port 8080 to 192.168.2.40:8080.
I've also (ChatGPT suggestion...) added in /jffs/scripts/nat-start:
VPN_IF="tun11"
VPN_PORT="8080"
DEST_IP="192.168.2. 40"
DEST_PORT="8080"
iptables -t nat -A PREROUTING -i $VPN_IF -p tcp --dport $VPN_PORT -j DNAT --to-destination $DEST_IP:$DEST_PORT
iptables -A FORWARD -i $VPN_IF -p tcp --dport $VPN_PORT -d $DEST_IP -j ACCEPT
Then:
chmod +x /jffs/scripts/nat-start
sh /jffs/scripts/nat-start
but I can't display my web page with 172.x.x.x:8080 (my PureVPN fixed ip).
Note that PureVPN gave me xxx.pointtoserver.com in addition to the IP. But curiously, a ping on this domain name points to another IP. I've contacted their support, and they tell me it's normal, that there's load balancing going on.
What's wrong? Can I access Asus logs to see if traffic is coming in?