0

I'd like to record the way to configure the firewall UFW for basic purpose of a desktop.
allow
ruleset isn't exactly right, and in fact opens the system to extra risks. Your first step already allow outgoing. You already deny incoming in the first step too. As I understand ufw
defaults, you don't need to open ports 80, 443, etc. as they are accepted by the 'related' rules that ufw transparently installs. You only open those ports if those services are running on the system, to permit incoming connections to those services, not to accept return traffic from the web browser use or an email client's use (since those are started on 'high number random ports'). — Thomas W. 11 mins agoallow out
rules and replaced by the default one: ufw default allow outgoing
. Is that correct now, or does my remaining allow
rules for incoming are wrong ? — Boris 2 mins agoiptables
rule does is acknowledge I have the outbound communication to some server's port 80, from my port 53727, and accepts related traffic ufw
to accept port 80 inbound, you effectively expose port 80 on the desktop to connections from outside that computer ufw
by default should already have an equivalent rule to permit the related-to-something-this-system-initiated-outbound traffic, you have no need to open additional inbound ports