2022 Developer Survey is open! Take survey.

Questions tagged [ufw]

Uncomplicated Firewall (ufw)

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

ufw default deny routed not working

I am setting up ufw default deny routed and it is not reflecting in iptables -L How to ensure it is disabled what I tried: root@VM01:~# ufw default deny routed Default routed policy changed to 'deny' ...
user avatar
  • 101
0 votes
1 answer
20 views

How can I block the internet but keep wifi available for RDP using UFW?

I'm accessing my Ubuntu machine using RDP from a Windows desktop, in the same wifi network (that is, I'm only using RDP locally, not through the internet). I want to disable all internet traffic, but ...
user avatar
  • 155
0 votes
0 answers
6 views

Bind9 Server with internal and external Zones

named.conf.local // // Do any local configuration here // // Consider adding the 1918 zones here, if they are not used in your // organization //include "/etc/bind/zones.rfc1918"; // Just ...
user avatar
0 votes
0 answers
11 views

How to allow ipv6 to a specific port with ufw

I recently tried to deny all traffic to a specific port, then allowing it only to a specific ipv6 by using « ufw allow from ipv6 to any port 843 » But It don’t work, and I dont know why since it works ...
user avatar
  • 1
0 votes
1 answer
35 views

UFW blocks local network routed to net_gateway by OpenVPN

I'm trying to set up a connection on Ubuntu 22.04 to a nordvpn OpenVPN server with a kill-switch using ufw. I configured the VPN client to redirect the default gateway, but be able to communicate with ...
user avatar
0 votes
0 answers
33 views

What does rule section ufw-not-local do?

While using ufw for my Ubuntu 22.04, I try to understand the iptables structure behind it. What concerns me specifically is this snippet taken out of /etc/ufw/before.rules: # # ufw-not-local # -A ufw-...
user avatar
  • 1
0 votes
0 answers
23 views

UFW blocking JupyterHub and other services on Microk8s

I've setup Microk8s via snap and JupyterHub by following the steps from zero-to-jupyterhub. However I cannot access JupyterHub via the browser and I think the reason that UFW is blocking the ...
user avatar
0 votes
1 answer
37 views

ufw firewall rules are somehow autogenerated

I try to create the following ufw rules: ufw default deny ufw allow 51820/udp comment 'wireguard port' ufw allow 22/tcp comment 'ssh' ufw enable but somehow i get alot of different rules as well: To ...
user avatar
0 votes
0 answers
22 views

ufw blocks incoming FTP traffic (on port DPT=44745)

I have JVM app which is dealing as client with FTP, it works fine when ufw is disabled, but when I enable ufw with: ufw allow ftp Check status output is then: Status: active Logging: on (medium) ...
user avatar
0 votes
0 answers
26 views

Hotspot only works after starting and stopping already disabled ufw service

I have recently decided to try out firewalld instead of ufw. After installation I ran these two commands to theoretically make the switch sudo systemctl disable ufw and sudo systemctl enable firewalld....
user avatar
0 votes
0 answers
25 views

Ufw allow routed lxc interface not working

I have a problem with ufw. It works if i disable ufw so i know ufw is the problem. The setup is a routed lxc container. I have done sudo ufw route allow in "interface" and ufw allow in "...
user avatar
0 votes
1 answer
25 views

My server can't connect to anything through 443

I tried to connect to paypal, github and stripe from my server and every connection attempt ended with a "connection timed out". I use ufw as my firewall I have the default incoming rule is ...
user avatar
  • 21
0 votes
1 answer
31 views

ufw is not closing port for incoming packets even after i set the rule?

