Questions tagged [firewalld]

Questions regarding firewalld a firewall service daemon

Firewalld is a service daemon with D-Bus interface

Firewalld provides a dynamically managed firewall with support for network/firewall zones that define the trust level of network connections or interfaces.

Site: http://www.firewalld.org/

140 questions
1
vote
0 answers

Centos 8 block ip (firewalld ipset doesn't seem to work)

I followed this guide https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/security_guide/sec-setting_and_controlling_ip_sets_using_firewalld to create an ipset with ip to block. This is my ip…
alebal
  • 5,838
  • 3
  • 10
  • 28
1
vote
1 answer

Multicast packet not arrived inside podman correctly. Workaround found, but unclear if it is a firewalld issue or a podman issue?

I am becoming crazy with the firewalld, podman and UDP/Multicast. While I see UDP packets arriving in podman; confirmed using tcpdump command. It seems I am unable to configure using a customized firewalld zone with name knx_multicast that should…
pitschr
  • 156
  • 1
  • 8
1
vote
1 answer

Something is flusing iptables after some hours of fail2ban reload

Several days ago I asked this question Confuse about fail2ban behavior with firewallD in Centos 7 It is a large text with several comments. It seems something starts flushing iptables after some hours of fail2ban restart I don't get what it is. A…
dstonek
  • 945
  • 1
  • 20
  • 33
1
vote
1 answer

Confuse about fail2ban behavior with firewallD in Centos 7

I was using fail2ban/iptables in a Centos 6 server. I moved to Centos 7 and now I am using fail2ban/firewallD (installed by Webmin/Virtualmin with their defaults) These are cat /var/log/maillog | grep "disconnect from unknown" screen shots cat…
dstonek
  • 945
  • 1
  • 20
  • 33
1
vote
1 answer

How do we transfer oracle port 1521 to another machine's port 9800

I want to transfer oracle A port 1521 to B 9800 with firewalld,where I can use B:9800 to visit A's oracle. I set a new tnsnames.ora which have B:9800 here is the code i test ,but it doesn't work firewall-cmd --add-port=9800/tcp firewall-cmd…
Kalina
  • 51
  • 3
1
vote
0 answers

Unit firewalld.service could not be found

iam setting up chef server and chef manage for that i need to stop firewalld,but first of all my error is "Unit firewalld.service could not be found"
1
vote
2 answers

Docker Setup for centos 7

Hello I am new to docker and am trying to setup docker on a centos 7 environment. I have installed docker using https://docs.docker.com/install/linux/docker-ce/centos/ and then tried to get a site running using this…
Jed
  • 929
  • 2
  • 19
  • 32
1
vote
1 answer

docker run jenkins, socket connect timeout

docker ### docker pull jenkins/jenkins docker run -p 8090:8090 -p 50000:50000 -e JAVA_OPTS="-Duser.timezone=Seoul/Asia" jenkins/jenkins:lts docker log Dec 11, 2018 1:17:23 AM hudson.model.UpdateCenter updateDefaultSite WARNING: Upgrading Jenkins.…
user2089579
  • 11
  • 1
  • 2
1
vote
3 answers

How to change Firewalld zone using Ansible?

When I run this it says successful but the default interface is still set to public zone. What gives? - firewalld: zone: public interface: "{{ ansible_default_ipv4.interface }}" permanent: true immediate: true state: disabled -…
Ozfer
  • 11
  • 1
  • 2
1
vote
2 answers

How to add range of ports in firewall-cmd direct rule

I want to add a range of OUTPUT chain ports using firewall-cmd using its direct rule method, something like this: firewall-cmd --permanent --direct --add-rule ipv4 filter OUTPUT 0 -p tcp -m tcp --dport=80-1000 -j ACCEPT This says success however…
Ibrahim Quraish
  • 3,889
  • 2
  • 31
  • 39
1
vote
1 answer

Add Rich Rules in Firewalld using Python3 Loop

I am attempting to use Python3 to iterate through a list of IP addresses, and then block them using firewalld. Note: I am a complete novice with Python, so please excuse any simple errors. import subprocess with open("ips.txt") as ipList: ips =…
Avalon
  • 912
  • 6
  • 16
1
vote
0 answers

Using Python, how to check if a particular port is blocked by firewall on a remote host?

My usecase for script is that from my local system I want to check wether a remote port is listening or not. Expected behavior: If port is listening, return 'listening' If no process is running on the port, return 'open' If port is blocked by…
1
vote
1 answer

setting loopback rules in firewalld according to CIS

I need to set up firewalld on RHEL7 according to CIS. In 3.6.3 Ensure loopback traffic is configured (Scored) I need to configure the loopback interface to accept traffic and configure all other interfaces to deny traffic to the loopback network…
Jan Furi
  • 163
  • 2
  • 8
1
vote
1 answer

php cURL to localhost returns permission denied on an open port

I'm getting a permission denied error when trying to make a cURL request with the php cURL library to localhost on port 4321. This will hopefully be really easy or obvious for someone who's run into this before. I'm able to make the identical cURL…
Altimus Prime
  • 2,207
  • 2
  • 27
  • 46
1
vote
0 answers

Docker service crash when firewall is stopped or started

I have two machines and I make a docker swarm cluster with them, then I created a service with 5 replicas to verify that the load balancer is working good but I noticed the firewall was blocking the two machines so I added the required…
Alan Gaytan
  • 852
  • 4
  • 14
  • 33