]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit - html/cgi-bin/guardian.cgi
guardian.cgi: Add function to generate the guardian.ignore file.
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 29 Apr 2016 08:55:32 +0000 (10:55 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 29 Jul 2016 11:17:56 +0000 (13:17 +0200)
commit97849142bd882820c336bec357b62381cae8a5c4
treee9477ac380ce13dc741fa983f9038ae1516eac61
parent7edbe063742d0c65e2f229dc366da8b18ea41482
guardian.cgi: Add function to generate the guardian.ignore file.

This function is responsible for collecting all required data,
like the green, blue, orange (if the interfaces are available),
red, gateway and used DNS server IP-addresses.

It will add als these addresses and the configured and enabled
user-defined ignored addresses/networks to the ignore file of
guardian to prevent from blocking any of them.

Note:

The IPFire and RED inteface related addresses also will be added
to the ignore file, even if there is no user-defined entry in the
list.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/guardian.cgi