Page 1 of 1

NRPE agent firewall error during installion on RHEL 6.6

Posted: Mon Mar 05, 2018 4:22 pm
by hanson14
During NRPE agent (linux-nrpe-agent.tar.gz) installation on a linux client (running RHEL 6.6), the installation failed with the error:

.
.
.
Running './4-firewall'...
iptables: No chain/target/match by that name.
RESULT=1

I looked in the install log, and it did not provide any additional information.

Install steps included below...

tar xzf linux-nrpe-agent.tar.gz
cd linux-nrpe-agent
./fullinstall

The linux machine is on a closed network, with no access to open internet. It does have access to a valid Linux 6 EPEL.

Any help is appreciated.

Re: NRPE agent firewall error during installion on RHEL 6.6

Posted: Tue Mar 06, 2018 3:37 pm
by scottwilkerson
Can you attach the full install.log from the installation directory

Re: NRPE agent firewall error during installion on RHEL 6.6

Posted: Tue Mar 06, 2018 3:39 pm
by scottwilkerson
Actually if you do not need to configure firewall or iptables you can probably just run this in the installation directory

Code: Select all

touch installed.firewall
./fullinstall

Re: NRPE agent firewall error during installion on RHEL 6.6

Posted: Tue Mar 06, 2018 3:40 pm
by cdienger
The commands it runs are:

iptables -L | awk '/^Chain.*INPUT/ {print $2; exit(0)}
iptables -L $CHAIN | wc -l
iptables -I "$CHAIN" "$RULENUM" -m state --state NEW -m tcp -p tcp --dport "5666" -j ACCEPT


Where $CHAIN is the result of the first command and $RULENUM is the output of the second command minus 2. What is the output of these commands if you run them manually? Also, does "iptables -L" show an INPUT table?