{"id":198,"date":"2025-06-13T20:38:03","date_gmt":"2025-06-14T00:38:03","guid":{"rendered":"https:\/\/fullscale4me.com\/?p=198"},"modified":"2025-10-03T19:31:25","modified_gmt":"2025-10-03T23:31:25","slug":"uncomplicated-firewall-configuration","status":"publish","type":"post","link":"https:\/\/fullscale4me.com\/index.php\/2025\/06\/13\/uncomplicated-firewall-configuration\/","title":{"rendered":"Uncomplicated Firewall configuration"},"content":{"rendered":"<h3 class=\"western\">Uncomplicated Firewall configuration<\/h3>\n<p>The &#8220;Firewall Configuration&#8221; is a GUI app (gufw) used for the configuration of the &#8220;Uncomplicated Firewall&#8221;, aka UFW. This makes it a simple task for novice users to configure their firewall. This GUI app (gufw) is installed by default in MX Linux Xfce and MX Linux Fluxbox only.<\/p>\n<p><b>KDE<\/b><b> <\/b><b>users<\/b><b> <\/b><b>should<\/b><b> <\/b><b>search<\/b><b> <\/b><b>in<\/b><b> the <\/b><b>MX P<\/b><b>ackage <\/b><b>I<\/b><b>nstaller<\/b><b> <\/b><b>for<\/b><b> <\/b><b>the<\/b><b> <\/b><b>package named \u2018gufw\u2019. <\/b><b>Install this GUI app<\/b><b> <\/b><b>to get the <\/b><b>\u2018<\/b><b>Firewall Configuration\u2019 app <\/b><b>referenced in this section<\/b>.<\/p>\n<p>Starting in MX Linux 23, the Firewall is enabled and set to ignore all Incoming connections. This may prevent the discovery of printers and some popular applications from working correctly. Programs may wait a long time to connect and never do so, or give an error message. Some of these error messages are not very clear.<\/p>\n<h4 class=\"western\">Adding a Simple firewall exception rule (example \u2013 Samba)<\/h4>\n<p>Samba uses just port 445 with the TCP protocol for the latest versions of Windows. To configure a &#8216;Simple&#8217; exception rule for Samba:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-206 size-medium\" style=\"float: left;\" src=\"https:\/\/fullscale4me.com\/wp-content\/uploads\/2025\/06\/Samba-445-300x236.jpg\" alt=\"\" width=\"300\" height=\"236\" srcset=\"https:\/\/fullscale4me.com\/wp-content\/uploads\/2025\/06\/Samba-445-300x236.jpg 300w, https:\/\/fullscale4me.com\/wp-content\/uploads\/2025\/06\/Samba-445.jpg 407w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<ul>\n<li>Run the &#8216;Firewall Configuration&#8217; app.<\/li>\n<li><span style=\"font-size: medium;\">Click<\/span> <span style=\"font-size: medium;\">the<\/span><span style=\"font-size: medium;\"> &#8216;<\/span><span style=\"font-size: medium;\">Rules&#8217;<\/span> <span style=\"font-size: medium;\">button<\/span> <span style=\"font-size: medium;\">and<\/span> <span style=\"font-size: medium;\">then<\/span> <span style=\"font-size: medium;\">+.<\/span><\/li>\n<li><span style=\"font-size: medium;\"><b>Click<\/b><\/span><b> <\/b><span style=\"font-size: medium;\"><b>the<\/b><\/span><span style=\"font-size: medium;\"><b> &#8216;<\/b><\/span><span style=\"font-size: medium;\"><b>Simple&#8217;<\/b><\/span><b> <\/b><span style=\"font-size: medium;\"><b>tab<\/b><\/span><span style=\"font-size: medium;\">.<\/span><\/li>\n<li><span style=\"font-size: medium;\">In<\/span> <span style=\"font-size: medium;\">Name:<\/span> <span style=\"font-size: medium;\">type<\/span><span style=\"font-size: medium;\"> &#8216;<\/span><span style=\"font-size: medium;\">Samba<\/span> <span style=\"font-size: medium;\">\u2013<\/span><span style=\"font-size: medium;\"> 445&#8242;.<\/span><\/li>\n<li><span style=\"font-size: medium;\">In<\/span> <span style=\"font-size: medium;\">the<\/span> <span style=\"font-size: medium;\">Protocol;<\/span> <span style=\"font-size: medium;\">click down and <\/span><span style=\"font-size: medium;\">select<\/span><span style=\"font-size: medium;\"> &#8216;<\/span><span style=\"font-size: medium;\">TCP&#8217;.<\/span><\/li>\n<li><span style=\"font-size: medium;\">In<\/span> <span style=\"font-size: medium;\">Port:<\/span> <span style=\"font-size: medium;\">type<\/span><span style=\"font-size: medium;\"> &#8216;<\/span><span style=\"font-size: medium;\">445&#8242;.<\/span><\/li>\n<li><span style=\"font-size: medium;\">Click<\/span> <span style=\"font-size: medium;\">the<\/span> <span style=\"font-size: medium;\">&#8216;<\/span><span style=\"font-size: medium;\">Add&#8217;<\/span> <span style=\"font-size: medium;\">button<\/span> <span style=\"font-size: medium;\">and<\/span> <span style=\"font-size: medium;\">then &#8216;<\/span><span style=\"font-size: medium;\">Close&#8217;.<\/span><\/li>\n<\/ul>\n<div style=\"clear: both;\"><\/div>\n<p><b>Samba Note<\/b>: There are many other guides that show more ports being opened for older versions of Samba. Opening<i> the<\/i><i>se<\/i><i> additional port ranges <\/i><i>can<\/i><i> result in Malware a<\/i><i>ffliction<\/i><i>.<\/i><\/p>\n<h4 class=\"western\">Adding a &#8216;Preconfigured&#8217; firewall exception rule (example \u2013 DNS)<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-medium wp-image-205\" style=\"float: left; margin-right: 1.5em;\" src=\"https:\/\/fullscale4me.com\/wp-content\/uploads\/2025\/06\/dns-300x197.jpg\" alt=\"\" width=\"300\" height=\"197\" srcset=\"https:\/\/fullscale4me.com\/wp-content\/uploads\/2025\/06\/dns-300x197.jpg 300w, https:\/\/fullscale4me.com\/wp-content\/uploads\/2025\/06\/dns-120x80.jpg 120w, https:\/\/fullscale4me.com\/wp-content\/uploads\/2025\/06\/dns.jpg 437w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<ul>\n<li>Run the &#8216;Firewall Configuration&#8217; app.<\/li>\n<li><span style=\"font-size: medium;\">Click<\/span> <span style=\"font-size: medium;\">the<\/span><span style=\"font-size: medium;\"> &#8216;<\/span><span style=\"font-size: medium;\">Rules&#8217;<\/span> <span style=\"font-size: medium;\">button<\/span> <span style=\"font-size: medium;\">and<\/span> <span style=\"font-size: medium;\">then<\/span> <span style=\"font-size: medium;\">+.<\/span><\/li>\n<li><span style=\"font-size: medium;\">Click<\/span> <span style=\"font-size: medium;\">the<\/span><span style=\"font-size: medium;\"> &#8216;<\/span><span style=\"font-size: medium;\">Preconfigured<\/span><span style=\"font-size: medium;\">&#8216;<\/span> <span style=\"font-size: medium;\">tab.<\/span><\/li>\n<li><span style=\"font-size: medium;\">Click the down arrow in &#8216;Application:&#8217; and scroll to the &#8216;Preconfigured&#8217; name to select it<\/span><span style=\"font-size: medium;\">.<\/span><\/li>\n<li><span style=\"font-size: medium;\">Click<\/span> <span style=\"font-size: medium;\">the<\/span> <span style=\"font-size: medium;\">&#8216;<\/span><span style=\"font-size: medium;\">Add&#8217;<\/span> <span style=\"font-size: medium;\">button<\/span> <span style=\"font-size: medium;\">and<\/span> <span style=\"font-size: medium;\">then &#8216;<\/span><span style=\"font-size: medium;\">Close&#8217;.<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h4 class=\"western\">Common Firewall Port usage<\/h4>\n<p>* Avahi 5353 UDP a mDNS (aka Bonjour) provider &#8211; use Preconfigured rule: &#8216;PLEX Avahi discovery&#8217;.<br \/>\nChrome Remote Desktop TCP port 443 and TCP\/UDP 3478<br \/>\nChrony UDP 123 UDP 323<br \/>\nCIFS (Common Internet File System) TCP ports 139 and 445. <b>\u2020<\/b><br \/>\n* CUPS IPP\/PPS printing 631 TCP More &#8211; <a href=\"https:\/\/www.cups.org\/doc\/firewalls.html\">https:\/\/www.cups.org\/doc\/firewalls.html<\/a> <b>\u2021<\/b><br \/>\nAppSocket\/JetDirect printing 9100-9102 TCP<br \/>\n* DHCP UDP port 67 on the server side.<br \/>\nUDP port 68 on the <b>client<\/b> side. Preconfigured rule adds port 67 only.<br \/>\n* DNS 53 TCP &amp; UDP<br \/>\n* DropBox TCP 90. 443, 17600 &amp; 17601 (3rd pty file apps). TCP 17500 LAN Sync feature.<br \/>\nDuckto 4644<br \/>\n* FTP 20 &amp; 21<br \/>\nHplip 5353 UDP<br \/>\n* Internet Printing Protocol aka IPP uses TCP with port 631. (Use &#8216;CUPS&#8217; pre-configured rule).<br \/>\n* KDE Connect &#8211; port range 1714-1764 for UDP and TCP<br \/>\nLocalSend 53317 TCP &amp; UDP<br \/>\n* IRC 6697 (IRC SSL)<br \/>\n* mDNS 5353 UDP DNS Lookup. Preconfigured rule: &#8216;Multicast DNS&#8217;<br \/>\n* Minecraft 25,565<br \/>\n* NFS 111 &amp; 2049 TCP &amp; UDP (Web NFS)<br \/>\n* NTP\/SNTP\/Chrony UDP 123 Chrony adds UDP 323<br \/>\nOpenVPN 1194 TCP &amp; UDP<br \/>\nPC Anywhere 5631<br \/>\nPrinting &amp; SMB Printer sharing &#8211; see CUPS above.<br \/>\nPlex Media Server TCP: 32400<br \/>\nRemote Desktop 3389 TCP &amp; UDP &#8211; enables acceleration. (RDP &gt; 8.0)<br \/>\n* Samba (pre 2012 devices &#8211; SMB1\/NT1) UDP ports 137 &amp; 138; TCP ports 135, 137. 139 &amp; 445. <b>\u2020<\/b><br \/>\nSamba modern: SMB version 2 &amp; SMB version 3 implementations TCP port 445<br \/>\n* SANE 6566, 54921 Preconfigured rule: &#8216;SANE Scanner&#8217;<br \/>\nScrcpy 5555 TCP<br \/>\nSMB Printing see CUPS above.<br \/>\nSpotify uses port 4070 TCP by default. If it is unable to connect on that port, it will roll to port 443, then port 80<br \/>\n* SSH 22<br \/>\nSyncthing 22000 TCP &amp; UDP &#8211; host-to-host 9806 8384<br \/>\n* Teamviewer TCP\/UDP 5938, TCP 443, TCP 80<br \/>\n* Transmission 51413.<br \/>\nUpnP (Universal Plug n Play) 1900 UDP also 80, 5431 &amp; 49152<br \/>\n* VNC 5500\/5900\/5901 both.<br \/>\nWarpinator 42000 and 42001 Flatpack adds 5353 UDP<br \/>\nWINS 137 UDP<br \/>\nWormhole\/Magic Wormhole connection to &#8216;Mailbox&#8217; aka Rendezvous Server 4000 &amp; 4001<br \/>\nWSDD port 5357 TCP and port 3702 UDP &#8211; Add as two &#8216;Simple&#8217; type rules.<\/p>\n<p><b>*<\/b> = Use the &#8220;Preconfigured&#8221; application rule for these.<\/p>\n<p>\u2020 = Enabling the above additional port ranges *MAY* result in data loss, Ransomware, Malware (such as WannaCry), and or privacy issues. TCP on ports 136 and 138 no longer implemented.<\/p>\n<p>\u2021 = The printer connection, if connected to via Samba (default for a shared printer) *may* require opening port 445 on TCP on PCs not hosting the printer connection.<\/p>\n<p><b>More ports<\/b> <a href=\"https:\/\/www.linuxtrainingacademy.com\/ports\/\">https:\/\/www.linuxtrainingacademy.com\/ports\/<\/a><\/p>\n<p>Please direct ALL support requests to the MX Linux Forum &#8212; <a href=\"https:\/\/forum.mxlinux.org\/\">https:\/\/forum.mxlinux.org<\/a><\/p>\n<p><b>Created <\/b><b>by FullScale4Me<\/b>: June, 2023 <b>Update<\/b><b>d<\/b>: October 3, 2025<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Uncomplicated Firewall configuration The &#8220;Firewall Configuration&#8221; is a GUI app (gufw) used for the configuration of the &#8220;Uncomplicated Firewall&#8221;, aka UFW. This makes it a simple task for novice users to configure their firewall. This GUI app (gufw) is installed by default in MX Linux Xfce and MX Linux Fluxbox only. KDE users should search &#8230; <a title=\"Uncomplicated Firewall configuration\" class=\"read-more\" href=\"https:\/\/fullscale4me.com\/index.php\/2025\/06\/13\/uncomplicated-firewall-configuration\/\" aria-label=\"Read more about Uncomplicated Firewall configuration\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"categories":[4],"tags":[],"class_list":["post-198","post","type-post","status-publish","format-standard","hentry","category-mx-linux"],"acf":[],"_links":{"self":[{"href":"https:\/\/fullscale4me.com\/index.php\/wp-json\/wp\/v2\/posts\/198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fullscale4me.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fullscale4me.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fullscale4me.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/fullscale4me.com\/index.php\/wp-json\/wp\/v2\/comments?post=198"}],"version-history":[{"count":28,"href":"https:\/\/fullscale4me.com\/index.php\/wp-json\/wp\/v2\/posts\/198\/revisions"}],"predecessor-version":[{"id":377,"href":"https:\/\/fullscale4me.com\/index.php\/wp-json\/wp\/v2\/posts\/198\/revisions\/377"}],"wp:attachment":[{"href":"https:\/\/fullscale4me.com\/index.php\/wp-json\/wp\/v2\/media?parent=198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fullscale4me.com\/index.php\/wp-json\/wp\/v2\/categories?post=198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fullscale4me.com\/index.php\/wp-json\/wp\/v2\/tags?post=198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}