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
2
votes
1 answer

Bridge network is not working for docker after install of LXD / UFW

Docker bridge network does not work since I installed LXD / UFW (from snap) on Ubuntu 22. Docker worked for a long time. Then, I wanted to use LXD. On ubuntu, it is a snap package. Once I installed it and created a container, the container had no…
2
votes
1 answer

How to install UFW via ansible (.yml)

I found an Ansible playbook to install a LAMP server. Thing is Debian 11 does not include UFW in the default installation and the playbook tries to configure it and fails. I can remove these lines from the PB, but it would be great to be able to…
Chezzers
  • 53
  • 1
  • 10
2
votes
3 answers

How do I configure Ubuntu UFW through Puppet?

I am quite new to Puppet and I am having some problems with the Puppet Config for one of our hosts running Puppet Agent. We are using Ubuntu 20.04 and Puppet CE 7.12.1 on all systems. On our Puppet Server (Hostname: puppet), I am trying to write the…
2
votes
1 answer

Change SSH port 22 to 800

A very simple question which I can't seem to find an answer for while googling. I have changed the standard SSH port from 22 to 800. I added 800 in the UFW, is that necessary? Just to be sure so that I do not have it allowed in UFW for nothing.
massideux
  • 165
  • 3
  • 12
2
votes
2 answers

Can't install UFW on Amazon Linux server

I'm trying to install UFW on my amazon linux server with yum and here's what I'm getting: [root@ip-XXX-31-43-YYY ~]# sudo yum install ufw Failed to set locale, defaulting to C Loaded plugins: extras_suggestions, langpacks, priorities, update-motd No…
Elaine Byene
  • 3,868
  • 12
  • 50
  • 96
2
votes
1 answer

Why can't you start ufw on wsl2?

I have this error. I have days trying to solve it but I can not find the answer, if someone something similar happened I would appreciate your help. ERROR: problem running ufw-init iptables-restore v1.8.4 (legacy): Couldn't load match `limit':No…
Antonio Yepez
  • 31
  • 1
  • 2
2
votes
0 answers

(gcloud.beta.compute.ssh) [/usr/bin/ssh] exited with return code [255]

Try to using ssh connect google cloud computer engine (macOs Catalina) gcloud beta compute ssh --zone "us-west1-b" "mac-vm" --project "mac-vm-282201" and get error ssh: connect to host 34.105.11.187 port 22: Operation timed out ERROR:…
2
votes
2 answers

SSH back to AWS Lightsail after UFW enabling

I've enabled the UFW service without allowing SSH access before then logging off. I am now unable to ssh back to the instance. The steps I have already taken: Made a snapshot and create a new instance from it
M Kepster
  • 19
  • 4
2
votes
1 answer

How to run an ansible task if ufw is enabled?

I need to run some tasks only if ufw is enabled on the Ubuntu server. Pseudocode looks like: - name: detect if ufw is enabled magical_module: ??? register: ufw_is_enabled - name: my task when: ufw_is_enabled I see only this nonelegant…
Max Block
  • 1,134
  • 3
  • 16
  • 23
2
votes
1 answer

GCP Connection Failed - SSH - We are unable to connect to the VM on port 22

Since I received a email warning letter from google says "Action required: Critical problem with My First Project" saying my server has some abnormal outgoing activity , I tried to implemented ufw in my debian server. For my ufw setting, I've done…
翁啟豪
  • 77
  • 2
  • 10
2
votes
1 answer

Can't allow port in docker ubuntu container

Want to allow a port say 4000. Ran: root@66548e7316fc:/# sudo ufw allow 4000/tcp WARN: initcaps [Errno 2] iptables v1.6.1: can't initialize iptables table `filter': Permission denied (you must be root) Perhaps iptables or your kernel needs to be…
Shudipta Sharma
  • 5,178
  • 3
  • 19
  • 33
2
votes
0 answers

Vue application running on Digitalocean times out in browser

First time I try to use a node.js droplet on Digitalocean: I have a vue.js application running on port 8080, but it times out when I try to load the masterpiece in the browser (I don't have a domain so I use the [server IP]:8080 to access it). I…
anatolhiman
  • 1,762
  • 2
  • 14
  • 23
2
votes
0 answers

implication of using ufw for azure cloud Ubuntu VM, port opened is not working as expected

I have a cloud Ubuntu VM which is in some resource group of company's subscription. I do not have access to azure portal. I had opened up the ports whichever relevant in azure portal while choosing Virutal Machine. Now I need some more ports to gets…
Dev Anand Sadasivam
  • 699
  • 7
  • 21
  • 49
2
votes
0 answers

UFW Deny traffic by application

I want to block all traffic thats produced from an application running as a service but only on eth0. My system runs Debian 8 and ufw as the firewall Is it possible to deny incoming and outgoing traffic trough an application and eth0 but still…
Fab ian
  • 127
  • 1
  • 1
  • 5
2
votes
1 answer

Docker Swarm container reachable although port is not open?

I followed these instructions here to build a 3 node Docker Swarm cluster. In the beginning I opened multiple ports with ufw in order to communicate between the docker nodes: # ufw status verbose Status: active Logging: on (low) Default: deny…
zarathustra
  • 1,898
  • 3
  • 18
  • 38
1 2
3
12 13