How to block all the ports except port 22


#1

How to block all the ports except port 22 in Ubuntu 14, can any one advise , incoming ports all must be blocked and outbound should work…
…,…
.


#2

Hi go through the below link


#3

Install APF on Ubuntu and configure the file apf /etc/apf/conf.apf to disable the ports.