I am trying to stop steam from opening my port 27036. The problem is that even after i enabled ufw, and even after manually setting a new rule to block this port (even tho by default it should block ...
user avatar
0 votes
1 answer
22 views

Ubuntu Server 20.04 random ports are timing out, and I don't know why

I need to access a webserver on my Ubuntu Server 20.04 installation. For a test, I set up a webserver using sudo python3 -m http.server <port>. It works fine for a bunch of ports, like 8000, 443,...
user avatar
0 votes
0 answers
38 views

Abrir puertos en Ubuntu server 22.04 [closed]

Hola comunidad me gustaria saber como puedo abrir el puerto 25 y 2396 de mi servidor ubuntu, ya que abro el puerto por ufw, firewalld, iptables y al realizar las verificaciones en https://ping.eu me ...
user avatar
1 vote
1 answer
68 views

What is the ufw command to set the default policy to deny all forwarding traffic?

I tried the command sudo ufw default deny FORWARD but it is not working.
user avatar
0 votes
0 answers
12 views

allow different ssh auth from specific but different IPs?

Is it possible to setup login rules for ssh users, for example: address1,address2 = incoming IP1, incoming IP2 User bernie is only able to connect from address1 User seb is only ...
user avatar
  • 19
0 votes
0 answers
39 views

How forward Server port to Virtual Machine?

I'm trying redirect all my port 80 traffic to a virtual machine. Server setup: Main Server: interfaces: en0: ip 192.168.1.2 virbr0: ip 192.168.10.1 Virtual Machine: interfaces en0: ip 192.168.1.3 en1:...
user avatar
  • 613
0 votes
0 answers
33 views

how to make ubuntu firewall active all the time at startup

All the time when I turn on my machine, my firewall is always inactive, so I have got to enable it manually. So is there a way to make it active all the time?
user avatar
0 votes
0 answers
53 views

Ubuntu 20.04 ssh possible but NO Access on custom port

Fresh install of 20.04 LTS on Small Form Factor Intel user@host:~$ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 76 model name : Intel(R) Pentium(R) CPU ...
user avatar
0 votes
1 answer
47 views

Incoming connections getting blocked on some ports with no firewall rules Ubuntu server

I'm a relatively inexperienced Linux user and I'm having issues with connections to my machine. I'm using Ubuntu Server 20.04 LTS I have a web server, a samba server, a game server and a ssh server ...
user avatar
  • 1
0 votes
0 answers
41 views

UFW disabled/inactive on reboot

I'm having an odd issue where ufw gets disabled on reboot. I'm running kubuntu 21.10 and ufw 0.36.1. My uname -a output is: Linux HOSTNAMEHERE 5.13.0-39-generic #44-Ubuntu SMP Thu Mar 24 15:35:05 UTC ...
user avatar
  • 101
0 votes
0 answers
102 views

UFW blocking vpn connection - firewall killswitch

I have a very strange problem! UFW is blocking vpn connection: despite I allowed it in firewall (UFW). It is not router! When I disable UFW it works! I used this guide to set it up: https://www....
user avatar
1 vote
2 answers
170 views

How to open port to outside world?

I have a remote server with an IP - 111.222.333.444 I want to run an http server on that machine, that runs on localhost:8000 How can I make requests to 111.222.333.444:6000 from outside, from my hope ...
user avatar
  • 11
0 votes
0 answers
15 views

UFW Deny out on specific adapter except for LAN traffic, VPN usage

I have two interfaces on a VM, one is traffic going out to web on VPN adapter (proton0) and the other should allow lan traffic (ens160). The rules make sense to me however, I cant ping a lan address ...
user avatar
0 votes
0 answers
50 views

UFW Issues (internal vpn vs device vpn)

I have a device with UFW enabled to allow local traffic and tun0 traffic only and it works great from my local devices but when I try to connect from a device that is on my VPN (VPN on local network ...
user avatar
  • 1
-1 votes
1 answer
70 views

Ufw, can i block port 22? (ssh port changed)

I've changed the ssh port (just in case), now I was thinking to close port 22, to block immediately with ufw anyone trying to do damage on my server... But when i initially enabled ssh i enabled a ...
user avatar
  • 425
0 votes
0 answers
80 views

UFW not blocking IP address

I am trying to block an IP address from my server. ###ufw status verbose Status: active Logging: on (low) Default: deny (incoming), allow (outgoing), disabled (routed) New profiles: skip To ...
user avatar
1 vote
0 answers
88 views

How do I use UFW to block a device in Ubuntu hotspot?

I have a laptop running Ubuntu 20.04, which connected to the internet via ethernet. I have setup a WiFi hotspot on this machine, so that I can share its internet connection. Say, I have third device (...
user avatar
  • 11
0 votes
0 answers
43 views

BIND9 is not processing requests

Having set up a new mail/DNS/DHCP/proxy server based on Ubuntu 20.04.3, I see an odd behavior of the mentioned DNS server. Running nslookup a client is given a persistent DNS request timed out, also ...
user avatar
0 votes
1 answer
10 views

ufw exclude internal IPs from logs

I have a test HTTPS server running on Linux server (Ubuntu 20.04.4) on port 20000. I would like to log all connections on this port. So I did this, and it works fine. ufw allow log-all 20000/tcp Now, ...
user avatar
0 votes
3 answers
226 views

UFW blocking existing outbound connections when enabled

I'm having a problem where ufw seems to be blocking existing outbound connections on port 443 when it is enabled. Example: Feb 24 17:53:00 server5 kernel: [18571501.131985] [UFW BLOCK] IN=eno1 OUT= ...
user avatar
  • 101
1 vote
0 answers
40 views

How to set up UFW port forwarding from non-privileged port to port 22 on the same computer

On my Ubuntu server, I am running an SSH server (port 22). I want to set up UFW such that all incoming connections are blocked, except through port 12345. External traffic arriving at port 12345 ...
user avatar
  • 425
0 votes
1 answer
153 views

UFW firewall create connection issues

I have installed UFW on my VPS server using apt install ufw when I use ufw enable to start the firewall, after that my putty session expires and I can no longer login with that ssh key I have either ...
user avatar
1 vote
0 answers
99 views

Can't login to DigitalOcean's droplets after restart

Ubuntu Server 18.04, droplet on DigitalOcean, works many years as a web server. UFW with some usual rules is installed. Problem: after restarting the server, I can't log in with SSH. There is simply ...
user avatar
0 votes
0 answers
94 views

Why NordVPN disables network access to Linux machine using UFW

So I'm having some strange interactions lately. I've got Ubuntu 20.04 installed with Plex Media Server. I followed a guide (https://www.comparitech.com/blog/vpn-privacy/how-to-make-a-vpn-kill-switch-...
user avatar
0 votes
0 answers
36 views

Port 80 showing as filtered, ufw inactive

sudo nmap -sS 3.139.146.153 PORT STATE SERVICE 22/tcp open ssh 25/tcp filtered smtp 80/tcp filtered http 443/tcp open https 3306/tcp open mysql 7000/tcp open afs3-...
user avatar
0 votes
0 answers
54 views

OpenSSH isn't working on Ubuntu server minimal install

This isn't my first time experiencing this issue but every time on every distro I have ever used when installing OpenSSH it just doesn't work. Commands Run sudo apt-get install openssh-server sudo ...
user avatar
0 votes
1 answer
119 views

Does ufw allow all incoming traffic in response to outbound requests?

I'm confused how ufw works. I've searched the site but most problems stop traffic from coming in, my problem allows traffic in. I've setup ufw to only allow my custom ssh port; however, I am running a ...
user avatar
0 votes
0 answers
35 views

Firewall: enable access on selected ports on external IP but allow any port on local IP Ubuntu 20.04 LTS

How do I allow all traffic that occurs on VLAN / internal ports without any blocking but on external IP I allow selected ports. so I want the machines on VLAN to communicate freely but I want ...
user avatar
0 votes
0 answers
28 views

Open FTP only on certain IP address

on a remote machine there are two network interfaces. eth0: 10.10.0.15 (VLAN) eth1: 33.33.22.22 (Public IP) I want the VSFTPD to only receive and entertain requests from the public IP and ...
user avatar
0 votes
1 answer
253 views

UFW is inactive but traffic is still blocked

on my Ubuntu 20.04 LTS desktop, i have the UFW firewall disabled (status inactive). I'm running bitcoin core application which listens on port 8333. Though the UFW is inactive, I cannot connect to ...
user avatar
0 votes
0 answers
44 views

Why do I see login requests for various ports although the router and the firewall only permit port 22?

I want to login into the Desktop of my Ubuntu 18.04 machine remotely from the internet. I therefore enabled port forwarding for port 22 in my (fritz.box) router. Additionally I activated the firewall ...
user avatar
1 vote
0 answers
376 views

How do I open ports 443 and 8080 on a virtual Ubuntu Server 20.04.3?

I am running Ubuntu 20.04.3 server as a virtual server. My virtual server was virtualized with VMware and the delivery was automatic. I'm going to set it to use outline and I have to open ports 443 ...
user avatar
1 vote
1 answer
113 views

Prevent routing of DHCP traffic

First, I'm aware that similar questions to mine have been asked elsewhere (I've read many of those posts!) but I've not been able to figure out a solution to my problem, so I'm asking for help. My ...
user avatar
0 votes
0 answers
35 views

Gufw icon on top bar from startup

How do I open Gufw at startup and have the icon active on the top bar? I have allowed ufw activation at the startup through sudo ufw enable But I'd also like to be able to check its status with an ...
user avatar
  • 261
0 votes
0 answers
60 views

Closed ports in ubuntu server 20.04

I have a Ubuntu server 20.04 machine with 2 ethernet interfaces (and I use it also as a router). A made some ufw rules to open some ports, but... they open only on the internal interface (enp4s0), and ...
user avatar
0 votes
0 answers
152 views

ufw not blocking openvpn connection

I have a private server that runs Ubuntu 20.04. I have installed ufw and I suppose I get the basics. Last week I have installed a wireguard server. I was able to block the connections to wireguard ...
user avatar
  • 1
0 votes
0 answers
36 views

I can connect to my Webserver website with Ubuntu from an exterior connection not locally

Here is my dilemma, if I use http://example.com on my local computer say Windows, MAC or Android using the local home network either Wi-Fi or LAN not using the etc/hosts file or local IP address I get ...
user avatar
  • 1
0 votes
0 answers
28 views

Apache Derby's server not listening

I am running into problems with Apache Derby using IntelliJ Ultimate IDE. Steps I've followed to install the server: Download apache derby from > https://db.apache.org/derby/derby_downloads.html ...
user avatar
  • 11

1
2 3 4 5
14