Please help me to configure the /etc/pf.conf that my OpenBSD can forward port 55555 to port 22. I have sshd installed on COMP3, and I want to ssh to COMP3 from Internet. I have following rules, but it doesn't work. Please help.

If you run tcpdump on the external interface do you see the packets coming in on port 55555?

Code:

tcpdump -ni fxp0

You either need a friend to ssh in to your box, or use a free shell account provider like http://silenceisdefeat.org, to ssh in to your box. Remember that the connection really does need to enter the external interface through the internet.

Each filter rule you want to log must explicitly state it, whether a block or a pass. J65nko's example, above, will log only blocked packets. If you want to log passing packets, those rules must include "log", also.