UFW Allow access to IP on a specific port

In order to allow a specific IP address to access a specific port on your server protected with UFW, issue the following command:

ufw allow from [ipAddress] proto [tcp|udp] to any port [port]

To delete this rule issue the following command:

ufw delete allow from [ipAddress] proto [tcp|udp] to any port [port]
Tagged with: , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*