📄 readme_httpinfo
字号:
HTTP MINI-SERVER PLUGIN FOR OLSRD 0.1by Andreas T鴑nesen(andreto@olsr.org)----------------------------------------------------- ABOUTThis plugin implements a tiny HTTP server thatwill gespond to a GET request by returning a HTMLformatted page contanin various information aboutthe currently running olsrd process.This information includes detailed link status forall links and neighbors, all olsrd routes in the kernel, local configuration, uptime and more. Theplugin can also generate a olsrd configfile basedon current running configuration.In adittion an experimental administrtion interfaceis available.----------------------------------------------------- PARAMETERSThe 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 allowaccess from a single host(muliple such entries canbe 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"}This will run the webserver on port 80(the normalHTTP port) and allow access from the hosts 163.24.87.3and 80.23.53.22 and the networks 10.0.0.0/8 and192.168.0.0/16.access is always allowed from 127.0.0.1(localhost).----------------------------------------------------- EXPERIMENTAL ADMIN INTERFACEThe plugin can be compiled with a experimental adminitrator interface. This is a web page that willlet the user change olsrd settings in realtime.To compile with this feature pass ADMIN_INTERFACE=1as an argument to make(eg. make ADMIN_INTERFACE=1)-----------------------------------------------------NOTE!This plugin is very olsrd version sensitive. This meansthat to be sure everything woks as it is supposed toyou should use the version of olsrd that the plugin was shipped with. If using CVS you should check out/update both olsrd and this plugin.The plugin should now compile on windows and FreeBSDas well.To compile in windows:make OS=win32to compile in FreeBSD:gmake OS=fbsdinstallation:makemake install- Andreas T
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -