port forwarding not work

Started by testccc, July 11, 2022, 06:13:09 PM

Previous topic - Next topic
here is my config:

opnsense as the default gateway, A, B, C 3 machines are under the same Lan and machine B is openwrt.

gateway configuration:
- A configures the gateway as B
- B, C configure the gateway as opnsense

port forwarding configuration:
- opnsense(4000)->A(22)
- opnsense(4001)->C(22)

According to the above configuration, after the port forwarding is enabled in opnsense, the external network can access the port of C normally, but cannot access the port of A. does anyone know what the problem is?

What's the "associated firewall rule" in the port forwarding page set to? It should be "pass".
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

thank you for your reply.
you means this option should be selected to `Pass`?  i will try it later.

this is the log after I modified the rule to pass, but it still doesn't work.

the ip starting with 80 is the external network test machine (machine X)
the ip starting with 183 is my external network ip (opnsense)
the ip starting with 192.168 is the internal test machine (machine A)
machine B is not listed above, it is the gateway of A, and its gateway points to opnsense

The port forwarding test link looks like this
X->opnsense(PORT:36000)->A(PORT:22)