Questions tagged [firewalld]

FirewallD is a firewall service daemon with D-BUS interface managing a dynamic firewall. First used in Fedora 18, it is expected to be the default firewall tool for future versions of Enterprise Linux.

FirewallD provides a dynamically managed firewall with support for network/firewall zones to define the trust level of network connections or interfaces. It has support for IPv4, IPv6 firewall settings and for ethernet bridges and has a separation of runtime and persistent configuration options. It also supports an interface for services or applications to add firewall rules directly.

The former firewall model with system-config-firewall/lokkit was static and every change required a complete firewall restart. This included also to unload the firewall netfilter kernel modules and to load the modules that are needed for the new configuration. The unload of the modules was breaking stateful firewalling and established connections.

The firewall daemon on the other hand manages the firewall dynamically and applies changes without restarting the whole firewall. Therefore there is no need to reload all firewall kernel modules. But using a firewall daemon requires that all firewall modifications are done with that daemon to make sure that the state in the daemon and the firewall in kernel are in sync. The firewall daemon can not parse firewall rules added by the ip*tables and ebtables command line tools.

The daemon provides information about the current active firewall settings via D-BUS and also accepts changes via D-BUS using PolicyKit authentication methods.

First used in Fedora 18, it is expected to be the default firewall tool for future versions of Enterprise Linux. In the meantime, information on how to use FirewallD can be found on the Fedora wiki.

430 questions
0
votes
1 answer

firewalld: logging of blocked outgoing connections

I have configured firewalld so that the firewall will blockes also outgoing connections. The outgoing traffic I need I have white listed by adding specific rules. This works fine. But now I want to know, if there are outgoing connections which are…
Steffen
  • 989
  • 3
  • 13
  • 31
0
votes
0 answers

Ports are shown as openedin firewall-cmd, but nmap scans shows they are closed

I am using OpenSuse Leap 15.3, with vicibox v10. I have surfed vicidial fourms, but it seems to be an issue with OpenSuse. I have opened ports with firewall-cmd, following are the output. vicibox10:~ # sudo firewall-cmd --list-all public (active) …
0
votes
1 answer

firewall-cmd - adding 0.0.0.0/0 as a source in one zone blocks more specific access in another zone

I have two firewalld zones configured as follows: zone: ssh-access source: 1.2.3.4 ports: 9999/tcp zone: other-access source: 5.6.7.8 ports: 8888/tcp We temporarily want to unrestrict access to the ssh-access zone on port 9999/tcp so we replace…
Chris
  • 101
  • 1
0
votes
1 answer

Block port 22 on specific Docker container

I have multiple Docker containers on a Centos 7 host and all their network interfaces are added to the Docker firewalld zone. I only want to block one of the containers from accepting traffic on port 22, not all the containers. I added: iptables -I…
0
votes
1 answer

CentOS firewall-cmd script to only allow access from IPs listed in sources

I use this script to set up my firewall. I expected to have ssh access from only one IP but that is not the case after testing. What is missing? #!/bin/bash # # Reset to initial install of firewalld # rm -f /etc/firewalld/zones/* firewall-cmd…
sfanjoy
  • 121
  • 4
0
votes
1 answer

Firewalld Blocking SSH between Clients on WireGuard LAN

What needs to be allowed in firewalld so that WireGuard clients can connect to each other via SSH? The Setup I have two clients and a server on a WireGuard VPN network. All of them are running Debian 11. CLIENT A -------- SERVER -------- CLIENT…
user371793
  • 27
  • 6
0
votes
1 answer

firewalld port forwarding not working in CentOS 7

In my server I wanted to redirect all request: come from 81 to 8080 port Because Jenkins service is not allowed listened at 80 port, I follow Jenkins doc Jenkins - Reverse proxy using firewalld. But not working, below is my step and some system…
Laa
  • 111
  • 3
0
votes
1 answer

Centos 7 OpenVPN - FirewallD keeps putting tun0 in the wrong zone on reboot

I have a fresh install of Centos 7 and I have several things running on it. One of them is OpenVPN. Everything works fine, I have tun0 in the trusted zone and my nic (eno1) is public. Server is behind a router/firewall so I do not need to setup…
Jeremy
  • 11
  • 2
0
votes
1 answer

Which protections can I use on the server

I have read about server protection and I know how to work with fewalld protection because it is not demanding. My question is: Which of the following protections is best for the server and which of the offered ones can be used together on the…
Edgar
  • 17
  • 4
0
votes
1 answer

Attach port to domain name

I run a small (centOS 7) mail server at home and I would like to attach ports to a domain name instead of opening up for every incoming connection of the server-IP. Currently, when I open up port 25/993/587 in FirewallD, it opens up to everyone. So…
Franc
  • 3
  • 1
0
votes
1 answer

how to use firewalld in stateful mode

I have to setup an stateful firewall on centos8 using firewalld. I'm new to firewalld but have experience with old style iptables for this purpose. since it is recommended by Redhat here I prefer to not combine two methods like firewalld and…
H. Far
  • 21
  • 5
0
votes
3 answers

How to Accelerate Firewalld or should it be abandoned for nftables instead?

We have a problem where we set up a server running a service and it is capable of hundreds of simultaneous connections on port 3535 (arbitrarily assigned for this application). We have firewalld running on this near-end-host allowing connections…
TekOps
  • 71
  • 4
0
votes
1 answer

Firewalld port forwarding Proxmox makes port unusable for other connections

I have a server hosted by hetzner with a single public ip address which runs proxmox and some VMs. This ip address is configured inside /etc/interfaces like this: auto enp35s0 iface enp35s0 inet static address {{my-public-ip}}/{{subnet}} …
0
votes
2 answers

Masquerade / firewalld target : impacts on filtering?

I opened a question here, but as I found some new elements, I prefer to open a new one. Here is my situation, that can be reproduced: Fresh Centos7 OS. Configuration of two interfaces eth1 and eth2 with ip adresses X and Y -----------------> @X…
0
votes
1 answer

How to allow an ip address to access a specific port on the server without blocking other traffic

First off, am using Firewalld and my configuration is as follows: All traffic is allowed (nothin fancy). Server has MySQL and Apache2 (Linux Debian) I need to allow MySQL remote connections to a specific ip address (my ip) without shutting out…
Dennisrec
  • 121
  • 4