Jump to content
Not connected, Your IP: 3.137.178.51

Recommended Posts

Hello everyone,

I need some help with a project of mine.

Basically, I’m about to move into a new apartment where the internet is managed by the landlord. To protect my internal network, I purchased an ASUS RT-AX88U Pro so I can run a VPN at the root of my personal network.

The VPN is working flawlessly; however, I’m having trouble with the port forwarding feature.

I’ve installed Asuswrt-Merlin 3004.388.8_4 and followed this documentation to set everything up:



However, even after following the guide step-by-step, none of the ports seem to be open.

Here are the iptables commands I used:

# For port 55730
iptables -I FORWARD -i tun1 -p udp -d 192.168.50.36 --dport 55730 -j ACCEPT
iptables -I FORWARD -i tun1 -p tcp -d 192.168.50.36 --dport 55730 -j ACCEPT
iptables -t nat -I PREROUTING -i tun1 -p tcp --dport 55730 -j DNAT --to-destination 192.168.50.36
iptables -t nat -I PREROUTING -i tun1 -p udp --dport 55730 -j DNAT --to-destination 192.168.50.36

# For port 62980
iptables -I FORWARD -i tun1 -p udp -d 192.168.50.36 --dport 62980 -j ACCEPT
iptables -I FORWARD -i tun1 -p tcp -d 192.168.50.36 --dport 62980 -j ACCEPT
iptables -t nat -I PREROUTING -i tun1 -p tcp --dport 62980 -j DNAT --to-destination 192.168.50.36
iptables -t nat -I PREROUTING -i tun1 -p udp --dport 62980 -j DNAT --to-destination 192.168.50.36

# For port 56241
iptables -I FORWARD -i tun1 -p udp -d 192.168.50.36 --dport 56241 -j ACCEPT
iptables -I FORWARD -i tun1 -p tcp -d 192.168.50.36 --dport 56241 -j ACCEPT
iptables -t nat -I PREROUTING -i tun1 -p tcp --dport 56241 -j DNAT --to-destination 192.168.50.36
iptables -t nat -I PREROUTING -i tun1 -p udp --dport 56241 -j DNAT --to-destination 192.168.50.36

# For port 55798
iptables -I FORWARD -i tun1 -p udp -d 192.168.50.36 --dport 55798 -j ACCEPT
iptables -I FORWARD -i tun1 -p tcp -d 192.168.50.36 --dport 55798 -j ACCEPT
iptables -t nat -I PREROUTING -i tun1 -p tcp --dport 55798 -j DNAT --to-destination 192.168.50.36
iptables -t nat -I PREROUTING -i tun1 -p udp --dport 55798 -j DNAT --to-destination 192.168.50.36

Despite running these commands, none of the ports appear to be open when I test them externally.

however they seems to be open in the router interface ( see screenshot )

thanks you for your help :)

Screenshot 2025-04-16 171318.png

Share this post


Link to post
@alexander3423478

Hello!

In various AsusWRT Merlin firmware versions the default name of the tun interface is not tun1. Can you please check? If in doubt just modify your rules by replacing tun1 with tun+ (here + is an iptables wildcard for interfaces). For anything else the rules seem just fine.

Kind regards
 

Share this post


Link to post

Hello everyone,

I’ve updated the command as suggested, changing tun to tun11 (I also tried tun+), but the port still doesn't seem to be open for some reason.

Maybe I misunderstood something, so please correct me if I’m wrong. What I’m trying to do is open a port through the VPN to allow connections to a Minecraft server and a Jellyfin server. Is that possible? And if not, what would be a good workaround?

Thank you again for your help!

Best regards

Share this post


Link to post
@alexander3423478

Hello!

Please make sure that both servers run in the 192.168.50.36 machine, that they listen to the correct ports, and that no firewall (running in that same machine) blocks packets to/from the servers.

Kind regards
 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...