Questions tagged [firewalld]

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

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

Linux firewalld: Block HTTP in general and open for specific hosts

I have a server running an Apache reverse proxy service on port 80. It lives on a closed network but some of the hosts on the network are outside of my working group and should not have access. I have ...
1
vote
0answers
11 views

Fedora unable to mount nfs due to firewalld

I am trying to create a nfs to share between my host and guest VM (run with qemu-kvm). I followed this guide ad this is the situation: host: cat /etc/exports /mnt/nfsshare 192.168.122.76/24(rw,sync,...
0
votes
0answers
12 views

firewalld: Remove all pre-existing (default) rules

I have a set of machines with RHEL 8+ and SLES 15+ OS installed. I found out that firewalld is the daemon that controls the iptables firewall and its rules. When I run iptables -L and iptables -t nat -...
1
vote
0answers
14 views

how to configure firewalld, port-forward to specific VM:port and permit VM to external

I have KVM/libvirt env as follows. em1(external) | bridge0 / | \ VM1 VM2 VM3 I hope to access to VM1(192.168.122.103) with 9091 port from external with following. # firewall-cmd -...
0
votes
0answers
13 views

Why does CentOS7 firewall automatically block http https traffic?

I've just experienced a strange behavior with my CentOS VPS. I checked and fixed but I still not figuring out why it happened? My server used to work without any problem until this morning, all my ...
0
votes
0answers
50 views

How can I stop firewalld from interrupting an existing outgoing ssh exec session when it is started or restarted?

I have a java program running on a Centos7 server that continuously "tails" a file on another Centos7 server using the JSch library to run an ssh exec process to run a shell script on the ...
0
votes
0answers
96 views

firewalld failed since installing docker

Firewalld has been writing the following errors in the logs since installing Docker: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -t filter -F DOCKER' failed: iptables: No chain/target/match by ...
0
votes
0answers
15 views

Outbound SFTP connection timed out using CentOs8 and firewalld

I have a CentOs8 server running with a WordPress website. The website makes use of a plugin that requires an outbound SFTP connection with a specific IP (say '123.123.123.123'), port 22, to function. ...
0
votes
0answers
21 views

Firewalld cannot import ipset list from file for ipset with timeout

I created a timeout ipset: firewall-cmd --permanent --new-ipset=blacklist_temp --type=hash:ip --option=timeout=86400 Then I want to import list of IPs to be banned # cat blacklist.txt 192.168.0.1 ...
1
vote
0answers
27 views

Fedora 33 as wireless router to the internet: stations are always isolated, cannot ping/connect between devices on the wireless lan

Wifi adapter : Asus PCE-AC88 Running on the router : Fedora 33, firewalld, hostapd (built from master), dnsmasq Routing to the internet works great, all stations are routed to the WAN provided by my ...
0
votes
0answers
13 views

Centos 8 / Fedora 30+ MultiWan Router - Load Balancing and Fail Over - Possible?

I setup my router (older PC with 5 nics) with Centos 8.2 and am running firewalld with external zones and multiple trust zoned internal lans. I want to be able to have outbound load balancing (...
0
votes
0answers
8 views

Can nft NAT work when firewalld is disabled? Centos8

If there is a nat service running via nft on a machine, can the firewalld be disabled with nat still functioning? Are the two services needed by each other or can they work separately from each other?
0
votes
0answers
9 views

Centos8/RHEL8 firewall-d external zones - opening ports and Port Forwarding not working

I have a complex home setup lab, it has some 9 machines and several networks. My gateway to the outside world is a dual WAN Centos8 machine running an External Zone on two interfaces and a Trusted ...
0
votes
1answer
255 views

How to get an IP address blocked with firewall-cmd with immediate effect?

To replicate the problem have two different servers with their own IP addresses. Now start pinging one of them from the second one, and while still pinging block the first server's IP on the second ...
0
votes
0answers
9 views

firewalld - not allowing connections between two internal-zoned networks

I have a centos8 machine running as a gateway, it has 3 internal zoned interfaces and one external zoned interface. From any internal zone I can ping any IP on any other, but I cannot ssh across them. ...
1
vote
1answer
140 views

How can I fix IPv6 not forwarding traffic correctly between interfaces?

I have two OpenSUSE servers, one with IPv6 and IPv4 while the other only has IPv4 capablities. The two of them are connected with OpenVPN and can communicate using IPv6 through the tunnel just fine. ...
1
vote
0answers
16 views

iptables: Limit hit /24 per ip (NETSCAN-Limit) dst limit for ip

in centos we have nat and vpn: 1- detect connections per IP to any /24 if more than 3 different ips in /24 within 5 seconds 2- set dst limit all /24 only for the source ip wich wanted to hit them 3- ...
0
votes
0answers
53 views

Deny port redirection based on source IP - firewalld

I'm trying to forward a port to an external IP using firewall-cmd, but I need to deny access from certain ips. To setup a port-forward of port 55500, I use: firewall-cmd --permanent --zone=public --...
0
votes
1answer
507 views

CentOS 8.1: Forwarding OpenVPN Clients to LAN without NAT

So there's an OpenVPN Server with multiple clients, which I successfully divided into multiple subnets. 10.0.30.0/26 for generic clients which are only allowed to communicate with the OpenVPN Server ...
1
vote
0answers
34 views

Firewalld: allow only certain source and destination port pairs

I am using firewalld to configure my firewall. I tried to create a service that allows a specific pair of source and destination ports: <?xml version="1.0" encoding="utf-8"?> <service> &...
0
votes
1answer
100 views

How can I block (ssh) traffic from source ports other than a pre-defined one?

A VPS get lots of ssh attacks. Those attacks are various source ports: sshd[76661]: Invalid user ts3server from 76.103.161.19 port 33062 sshd[76661]: Received disconnect from 76.103.161.19 port 33062:...
0
votes
1answer
169 views

/var/log/firewalld is not getting rotated

I am not sure why this particular file is not getting rotated. It is not a directory. Any ideas? The size of the firewalld file: $ ls -alh /var/log -rw-r--r--. 1 root root 134M Jan 31 13:49 ...
0
votes
1answer
278 views

I can send E-Mails but not receive E-Mails.. | CentOs - Docker - poste.io

I run a Server on CentOs 7 with FirewallD, on there i run Docker with Poste.io Mailserver. (SQLite, Dovecot, NGiNX, Haraka, RSPAMD, ClamAV, Roundcube, Z-Push) Soo my problem is i can´t receive E-...
0
votes
1answer
144 views

Trouble using SCP command

After successfully establishing a ssh connection between two Ubuntu systems via ssh chh1@192.168.1.67 from a local machine with user name chh2 I tried copying a file from my server with the ...
0
votes
1answer
43 views

CentOS 7 - Load settings for iptables at OS startup

I would like to load the settings below for iptables on CentOS 7 at OS startup using a bash script. How can I do this? #!/bin/bash iptables -I OUTPUT -d 0.0.0.0/0 -j ACCEPT iptables -I FORWARD -d 0....
5
votes
1answer
5k views

firewall-cmd - add-forward-port don't work

I have a KVM server (host) with multiple virtual machines (guests). My goal is my host forward port 222 to port 22 of a guest running an ssh service. This works... iptables -I OUTPUT -d 0.0.0.0/0 -...
1
vote
0answers
124 views

Routing Issue Between Interfaces under CentOS7/Firewalld

I use a Linux PC as my Internet gateway; it's running a fresh installation of CentOS 7 x64. I have one subnet (192.168.2.0/24) which is my regular Home network, and I have a second, separate subnet (...
0
votes
1answer
109 views

firewalld - change destination of outgoing http and https requests from local process

I have a process that listens for incoming port 80 and 443 traffic and then sends it out to an extranet recipient. It's a proxy but I don't want to use that term because I need to send ITS outgoing ...
1
vote
1answer
520 views

Blacklist list of IPs from File Centos 7.5

I've to deny access from set of IP set from specific country and downloaded the list from http://www.ipdeny.com/ site. I tried to block this set using firewall-cmd --permanent --ipset=blacklist --...
0
votes
1answer
993 views

Linux - FirewallD - Why is ping blocked?

I know that the drop zone (my default zone) in FirewallD blocks all incoming traffic, including icmp, so also ping. The FedoraWorkstation zone, does not block icmp. But where can I see this? If apply ...
1
vote
1answer
310 views

Ho to route one subnet to another using firewalld CentOS 7

I have a CentOS 7 system, with a VPN host and one physical network interface. I have my physical network interface assigned to public zone, while my VPN requests are going through trusted. Also, I ...
5
votes
1answer
9k 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 ...
0
votes
1answer
2k 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
689 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
729 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 ...
3
votes
1answer
809 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
2k 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
35 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 ...
1
vote
1answer
3k 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-...
1
vote
1answer
637 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
327 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
68 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.
2
votes
2answers
3k 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
1answer
3k 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
3k 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
1k 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
5k 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 ...
5
votes
3answers
53k 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 ...
8
votes
1answer
5k 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
794 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 ...