Page 1 of 1

Networking / Aliases question

Posted: Sun Jan 17, 2010 3:33 am
by jOOc
Hello,

This is my first post :D
I just installed Amahi on my Fedora12 box home and gotta say "I LOVE IT"...

One thing that I came across was when I tried to add my external address to a new alias "www".
My external IP included 255 and the aliases page didn't allow me to add it :(

I had to do this change in /var/hda/platform/html/app/controllers/aliases_controller.rb

Code: Select all

197c197 < [$1, $2, $3, $4].each { |ip| return false if ip.to_i > 255 } --- > [$1, $2, $3, $4].each { |ip| return false if ip.to_i > 254 } 210c210 < return true unless v < 0 or v > 255 --- > return true unless v < 0 or v > 254
Any reason why ip segments check is just going up to 254 by default?

Re: Networking / Aliases question

Posted: Tue Jan 26, 2010 12:48 am
by cpg
hmmm ...

the 255 is technically reserved for broadcasting, if i understand correctly.

though it may be possible to assign something there, it's probably not a good idea.

who assigned that IP?? your ISP??

Re: Networking / Aliases question

Posted: Tue Jan 26, 2010 1:49 am
by jOOc
hmmm ...

the 255 is technically reserved for broadcasting, if i understand correctly.

though it may be possible to assign something there, it's probably not a good idea.

who assigned that IP?? your ISP??
Yes it was my ISP.

But you are wrong with assuming all addresses that includes a 255 are used for broadcast ( if its not ending with 255 :D ), check the topic "Addresses ending in 0 or 255" in this link for more information http://en.wikipedia.org/wiki/IPv4.