I have router based on linux (BusyBox). I can login to terminal by telnet. I want to forward wan port to ip_external:port
for example:
my wan ip (on my router):77.30.109.251
my wan port (on my router):1188
my external remote ip (on my vps):92.222.75.159
my remote port (on my vps):1180
i just try to redirect 77.30.109.251:1188 to 92.222.75.159:1180 by iptables and that is all
i have tried by this commend but still appear port as filtered when i test it on ipfingerprints.com/portscan.php ip:77.30.109.251 port:1188
iptables -t nat -A PREROUTING -i ppp111 -p tcp --dport 1188 -j DNAT --to 92.222.75.159:1180
iptables -t nat -A PREROUTING -p tcp --dport 1180 -j DNAT --to 92.222.75.159:1180
iptables -t nat -A POSTROUTING -p tcp -d 92.222.75.159 --dport 1180 -j MASQUERADE