Re: Strange problem with iptables and ip ranges with leading 0's (works sometimes, but not other times)

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

 



> On Tue, 2003-09-30 at 21:26, michael@xxxxxxxxxx wrote:
> The leading 0's are interpreted as indicating an octal number, rather
> than decimal.  (This means your 202.007.077.0 that was accepted, if you
> list the rule back, will show 202.7.63.0/24 being ACCEPTed)  I don't see
> it documented anywhere as behaving this way, but that's clearly what is
> happening.  077=63, 0100=64, 078=Undefined, like trying to interpret
> 0x1A (the 'x' indicates hexadecimal) in decimal - the 'A' has no
> meaning, just like any digit 8 or higher has no meaning in octal.


Thanks very much for that. I didn't think it could be seeing it as a octal
number.

Explains a lot now.

Thanks once more



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux