Tag Info

New answers tagged


The document is just called /etc/default/ufw, there is no .txt or .odtextension on the file name. In fact, if you save it with one of these extensions, it will not work as desired since the ufw program looks for a file called simply ufw. To see if it already exists, you can list it by typing cat /etc/default/ufw in a terminal window (it is not a very big ...


It was Docker after all. Turns out that Docker makes changes directly on your iptables, which are not shown on ufw status. The solution is to use the --iptables=false flag on container creation, or edit the /etc/default/docker file. See here for details: The dangers of UFW + Docker


UFW does not "know" what traffic you use a port for, so the only thing you have to do is enable traffic on port 443. sudo ufw allow 443 If you want only TCP traffic you can even set sudo ufw allow 443/tcp


Use following command: sudo apt-get update sudo apt-get install iptables-persistent and it will install the iptables-persistent package for you.


A basic Desktop firewall is going to deny inbound and allow outbound 'traffic' in a basic setup. Essentially, while Windows can incorporate application-based filtering, it's default rulesets are to permit outbound and reject inbound except where the outbound traffic is getting a response. This is the typical "desktop" firewall setup usually observed in the ...


You need to use a binary number (2,4,8,16, 32) so either you use a bigger or a smaller range. Exactly 20 hosts just is not possible with a bitmask in a single rule: 16 hosts ( to sudo ufw allow proto tcp from to port 80 Details Address: 11000000.10101000.00000001.0001 0000 ...


UFW is the Uncomplicated Firewall. It manages what ports on your computer can be opened for listening by an application. sudo ufw allow80/tcp means allow TCP connections to port 80. However, there is nothing actually listening in behind the port. To curl the port, there should be an application that will send a reply. This is typically called a server. As ...


There is no program listening on port 80 so it's closed and you can't connect to it. You can use sudo python -m SimpleHTTPServer 80 to start a simple web server listening on port 80, or install something like Apache (package apache2) if you want a full blown web server.

Top 50 recent answers are included