Skip to content

fping command runs into an error on a NetAlertX Installation with 2 LAN-Interfaces #1642

@tuxecert

Description

@tuxecert

What installation are you running?

Production (netalertx) 📦

Is there an existing issue for this?

The issue occurs in the following browsers. Select at least 2.

  • Firefox
  • Chrome
  • Edge
  • Safari (unsupported) - PRs welcome
  • N/A - This is an issue with the backend

Current Behavior

I am running 2 Instances of NetAlertX, one has 2 LAN-Interfaces für 2 Subnets, the other only 1 LAN-Interface for one Subnet.
Both are running absolutely fine so far.

Now I wanted to execute the ICMP Plugin in addition to ARP-SCAN.

When running ICMP (using fping) on the machine with 1 LAN-Interface everything is working as expected.

But running the ICMP Plugin with fping on the machine with 2 LAN's never finds any device.

The fping command seems to have an error on execution.

If I try run the fping command from the log file in the shell of the container it gives me an error. The cause seems to be the syntax when addressing the interfaces.
In the log the syntax is -I ens18,ens19
Using this your get:
binding to specific interface (SO_BINTODEVICE): No such device

If I change the command to -I ens18 ens19 it is executes in the containers shell well.

The issue is related to fping only, ping is running without any problems.

Expected Behavior

Running the fping command with multiple LAN Interfaces/Subnets is executed without an error.

Steps To Reproduce

  1. Run an instance with 2 LAN-Interfaces and 2 Subnets (one for each).
  2. Enable ICMP in addition to ARP-SCAN
  3. Wait for the execution of the ICMPJob and copy the ICMP logging output of the fping command to the containers shell and try to execute, it seems to fail
    Replace the "," in (for example) "-I ens18, ens19" with a blank " " and it is working

Relevant app.conf settings

docker-compose.yml

Debug or Trace enabled

  • I have read and followed the steps in the wiki link above and provided the required debug logs and the log section covers the time when the issue occurs.

Relevant app.log section

[ICMP] fping cmd: fping -a -i 0.5 -c 3 192.168.178.1 192.168.178.2 192.168.178.4 192.168.178.5 192.168.178.3 192.168.178.6 192.168.178.7 192.168.178.8 192.168.178.10 192.168.178.12 192.168.178.9 192.168.178.17 192.168.178.11 192.168.178.18 192.168.178.19 192.168.178.14 192.168.178.22 192.168.178.23 192.168.178.24 192.168.178.30 192.168.178.31 192.168.178.32 192.168.178.34 192.168.178.35 192.168.178.36 192.168.178.37 192.168.178.61 192.168.178.68 192.168.178.69 192.168.178.70 192.168.178.73 192.168.178.92 192.168.178.97 192.168.178.56 192.168.178.71 192.168.178.49 192.168.178.157 192.168.178.159 192.168.178.72 192.168.178.188 192.168.178.204 192.168.178.207 192.168.178.230 192.168.178.248 192.168.178.241 192.168.178.47 192.168.178.43 192.168.178.246 192.168.178.178 192.168.178.219 192.168.178.45 192.168.178.86 192.168.178.55 192.168.178.132 192.168.178.115 192.168.178.84 192.168.178.130 192.168.178.222 192.168.178.187 192.168.178.233 192.168.178.212 192.168.178.252 192.168.178.165 192.168.178.133 192.168.178.110 192.168.178.50 192.168.178.213 192.168.178.67 192.168.178.48 192.168.178.186 192.168.178.253 217.250.245.61 192.168.178.38 192.168.178.240 192.168.178.181 192.168.178.46 192.168.178.131 192.168.178.108 192.168.178.117 192.168.178.239 192.168.178.122 192.168.178.158 192.168.178.197 192.168.178.217 192.168.178.174 192.168.178.123 10.20.30.1 10.20.30.5 10.20.30.10 10.20.30.25 10.20.30.30 10.20.30.40 10.20.30.60 10.20.30.70 10.20.30.100 192.168.176.4 192.168.176.6 192.168.176.7 192.168.176.50 192.168.176.72 192.168.176.85 192.168.176.10 192.168.176.20 192.168.176.21 192.168.176.30 192.168.176.47 192.168.176.61 192.168.176.77 192.168.176.83 192.168.176.95 192.168.176.98 192.168.176.99 192.168.176.129 192.168.176.138 192.168.176.146 192.168.176.149 192.168.178.146 192.168.178.57 192.168.178.126 192.168.176.2 -I ens18,ens19
12:15:41 [ICMP] fping returned non-zero exit code, reading alive hosts anyway
12:15:41 [ICMP] online_ips: []
12:15:41 [ICMP] Script finished - 0 added or updated

Docker Logs

  PASTE DOCKER LOG HERE. Using the triple backticks preserves format.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't workingnext release/in dev image 🚀This is coming in the next release or was already released if the issue is Closed.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions