Port forward for both LAN and WAN in one rule

  • Let's say the WAN IP of pfSense is and the LAN IP of pfSense is
    I have two PCs behine pfSense:
    PC1's LAN IP:;
    PC2's LAN IP:;
    I have one more PC (PC3) outside the LAN whose IP is
    PC1 is running an SSH Server on port 22. I added an NAT rule like this:

    After applying the above-mentioned rule, I can access PC1 using the following command at PC3:
    ssh admin@ -p 22
    However, this command wouldn't work on PC2. I think it is because both PC1 and PC2 are in the same LAN and thus the rule somehow doesn't apply.

    So I tried to create a second rule:

    Now both PC2 and PC3 work.

    But I think this setting is a little bit awkward. Would there be any possibility that I can combine these two rules into one? (as I remember Sophos' UTM allows users to apply one rule to both interfaces, but it appears that pfSense doesn't work this way and one rule can only apply to either WAN or LAN?)


  • Banned

  • it works! Thanks anyway.

Log in to reply