To open port 22 (the default SSH port) on a Linux server running APF (Advanced Policy Firewall), you can follow these steps:
/etc/apf/allow_hosts.rules
file and add the following line, replacing x.x.x.x
with the IP address that you want to allow connections from:tcp:in:d=22:s=x.x.x.x
sudo service apf restart
After completing these steps, port 22 will be open and allowing incoming connections only from the specified IP address. You can verify this by trying to connect to the server using SSH from the allowed IP address.