Port forward for both LAN and WAN in one rule
Let's say the WAN IP of pfSense is 220.127.116.11 and the LAN IP of pfSense is 192.168.0.1
I have two PCs behine pfSense:
PC1's LAN IP: 192.168.0.100;
PC2's LAN IP: 192.168.0.101;
I have one more PC (PC3) outside the LAN whose IP is 18.104.22.168
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 firstname.lastname@example.org -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?)
Grimson Banned last edited by
it works! Thanks anyway.