Questions tagged [ufw]

Uncomplicated Firewall (ufw) is a firewall that is designed to be easy to use. It uses a command line interface consisting of a small number of simple commands, and uses iptables for configuration.

195 questions
61
votes
7 answers

Locked myself out of SSH with UFW in EC2 AWS

I have an EC2 Instance with Ubuntu. I used sudo ufw enable and after only allow the mongodb port sudo ufw allow 27017 When the ssh connection broke, I can´t reconnect
16
votes
2 answers

How to configure UFW reject policy in ansible without being disconnected?

I'm trying to configure UFW in Ansible like this: - name: Set firewall default policy ufw: state=enabled policy=reject sudo: true - name: Allow SSH in UFW ufw: rule=allow port=22 proto=tcp The problem is that as soon as the "Set firewall…
Johan
  • 37,479
  • 32
  • 149
  • 237
15
votes
3 answers

UFW firewall is not working on Ubuntu in DigitalOcean

In my DigitalOcean (DO) droplet I installed this image: Ubuntu Docker 17.12.0~ce on 16.04 (which is available on ** DO website > droplet> destroy> rebuild droplet**) , in ssh (after user configuration), I run sudo ufw default deny incoming sudo ufw…
Kamil Kiełczewski
  • 85,173
  • 29
  • 368
  • 345
12
votes
1 answer

How do I revert a ufw command?

sudo ufw status on my Debian server initially showed the following configuration: Status: active To Action From -- ------ ---- OpenSSH ALLOW Anywhere OpenSSH (v6) …
YPCrumble
  • 26,610
  • 23
  • 107
  • 172
11
votes
1 answer

Jetty Websocket server is working locally, but remote connections fail with "Host is down" error, how to fix it?

I'm running a websocket server, using embedded Jetty. It works as intended when I make connections from the same machine (localhost), but when I try to connect from a different machine, I get the error "Host is down" (also known as EHOSTDOWN). Logs…
Display Name
  • 8,022
  • 3
  • 31
  • 66
10
votes
2 answers

How can I get CoreDNS to resolve on my Raspberry Pi Kubernetes cluster?

I've followed a number of online tutorials to set up a Kubernetes cluster on four Raspberry Pi 4s. I ended up using Flannel as the networking plugin as that seems to be the only one that actually works on RPi, with a pod network CIDR of…
soapergem
  • 9,263
  • 18
  • 96
  • 152
9
votes
1 answer

WSL2 cannot enable ufw

Took an interest in WSL2. It was my way of gettin into Linux and messed around for a while until I decided to install Nginx and allow it in ufw. When I enabled it with : sudo ufw enable It responded with : ERROR: problem running…
Ragh
  • 93
  • 1
  • 6
9
votes
6 answers

Enabled UFW, now can't connect to my ubuntu azure vm

I turned on UFW on my ubuntu linux vm in azure, and now I can't connect to it over ssh (or anything). On both the private and public IP. Is there any way for me to connect to my vm now? e.g. the equivalent of like an iLo interface for physical…
danielpops
  • 713
  • 6
  • 13
7
votes
5 answers

Port 6443 connection refused when setting up kubernetes

I am reading the documentation for using kubeadm to set up a Kubernetes cluster. I am running Ubuntu Server 20.04 on three VMs but am currently only working with one of them before doing the configuration on the other two. I have prepared containerd…
Foxler2010
  • 93
  • 1
  • 2
  • 9
7
votes
0 answers

Ubuntu - ufw status shows inactive after reboot

Had enabled auto-restart for ufw, was working fine before, but I am not able to understand what went wrong... use case: when I check sudo ufw status it shows -> Status: inactive Then I enable it sudo ufw enable it shows -> Command may disrupt…
7
votes
1 answer

Ufw firewall blocks kubernetes (with calico)

I'm trying to install a kubernetes cluster on my server (Debian 10). On my server I used ufw as firewall. Before creating the cluster I allowed these ports on ufw: 179/tcp, 4789/udp, 5473/tcp, 443 /tcp, 6443/tcp, 2379/tcp, 4149/tcp, 10250/tcp,…
pchmn
  • 524
  • 1
  • 5
  • 16
7
votes
2 answers

How can i connect to ec2 if i close port 22 using ufw?

I cant connect to my instance on ec2. All was ok early, and I think now problem in ufw. When I configured my server I enable ufw for 80 port and maybe its disable 22 port. Because early all was ok, but now i cant connect by ssh. How can i connect to…
Yura Bysaha
  • 721
  • 6
  • 17
7
votes
4 answers

UFW blocks most ports until disabled and re-enabled after reboot

I have UFW running on my server. When I restart it: $sudo ufw status Status: active To Action From -- ------ ---- OpenSSH ALLOW Anywhere 1194/udp …
Diesel
  • 5,099
  • 7
  • 43
  • 81
7
votes
5 answers

Why is this docker image allowed past the firewall?

I'm running a docker container that has the port 9000:9000 binding to the host, but I also have ufw enabled. The only ports I've allowed are 22, 80, 443. So why is it that I'm able to connect to this container using the host's IP address? Shouldn't…
Reactgular
  • 52,335
  • 19
  • 158
  • 208
6
votes
2 answers

Does Ubuntu UFW overrides Amazon Ec2's security groups and rules?

If I'm configuring UFW and also Amazon EC2 Security group, which will override the other, or do they both co-exist without any issues?
sofs1
  • 3,834
  • 11
  • 51
  • 89
1
2 3
12 13