Please help me understand why below will not work.
My laptop --- public-internet -- OpenWRT (Public-IP xx.xx, Lan IP: 192.168.0.1) --- TP-Link EAP (192.168.0.2)
I put port-forwarding by editing /etc/config/firewall.
config redirect
option target 'DNAT'
option src 'wan'
option dest 'lan'
option proto 'tcp udp'
option src_dport '8098'
option dest_ip '192.168.0.2'
option dest_port '80'
option enabled '1'
option name 'Forward_AP'
From my laptop, why i am not able to see the EAP login page through public_IP:8098?
Same forwarding rule if I do for the OpenWRT device itself (192.168.0.1), I am able to see the Luci login page.
Heck, even I can access the EAP via the n2n edge interface (a lightweight vpn on OpenWRT).
config redirect
option target 'DNAT'
option src 'edge'
option dest 'lan'
option proto 'tcp udp'
option src_dport '13202'
option dest_ip '192.168.0.2'
option dest_port '80'
option name 'Forward_AP1'
config redirect 'ap1_snat'
option name 'AP1-SNAT'
option src 'edge'
option dest 'lan'
option dest_ip '192.168.0.2'
option src_dip '192.168.0.1'
option family 'ipv4'
option proto 'tcpudp'
option target 'SNAT'
So why would a simple port forwarding over WAN is not working?