UFW - Uncomplicated Firewall

Allow port

Deny port

Sample Config

Advanced Rules

Logging