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]

Leave a Reply