Questions tagged [ufw]

Uncomplicated Firewall is a firewall configuration tool for Linux. It acts as a frontend to iptables. Originally designed for Ubuntu, it is available on many Linux distributions.

Filter by
Sorted by
Tagged with
1
vote
0answers
20 views

ufw deny from ip doesn't work

I know that I should setup fail2ban but at the moment I want to deny access from one IP address and tried the following ufw command: sudo ufw insert 1 deny from xx.xx.xx.xx to any Here's the output ...
1
vote
0answers
17 views

Ubuntu 18.04 UFW setup

I have one application running on two ports HTTP on 8080 and HTTPS on 8443. I want everyone to have access to port 8443 and whitelist 8080 to an IP, so only a particular IP can access the port. So I ...
1
vote
1answer
44 views

Can I use rate-limiting with HTTP basic authentication in Apache?

So I'm running a few popular web applications on my server. I want these to be reachable from any computer without creating too many vulnerabilities. I am using Apache 2.4.29 as my HTTP server. My ...
0
votes
1answer
54 views

How to only allow routing to IP range on particular interface?

I have two interfaces eth0 (192.168.10.x) and wlan0 (172.16.30.x) on my device (Raspberry Pi, Raspbian GNU/Linux 10 (buster)). Both networks have access to the internet, but I want my device to only ...
1
vote
0answers
13 views

UFW - making rules on host to only allow traffic from guest docker containers?

Situation: host running pgsql app in container on host want app to connect to database via TCP want to configure UFW so only containers on machine can connect to pgsql What's the best way to do this?...
1
vote
2answers
66 views

IPv4 Forwarding (NAT) only works after toggling IPv4 forwarding to off then on

This literally makes no sense and I'm stumped about why this is happening, but hear me out. Currently I'm using Proxmox 6 (Debian) and I created a NAT so VMs/LXC containers can communicate between ...
2
votes
0answers
31 views

UFW denying on interfaces blocks traffic on all interfaces

So I have a bit of a weird issue with ufw, I'm trying to block all incoming traffic on eno1 and use eno2 for incoming traffic instead, to do this I've ran the following commands to try to block eno1 ...
0
votes
1answer
42 views

How do I limit simultaneous connections to a port with UFW?

I see many articles regarding brute attacks, number of connections per N seconds, but in my case is different, i have a proxy server and i just want to limit connections from anywhere to 1 at the time....
0
votes
1answer
39 views

Why UFW port range / number for ports is limited to 15 ports? [closed]

Why UFW port range / number of ports is limited to 15 ports? man ufw: You cannot specify more than 15 ports
0
votes
0answers
40 views

Fail2ban overload from long-time-range portscan banning?

Problem I run several filter for f2b, which run fine. However, if I enable my ufw-portscan filter, my server gets problems: f2b starting, stopping, reloading takes long (3min+) f2b frequently hangs ...
0
votes
1answer
68 views

I ufw deny 53, but an nc scan reports a successful connection

Why is an nc scan able to successfully connect with port 53 when I've denied it through ufw? I noticed port 53 is listening: $ sudo ss -tulpne Netid State Recv-Q Send-Q Local Address:Port Peer ...
0
votes
0answers
40 views

ufw of my server blocks all traffic after going through online VPN config tutorial

I followed this tutorial https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-18-04#step-5-%E2%80%94-configuring-the-openvpn-service I have finished all the steps ...
0
votes
2answers
133 views

Why use a hardware firewall?

This question is rather conceptual and I just need some clarifications. Let's say on your linux server you've something like ufw installed or windows firewall on windows server. And you have layers ...
0
votes
0answers
40 views

How traffic flow to docker published port without iptables?

I wanted docker to respect ufw rules, so found this topic https://stackoverflow.com/questions/30383845/what-is-the-best-practice-of-docker-ufw-under-ubuntu I did the following: set "iptables&...
0
votes
1answer
79 views

UFW blocks Docker interfaces when default outgoing policy is 'deny'

Given that I configured UFW like so ufw default deny incoming ufw default deny outgoing and just allowed certain ports for outgoing and incoming connections. It works fine, except when connecting ...

15 30 50 per page
1
2 3 4 5
25