FreeBSD firewall configuration
doug at mail.sermon-archive.info
Fri Apr 7 10:17:03 UTC 2017
> On 7 April 2017, at 01:47, Miha Smrekar <smrekar.miha at gmail.com> wrote:
> I started using your system and I have come to firewall configuration. Can
> you tell me how to configure firewall (pf) that I will be able to connect
> with the computer through SSH on port 1024.
That depends on what else you are trying to accomplish. The simplest approach is to change the Port parameter in /etc/ssh/sshd_config. Then you don't need to do anything with pf. However, if you are filtering other things with pf you might want to consider blocking port 22 in pf and then redirecting port 1024 to port 22 on the local machine. The best way depends on what else you plan on doing.
More information about the freebsd-questions