Questions tagged [ufw]
Uncomplicated Firewall (ufw)
727
questions
-1
votes
0
answers
24
views
IPtables, UFW, and Docker NATing
I run an IPsec container inside of Docker to make island hosts easily manageable via a loopback IP. I'm having trouble getting my IPtables rules just right for everything to work automatically on boot....
0
votes
0
answers
66
views
UFW allow all IP from ASN
How to allow access to ubuntu with UFW firewall for all addresses belonging to one ICT provider with its ASN number (Is it possible?)?
0
votes
0
answers
51
views
cant enable UFW firewall
I am trying to set up a code-server on my ubuntu 22.04.
However I came to the realisation that my firewall wasnt enabled and tried enabling it using the instructions on this other thread : https://...
0
votes
0
answers
81
views
wireguard + ufw = unable to limit access to specific port
So I'm trying to limit access to port 5432 (postgres) by using ufw and unable to do so. The connection is allowed still
sudo ufw deny 5432/tcp
sudo ufw route deny in on wg0 from 10.0.10.2
root@vpn-...
0
votes
1
answer
255
views
Ubuntu 22.04 on Dell XPS 17 Hangs on Shutdown
When I try to shut down my computer, it hangs on the Ubuntu/Dell splash page. I've used F1 to view the logs, and the last lines are usually the following:
systemd-shutdown[1]: Syncing filesystems and ...
0
votes
0
answers
39
views
Cannot connect to the internet after enabling ufw
Having installed UFW on my ubuntu server. I disabled all incoming, enabled all out going, ssh, http and https. Finally, I enabled ufw. However, all commands the requires the internet failed. sudo apt ...
1
vote
1
answer
97
views
UFW blocking port forwarding
I am running Ubuntu Server as a home network router, which works fine otherwise. I also have another server on the network which hosts all of my content and services. So let's say, for example, I'm ...
0
votes
0
answers
47
views
Hot spot problem in Ubuntu 22.04
I am using a Ubuntu 22.04 machine. I want to share my Ethernet data to my mobile via
Hot spot. But I can't connect to it via mobile.I searched for solution and tried by disabling the firewall. Then it ...
1
vote
0
answers
44
views
How to stop all traffic on metered network
I want to put a Raspberry Pi computer running Ubuntu Server 22.04 with a cellular modem in a weather station on a mountain, and my data plan is metered. I only want to be charged for data relevant to ...
1
vote
0
answers
200
views
How to allow SSH only from WireGuard and one IP
This is production server and I need to add rules very carefully, I don't sure what is correct rule.
Currently my UFW rules allow SSH connection from any IP and from WireGuard, also my own IP (YYY.YYY....
0
votes
0
answers
70
views
UFW on ubuntu virtual router not blocking correct traffics
I have a virtual router running on Ubuntu Server 22.04. The virtual router has two ethernet interfaces enp1s0 and enp2s0. The interface enp1s0 is connected to the external network and the interface ...
0
votes
0
answers
43
views
Ports are set to allow in ufw but shows blocked
I am very new to using ubuntu, I was trying to configure my plesk email but realized I am not able to receive or send emails. I have configured the correct ports with ufw allow, but they show blocked ...
-1
votes
1
answer
32
views
Disable outgoing connection via firewall
For a headless setup, I would like to set up ufw so that
ssh into the machine is possible
no outgoing connections are allowed (not ssh, nor anything else; edit: particularly to the local network)
...
0
votes
0
answers
45
views
Uable to connect Ubuntu server by remoting
Hello I'm newbie of Ubuntu system. I have some problem that I've figured out for a while but I could not solve it yet. I could not remote to Ubuntu 22.04 server from my laptop (Putty said connection ...
0
votes
0
answers
47
views
VPN gateway + UFW killswitch + port forwarding
I'm trying to set up a VPN gateway (using LXD containers). I'm using ufw for killswitch service. Almost all is working except port forwarding.
┌─────────────────────────┐ ...
0
votes
0
answers
101
views
How to safely open ports for Cyber Protection Agent
I have installed the Backup Agent for Linux Servers "Cyber Protection Agent" on vps.
I have followed this link https://www.ionos.com/help/server-cloud-infrastructure/cloud-backup/installing-...
0
votes
0
answers
117
views
UFW blocks pihole traffic after upgrade from 20.04 to 22.04
I'm a bit lost here. After upgrading from 20.04 to 22.04 via do-release-upgrade, my pihole stopped working. All queries towards the server over LAN time out, both pihole.log and FTL.log show no ...
0
votes
0
answers
255
views
IP Forwarding Fails Ubuntu Server 22.04
Running 2 servers in VirtualBox.
Server 1 (will be the firewall)
$ sysctl net.ipv4.ip_forwward
net.ipv4.ip_forward = 1
$ sudo ufw status
Status: active
To Action From
-- ...
1
vote
1
answer
417
views
Cannot Ping Server Despite UFW Inactive, Server Can Ping Other Devices
I'm running Ubuntu Server 22.04.2 LTS on a computer on my home network, connected via wifi. It can connect to the internet, and can ping other devices like my main Windows PC and my phone just fine, ...
0
votes
1
answer
110
views
strange entries in ufw log
I have a very permissive firewall configuration, where I have almost all ports open:
$ sudo ufw status verbose
Status: active
Logging: on (low)
Default: allow (incoming), allow (outgoing), deny (...
0
votes
1
answer
47
views
Can not block torrent traffic in my Ubuntu 22.04 vps
I have an Ubuntu 22.04 vps which I want to block all torrent traffic on it.
I tried Iptables by this commands :
iptables -I FORWARD -m string --algo bm --string "BitTorrent" -j DROP
iptables ...
0
votes
0
answers
159
views
UFW allow rule with destination and port
Setting up UFW firewall on Ubuntu I wish to allow connections on port 22 from my local network only. I use next command:
ufw allow from 192.168.1.0/24 to any port 22
For me is unclear in the part &...
0
votes
0
answers
57
views
ufw blocking port I allowed
I have a docker application running on port 5402 in an Ubuntu 22.04 LTS
36f81500c742 the/easytaxserver:latest "dotnet EasyTax.Serv…" 6 hours ago Up 6 hours 80/tcp, 0.0.0.0:5402->...
0
votes
1
answer
278
views
UFW - Port is reachable for everyone although only certain IP's are opened
I run an Ubuntu 22.04 server on an VPS with a current version of UFW.
Further i run an docker instance with firefox - https://hub.docker.com/r/jlesage/firefox
The port is routed to 5800 to access this ...
0
votes
0
answers
457
views
How to set ufw to allow Remote Desktop Sharing on Ubuntu 22.04?
I know there is a command such sudo apt ufw allow <app> but the problem is I don't know what is the app name.
So if I enable ufw I can't connect to my ubuntu device from my mac via RDP, and I ...
1
vote
0
answers
849
views
How to check if ip forwarding is enabled
i have 2 vps services from 2 diffrent providers and i want to use iptables for prerouting .
i can do it easily on one but cant do it on the other one , i almost read all articles and tried them but ...
0
votes
0
answers
80
views
nmap on local host shows "filtered" on port which is stated as "open" on remote host
My question is similar to this but I'd like to fix and understand the error without having to rely on the possibility that factory-resetting my router will fix it for me. I also found this which is ...
1
vote
1
answer
228
views
Why does UFW keep logging to syslog even when I turn it off through rsyslog settings?
I've uncommented
& stop
in /etc/rsyslog.d/20-ufw.conf.
I've set
StandardOutput=null
by using
systemctl edit ufw
which shouldnt help anyway because the syslog messages are sent by a "kernel&...
0
votes
0
answers
51
views
ufw blocks all traffic on system boot
ufw has default values. When booting the system 5 minutes black screen and only after that the system is fully loaded. In order for the Internet to work, you have to turn off ufw and then turn it on ...
0
votes
1
answer
67
views
ufw (firewall) cant see active forward rules
I have a working port forward on my firewall (ufw). I can enable and disable the rule - and it works.
What I dont understand is, that the rule cannot be seen when doing:
ufw status
That command only ...
0
votes
0
answers
219
views
UFW not blocking ip
I have ubuntu 22.04 and have tried to block an ip as follows:
sudo ufw deny from 109.237.96.124 to any
I run ufw status which give me the following:
To Action From
-- ...
1
vote
2
answers
92
views
ufw rules for Selenium grid
I use Selenium grid docker container on my server which could be accessed from the web by http://IP_address:4444.
Please help me to figure out how can I filter or disable this connection by adding ...
0
votes
0
answers
192
views
is there any way to import ufw rules quickly?
just wondering if is there any faster way than this to import ufw rules
i'm trying to block geo ip's and as you know each country have tons of ip's it takes forever to deny access with this method
cat ...
0
votes
0
answers
86
views
Block ips from certain country and security
I have an Ubuntu Server 22.04 with Nginx installed along with a laravel application.
When I view the access logs I can see a lot of attempts from a certain country to exploit my server and application....
0
votes
1
answer
611
views
Is there a way to use Cockpit while UFW is enabled?
I currently have Ubuntu 20.04 installed. I'm having issues with UFW that are preventing me from using Cockpit. When I try to load IP:9090 into Firefox, it will just continuously try to load with a ...
0
votes
0
answers
78
views
Add custom iptables rule to UFW to be persistent
I would like to add the following rule to block the access for a specific user in Ubuntu 22.04 and persist whenever UFW is on. Is there a mechanism to do this while playing nicely with the UFW?
-A ...
0
votes
0
answers
41
views
UFW blocks wifi card
I updated my local machine from 20.04 to 22.04. After updating I struggled to log in, after entering the password, it is a black screen and a blinking cursor. Recently, I have been logging in to my ...
1
vote
0
answers
274
views
systemctl status ufw.service failure
systemd[1]: Starting Uncomplicated firewall...
ufw-init[1232]: iptables-restore: line 5 failed
systemd[1]: ufw.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: ufw.service: ...
1
vote
1
answer
187
views
SSH configured ports not working
Just installed Kubunut 22.10. I configured my /etc/ssh/sshd_config with a custom port.
# Snip
Port 5555
AllowUsers bob
# Snip
Then restart the daemon to refresh the configuration:
sudo ufw allow 5555
...
1
vote
2
answers
3k
views
How to access/view local web server via public IP?
Good day everyone. I'm running an Ubuntu desktop 22.04. I'm new to linux world for about a month or so.
I already configure my router for port forwarding.
When I was developing this web app in windows,...
0
votes
2
answers
848
views
NFTables and g(ufw)
I am going to install Xubuntu 22.04 on one of my computers and i have a question about firewall.
As i understand Ubuntu use NFTables now.
I have noticed some information about Debian (which is base ...
0
votes
0
answers
21
views
Determinine how long ufw was disabled for?
I booted my computer today and noticed that ufw was disabled.
I always keep ufw enabled with default deny incoming.
I am trying to determine when it was disabled.
I tried checking the logs using tail -...
0
votes
1
answer
793
views
How to enable a specific port on Ubuntu version 22 so that it is accessible to outside world?
How to enable a specific port on Ubuntu version 22 so that it is accessible to outside world?
I am already logged into the server through ssh using port 22 and able to successfully execute all the ...
0
votes
0
answers
58
views
ports closed in dmz and ufw closed
I have problems opening ports on my Ubuntu 18.04.
I put my PC in dmz to avoid router forwarding problems.
I stopped ufw
I look for listening ports on netstat:
tcp 0 0 0.0.0.0:22 ...
0
votes
0
answers
65
views
mount network drive through VPN kill switch - Ubuntu 20.04 Synology DSM 7
I know this has been asked before but nothing I try has worked. Any suggestions are appreciated!
I am trying to mount a network drive on Synology NAS 5.7 to my Ubuntu 20.04 server. If I disable ufw ...
1
vote
1
answer
204
views
UFW - Default Deny Incoming does not block telnet
I have an Ubuntu 22.04 LTS Server setup on a VM. I have ufw enabled with default deny incoming policy
The result of sudo ufw status verbose is:
Status: active
Logging: on (low)
Default: deny (incoming)...
0
votes
0
answers
94
views
Login with firewall enabled leads to black screen
I am using Ubuntu 22.04 LTS with desktop running on Xorg.
I wanted to do some work on my notebook today, so I got up, booted the computer, logged in and stared at the black screen for a while. After 5 ...
1
vote
1
answer
185
views
How to drop an existing connection on Ubuntu 20.04 server?
I executed the following command to ban them. But it didn't work. It only works when there is a new connection from that IP.
sudo ufw insert 1 deny from 46.1.67.244 to any && sudo ufw reload
...
-1
votes
1
answer
197
views
blocking bot attacks ufw fail2ban
Im doing something dumb, or missing something. Can anyone spot it please?
I have a tplink archer C7 set to port forward from an external port to port 22 on my internal server for ssh. But I still see ...
0
votes
0
answers
41
views
Enabling UFW makes websites unreachable through VPN
I am running openVPN on a ubuntu server VPS. I have set it up and can connect from my windows client successfully. On UFW I have only opened the SSH port and openVPN port. When the firewall is ...