Port Forwarding

1 post / 0 new
martyrs1975
martyrs1975's picture
Port Forwarding

Hello,

 

Have an issue not being able to forward a to my webserver.

My router (R8000) is connect to a VPN. have setup DDNS (no-ip) in the router and have configured to forward port 80 to my web server.

Found on youtube this to add to my firewall 

insmod ipt_mark
insmod xt_mark
iptables -t mangle -A PREROUTING -i ! `get_wanface` -d `nvram get wan_ipaddr` -j MARK --set-mark 0xd001
iptables -t nat -A POSTROUTING -m mark --mark 0xd001 -j MASQUERADE

it didnt work 

Have tried having the router update no-ip to both my isp's ip and my VPN ip but niether work.

What am i missing?