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]
Posted in Security Tagged with: , , ,

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>