Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [firewalld]

Firewalld is an open source firewall solution available on several linux distributions. Firewalld uses D-BUS for monitoring and dynamic management.

0
votes
1answer
15 views

How can I configure firewalld to block all outgoing traffic except for specific ports while allowing localhost to access any of its own local ports?

I'll confess at the start that I'm asking this question only after finding the answer and wanting to share it with everyone else. If this is bad form, then my sincere apologies and I'm open to the ...
-1
votes
1answer
83 views

Whitelist websites for specific user on linux?

Due to a child protection and safeguarding issue, I want to set up a restricted or limited account for a tech-savvy teenager to use. I would like to whitelist only specific websites (e.g. iPlayer and ...
0
votes
1answer
97 views

Can I block internet access of a single app with firewalld?

Is it possible to prevent a single app to access the internet with firewalld? To be precise, i have an application packaged as an AppImage, currently installed in my Home directory, and I want it to ...
0
votes
1answer
18 views

How to make UFW work with firewalld on CentOS 7?

I've installed UFW on a fresh CentOS 7 installation, but it doesn't open the ports. I'm configuring UFW as I would on a Debian system: sudo ufw default deny incoming sudo ufw default allow outgoing ...
0
votes
0answers
36 views

How can I forward traffic to a natted kvm guest when clients connect to the host with firewalld?

I have one CentOS 7 kvm guest at 192.168.122.7. For troubleshooting purposes, selinux is off. There is an application listening on port 9000, and port 9000/tcp is open on the firewall on the guest and ...
1
vote
1answer
165 views

Setting up rules in firewalld to allow clients in the same VPN subnet to communicate

I am trying to setup a Wireguard VPN on a Fedora server. I have it up and running and can connect with multiple clients, browse through it, ssh into the server etc. In general it just works. Except ...
3
votes
0answers
254 views

Docker container can't make DNS queries with FirewallD running

While FirewallD is running, all DNS queries fail and are blocked by the firewall. Running tcpdump -i docker0 while running ping google.com in a container shows me 21:27:02.683342 IP 172.17.0.2.35118 &...
0
votes
1answer
21 views

New Linux install, can't get ssh or http connections working, connections are made but drop?

So, I / we have brand new Fedora Core 28 installation we've been trying to bring online. The installation went perfectly so far as we could tell. It has two network cards, one for an internal net, one ...
0
votes
0answers
55 views

firewall-cmd configure destination NAT

I am trying to configure destiation NAT on a RHEL 7.4 server. I want any traffic generated for 10.10.10.10:443 to go to 10.20.20.20:443. After some Googling I used following direct rule: firewall-...
0
votes
0answers
173 views

Using firewalld is not working for port forwarding

I have 3 NICs on CentOS 7. I set up firewalld in the following way: echo "1" > /proc/sys/net/ipv4/ip_forward firewall-cmd --permanent --new-zone=test nmcli connection modify ens24 connection.zone ...
1
vote
1answer
84 views

firewall-cmd blocking snmp

I inherited a system that has rules implemented with firewall-cmd, it has the below rules. Another system is trying to connect to snmp port (UDP/161) but is not able (my server is responding with ICMP ...
1
vote
1answer
148 views

Per client firewall settings

I've successfully set up an OpenVPN-Server and can connect to it from the internet. Now I'm trying to implement per-client firewall rules so different clients can only connect to certain addresses in ...
0
votes
1answer
57 views

How to create a firewall rule, to block a website for a particular user? [closed]

can anybody helps me to make a firewall rule to block a particular website for a particular user. i have a Linux operating system am trying to make that OS like a firewall.
0
votes
0answers
716 views

Firewalld: How to whitelist just two IP-addresses, not on the same subnet

I'm running firwalld on a VPS / webserver. The public zone is active and default (and I do not want the change that). How do I allow only these two external IP-addresses to access the VPS (i.e. all ...
2
votes
2answers
945 views

Firewalld block / drop and allow by IP

We have a linux root server which primarily just is a docker server. Hosting containers and a CI runner. To protect this server the basic idea for now is to block all traffic except for one (or more)...
1
vote
0answers
958 views

How to open a UDP port in the Centos 7 firewall, firewalld, using firewall-cmd?

Centos 7 server. Trying to open port 3000 for UDP, nodejs ws websockets. Any ideas? I'm stuck! I've checked a few other SO posts to no avail. Thx, Keith =) If is stop the firewall, the udp unicast ...
1
vote
0answers
2k views

TFTP Server With Red Hat 7

How do I set up a TFTP Server w/ Red Hat 7? This is a fresh VM install of RHEL 7.3. I'm using the RHEL 7 Installation Guide instructions at https://access.redhat.com/documentation/en-US/...
-1
votes
2answers
679 views

Fedora firewalld issues with docker

I'm running a service inside docker listening on port 8081. I can access this service on the fedora server itself, but anything else on the network gets a timeout. If I turn off firewalld, the issue ...
0
votes
1answer
951 views

firewalld, only allowing SSH from specific IP which is part of a different zone

My goal is to serve ldap to every client on 172.26.143.0/24 but SSH must only be available to 172.26.143.3. I have tried with the following: # This is where eth0 is and no services/ports are assigned ...
3
votes
2answers
22k views

Getting firewalld to allow ping requests

On CentOS 7, I have installed and setup firewalld as follows: Add ssh service to drop zone permanently (sudo firewall-cmd --zone=drop --permanent --add-service=ssh) Make drop zone the default zone so ...
3
votes
1answer
2k views

Opening a port with firewalld doesn't seem to work

I have configured sshd to live on a different port. I have opened that port using firewalld: $ sudo firewall-cmd --zone=public --add-port=22000/tcp --permanent Listing rules shows port 22000 is ...
0
votes
1answer
660 views

http://127.0.0.1 returning 401 Unauthorized

I have a CentOS 7 box and have a service running on port 32400 (Plex Media Server) which is trying to pull some information via HTTP to http://127.0.0.1:32400/library/changestamp but a 401 response is ...
1
vote
1answer
490 views

firewalld and localhost address translation

I have a server with red hat 7.1 which has two ip addresses, a public one available on internet on interface bond1 and a private one on the corporate lan on interface bond0. I have apache 2.4 ...
1
vote
0answers
93 views

Linux Fedora run Firefox via pkexec sound issue

I would like to setup my Fedora Linux install so that I have control over outgoing traffic on a per application basis. In order to achieve this I have setup an firewall policy to drop everything from ...
4
votes
1answer
9k views

Configure FirewallD to allow bridged virtual machine network access

I have a Windows guest running on a virt-manager QEMU/KVM virtual machine. My primary NIC eno1 is in a bridge br1 which is configured with my host IP address configuration. This VM is connected to ...
1
vote
1answer
5k views

using firewalld and firewall-cmd how to add-rule to primary INPUT chain not INPUT_direct

so after reading the firewalld man page and fedora documentation, I have come to the understanding that to add a custom rule to firewall with specific arguements i need to use the structure firewall-...
6
votes
1answer
2k views

How to block docker-mapped ports with a firewall from outside the host without messing up docker routing inside the host?

I have a docker container running on a host with some port mapped to a port on the host. docker run -d -p 9009:9009 someserver I want this machine firewalled off from the internet except for 80, ...
1
vote
1answer
1k views

Port forwarding to VM using firewalld

I have been looking and not able to find anything about how to solve this problem. I am trying to set up port forwarding to a VM (qemu) on a CentOS 7 Server. Tying to forward anything incoming on ...
3
votes
1answer
105 views

Configure firewalld to distinguish home and public ethernet connection

I connect my notebook via ethernet at home and outside. I want to open some ports for services like samba only at home and not somewhere else. How can i let firewalld automatically detect where i am, ...
1
vote
1answer
4k views

I can't configure firewalld with my custom rule xml

Centos7: I dropped my xml in /etc/firewalld/services when running firewall-cmd --permanent --zone=public --add-service=rules.xml all i get is "Error: INVALID_SERVICE: rules" When running firewall-...