Networking / Aliases question

jOOc
Posts: 19
Joined: Sun Jan 17, 2010 3:24 am
Location: Sweden

Networking / Aliases question

Postby jOOc » Sun Jan 17, 2010 3:33 am

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?

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Networking / Aliases question

Postby cpg » Tue Jan 26, 2010 12:48 am

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??
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

jOOc
Posts: 19
Joined: Sun Jan 17, 2010 3:24 am
Location: Sweden

Re: Networking / Aliases question

Postby jOOc » Tue Jan 26, 2010 1:49 am

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.

Who is online

Users browsing this forum: Google Adsense [Bot] and 45 guests