[Eisfair_dev] IPv6-Unterstützung in Eisfair-Konfiguration
Hendrik Orep
hendrik.orep at mailbox.org
Mo Dez 16 00:44:13 CET 2019
Hallo,
ich habe noch mal weiter geschaut. In einigen Paketen kann man in der
Konfiguration ein Netzwerk angeben (z.B. SMTP_RELAY_FROM_HOST_% oder
APACHE2_ACCESS_CONTROL_IP).
Voraussetzung um diese und andere Paketkonfigurationen vollständig
IPv6-tauglich zu machen wäre also auch hier, dass es checks für IPv6-
und IPv4/IPv6-Netzwerke gibt.
Versuchsweise habe ich auch hierfür mal die base.exp erweitert [1].
Bei PREFIX6 bin ich mir nicht sicher, ob der reguläre Ausdruck so
richtig und optimal ist. Für die Variante IPv4 oder IPv6 habe ich auch
noch keine passenden/schönen Hinweistexte.
Beste Grüße
Hendrik
[1] diff etc-check.d-base.exp.original /etc/check.d/base.exp
148c148
< : 'no valid netmask spezified, please specify a value
---
> : 'no valid netmask specified, please specify a value
173a174,226
> : 'no valid ip address, network or empty'
> PREFIX6 = '12[0-8]|1[0-1][0-9]|[1-9]?[0-9]'
> : 'no valid prefix-length specified, please specify a value
> between 0 and 128'
> NETWORK6 = '(RE:IPADDR6)/(RE:PREFIX6)'
> : 'no valid network specification, should be a network
> address followed by the prefix-lenght, for instance 2001:DB8::/32'
> NETWORKS6 = '(RE:NETWORK6)([[:space:]]+(RE:NETWORK6))*'
> : 'no valid network specification, should be one or more
> network addresse(s) followed by the prefix-length,
> for instance 2001:DB8::/32'
> ENETWORKS6 = '()|(RE:NETWORKS6)'
> : 'no valid network specification, should be empty or
> should contain one or more
> network addresse(s) followed by the prefix-lenght,
> for instance 2001:DB8::/32'
> MULTIPLE_NETWORKS6 = '(RE:NETWORK6)([[:space:]]+(RE:NETWORK6))+'
> : 'no valid network specification, should be two or more
> network addresses followed by their prefix-lenghts,
> for instance "2001:DB8:6::/48 2001:DB8:7::/48"'
> EMULTIPLE_NETWORKS6 = '()|(RE:MULTIPLE_NETWORKS6)'
> : 'no valid network specification, should be empty or
> contain two or more
> network addresses followed by their prefix-lenghts,
> for instance "2001:DB8:6::/48 2001:DB8:7::/48"'
> IPADDR_NETWORK6 = '(RE:IPADDR6)|(RE:NETWORK6)'
> : 'neither valid ip address or valid network'
> EIPADDR_NETWORK6 = '()|(RE:IPADDR6)|(RE:NETWORK6)'
> : 'no valid ip address, network or empty'
> NETWORK46 = '(RE:NETWORK)|(RE:NETWORK6)'
> : 'no valid network specification, should be a network
> address followed by the prefix-length, for instance 2001:DB8::/32'
> NETWORKS46 = '(RE:NETWORK46)([[:space:]]+(RE:NETWORK46))*'
> : 'no valid network specification, should be one or more
> network addresse(s) followed by the prefix-length,
> for instance 2001:DB8::/32'
> ENETWORKS46 = '()|(RE:NETWORKS46)'
> : 'no valid network specification, should be empty or
> should contain one or more
> network addresse(s) followed by the prefix-length,
> for instance 2001:DB8::/32'
> MULTIPLE_NETWORKS46 = '(RE:NETWORK46)([[:space:]]+(RE:NETWORK46))+'
> : 'no valid network specification, should be two or more
> network addresses followed by their prefix-lenghts,
> for instance "2001:DB8:6::/48 2001:DB8:7::/48"'
> EMULTIPLE_NETWORKS46 = '()|(RE:MULTIPLE_NETWORKS46)'
> : 'no valid network specification, should be empty or
> contain two or more
> network addresses followed by their prefix-lenghts,
> for instance "2001:DB8:6::/48 2001:DB8:7::/48"'
> IPADDR_NETWORK46 = '(RE:IPADDR46)|(RE:NETWORK46)'
> : 'neither valid ip address or valid network'
> EIPADDR_NETWORK46 = '()|(RE:IPADDR46)|(RE:NETWORK46)'
Mehr Informationen über die Mailingliste Eisfair_dev