Using 'SetEnvIf' IP address matches in IPv6 space - do I match on 'short' or 'expanded' address?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In my httpd conf, I set a var for use in matching conditions.

In IPv4 space this is clear.

	SetEnvIf X-FORWARDED-FOR "^192\.168\.1\.(.*)"  okOFFICE=$1
	SetEnvIf X-FORWARDED-FOR "^127\.0\.0\.1(.*)"   okLOCALHOST=$1

I want to add the analogue for IPv6 addresses.

Which do I match against?  The 'shortened' or 'fully expanded' IPv6
addresses?

E.g.,

		"::1"
	vs
		"0:0:0:0:0:0:0:1"

and,

		"2001:490:1cd7:5b10::1"

	vs

		"2001:490:1cd7:5b10:0:0:0:1"

Do I only need to match the short versions?  Or both/all?

Kar

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux