[Olsr-dev] HttpInfo

L. Aaron Kaplan (spam-protected)
Mon Mar 15 21:34:28 CET 2010


ah, ok... you could read the "my ip address and netmask" sloppily as I did or read it like Markus probably thought about:

PlParam         "Net"   "10.20.30.0 255.255.255.0"                              

   says: Network 10.20.30.0/24 is allowed to connect to the httpinfo plugin.

I interpreted this as "my IP (or network) and netmask and I want to connect to the olsr node with the config file which you sent to the mailing list". I guess Markus interpreted this as "the other guy's network and netmask who wants to connect to my httpinfo".

Whatever - I guess this is a matter of point of view / perspective  :)

You can read all the details in the README_HTTPINFO documentation in the source code repository in 
lib/httpinfo/

Quote from the README_HTTPINFO:
<quote>
-----------------------------------------------------

 PARAMETERS

The plugin takes the parameter "Port" "[portnumber]"
to set the TCP port on which the server is to run.
It defaults to 1978.
Now remember to open this port in your firewall if
planning to access the HTTP server from a remote host!
The parameter "Host" "[IP address]" is used to allow
access from a single host(muliple such entries can
be set) and the parameter "Net" "[IP net] [IP mask]"
is used to allow access from entire net-ranges.
To allow access from all hosts do:
 PlParam   "Net" "0.0.0.0 0.0.0.0"

A configuration example:
LoadPlugin "olsrd_httpinfo.so.0.1"
{
    PlParam     "port"   "80"
    PlParam     "Host"   "163.24.87.3"
    PlParam     "Host"   "80.23.53.22"
    PlParam     "Net"    "10.0.0.0 255.0.0.0"
    PlParam     "Net"    "192.168.0.0 255.255.0.0"
}

</quote>


Is the description in the README better ?

Best regards,
Aaron.


On Mar 15, 2010, at 9:06 PM, Markus Kittenberger wrote:

> No
> 
> On Mon, Mar 15, 2010 at 8:30 PM, Airton Ishimori <(spam-protected)> wrote:
> Hi,
> 
> What means the 4 line? It`s my ip address and netmask that I get to write?
> 
> LoadPlugin "olsrd_httpinfo.so.0.1"                                     
> {                                                                      
> PlParam         "Port"  "8080"                                         
> PlParam         "Net"   "0.0.0.0 0.0.0.0"                              
> }                               
> 
> --
> Olsr-dev mailing list
> (spam-protected)
> http://lists.olsr.org/mailman/listinfo/olsr-dev
> 
> -- 
> Olsr-dev mailing list
> (spam-protected)
> http://lists.olsr.org/mailman/listinfo/olsr-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20100315/c8f1e31b/attachment.html>


More information about the Olsr-dev mailing list