Port fowarding with private ip addresses on both lan and wan

I have the following port forward configured on my router and when I ssh into my router on 192.168.0.31 on port 32 i can't get into 10.0.0.182. Any Ideas why?

config redirect
        option target 'DNAT'
        option name 'ssh'
        option src 'wan'
        option dest 'lan'
        option dest_ip '10.0.0.182'
        option dest_port '22'
        option src_dport '32'
        list proto 'tcp'

You'd need the reflection option for a start

config redirect
        option target 'DNAT'
        option name 'ssh'
        option reflection '1'
        ... etc

You mention port 31, but the configuration says 32...

I have corrected the port and enabled the reflection but it is still not forwarding.

is 192.168.0.31 the LAN ip of the router?

Is the firewall on the device at 10.0.0.182 configured to accept connections from 192.168.0.0/24?

Use "tcpdump" to watch the packets as they reach the router on WAN and leave on LAN, and wether the server is answering.

1 Like