[Solved]Newbie can't forward port
-
I try to forward port 22 on the WAN so I can access one of my server. I followed the instruction on:
http://doc.pfsense.org/index.php/How_can_I_forward_ports_with_pfSense%3FWhen I test the port forwarding and it doesn't work. All I did was go to Firewall/NAT/Port Forward and add a rule. What I did wrong?
Please help, thanks a lot!
-
How do you test this?
From inside your network?
This wouldn't work without enabling NAT reflection. -
I tested from out side of the WAN. (I VPNed to a branch office, and try to ssh back)
Now I changed "NAT reflection" to "enabled", and still no luck. :'(
I noticed that it also created a filter rule. I attach a screen shot here.
-
Your config is correct. Probably one of 2 through 5 here, though check them all (short of 1 and 6 which aren't the case).
http://doc.pfsense.org/index.php/Port_Forward_Troubleshooting -
I tested from out side of the WAN. (I VPNed to a branch office, and try to ssh back)
Could the problem be the above? Not trying to point out the obvious, but it's possibly blocked there. Doesn't explain the internal test with refection on though.
Since I'm pointing out the obvious, I'll mention other possibilities that have tripped me up before:
Managed switch perhaps, any strange configuration on the port? Another possibility.
Firewall rule on the ssh host?
Can you try forwarding a different port, say port 80 just for testing?
-
@cmb:
Your config is correct. Probably one of 2 through 5 here, though check them all (short of 1 and 6 which aren't the case).
http://doc.pfsense.org/index.php/Port_Forward_TroubleshootingThank you, cmb.
I finally got it work!
The problem I had was "3. Client machine is not using pfSense as its default gateway." I changed the gateway on the server (which has sshd which I want access to) to my testing pfSense box and it works right away.