Adding an ipv6 address to "require ip" in phpmyadmin.conf in linux -
i'm trying edit phpmyadmin.conf
in etc/httpd/conf.d/phpmyadmin.conf
such allows ip.
have works when router set allow ipv4 addresses:
<ifmodule mod_authz_core.c> # apache 2.4 <requireany> require ip 111.222.333.444 require ip ::1 </requireany> </ifmodule> <ifmodule !mod_authz_core.c> # apache 2.2 order deny,allow deny allow 111.222.333.444 allow ::1 </ifmodule>
i want add ipv6 address, works when add entire ipv6 address (replacing ::1). ie xxxx:xxxx:xxxx:xxxx:xxxx:b95:bdb0:9c2b
however, ipv6 address changes on reboot. want add limited address.
i've tried:
xxxx:xxxx:xxxx?
xxxx:xxxx:xxxx:*
xxxx:xxxx:xxxx/48
, variants of above.
but none work (in fact, phpmyadmin won't restart)
is there way this? :)
the supported syntaxes are, apache 2.2 , 2.4 respectively:
allow 1111:2222:3333:4444::/64 require ip 1111:2222:3333:4444::/64
the syntax trying missing terminal ::
, causing base ipv6 address invalid. (it'd comparable trying write 1.2.3/24
instead of 1.2.3.0/24
.)
Comments
Post a Comment