Discussion:
olsrd txtinfo plugin
Lorenzo Salvatore
2014-02-02 21:59:37 UTC
Permalink
Hi,I'm running olsrd, the stable 0.6.6.1 version, on a Nexus 7. I'm interested in trying to simply extending the secure plugin in a way I'm still deciding for my thesis. I've cross compiled olsrd on linux for android os, I've added secure plugin, transferred everything on the Nexus 7 and it worked perfectly also in communicating with another secure device. For a better understanding I've decided to add also the TXTINFO plugin. Builded, transferred, putted in the conf file and it runs. The problem is that when I try to connect to TXTINFO with my browser i get this error
(TXTINFO) Connect from 127.0.0.1 Aborted
It's a well known problem on android, nexus 7 or in combo with secure plugin, is a bug or is my fault?
Here the conf file. Here you can see static port and address, but I've tried also with no parameter and 0.0.0.0 address.

IpVersion 4
LoadPlugin "/data/local/olsrd_secure.so.0.6"{ PlParam "Keyfile" "/data/local/secure_key"}
LoadPlugin "/data/local/olsrd_txtinfo.so.0.1"{ PlParam "port" "2006" PlParam "accept" "127.0.0.1"}
Interface "wlan0" {}


And here the starting of olsrd on android shell


*** olsr.org - 0.6.6.1-git_0000000-hash_b9921fd17fb79767a975de65021f4157 *** Build date: 2014-01-18 17:46:01 on assembler http://www.olsr.org
Parsing file: "/data/local/olsrd.conf"IpVersion: 4Plugin: /data/local/olsrd_secure.so.0.6Plugin param key:"Keyfile" val: "/data/local/secure_key"Plugin: /data/local/olsrd_txtinfo.so.0.1Plugin param key:"port" val: "2006"Plugin param key:"accept" val: "127.0.0.1"setting ifs_in_curr_cfg = 0 IPv4 broadcast/multicast : AUTO Mode : mesh IPv6 multicast : :: HELLO emission/validity : 0.00/0.00 TC emission/validity : 0.00/0.00 MID emission/validity : 0.00/0.00 HNA emission/validity : 0.00/0.00 Autodetect changes : no *** olsrd configuration ***Debug Level : 3IpVersion : 4No interfaces : ALLOWEDTOS : 0xc0OlsrPort : 698RtTable : 254RtTableDefault : 254RtTableTunnel : 254Willingness : 3IPC connections : 0Pollrate : 0.05NIC ChangPollrate: 2.50TC redundancy : 2MPR coverage : 7LQ level : 2LQ fish eye : 1LQ aging factor : 0.050000LQ algorithm name: defaultNAT threshold : 1.000000Clear screen : yesUse niit : yesSmart Gateway : noSmGw. Del Srv Tun: noSmGw. Use Count : 1SmGw. Takedown% : 25SmGw. Pol. Script: (null)SmGw. Egress I/Fs:SmGw. Mark Egress: 91SmGw. Mark Tunnel: 101SmGw. Allow NAT : yesSmGw. period : 10000SmGw. stablecount: 6SmGw. threshold : 0%Smart Gw. Uplink : bothSmGw. Uplink NAT : yesSmart Gw. speed : 128 kbit/s up, 1024 kbit/s down# Smart Gw. prefix : ::/0 InterfaceDefaults: IPv4 broadcast/multicast : AUTO Mode : mesh IPv6 multicast : ff02::6d HELLO emission/validity : 2.00/20.00 TC emission/validity : 5.00/300.00 MID emission/validity : 5.00/300.00 HNA emission/validity : 5.00/300.00 Autodetect changes : yes dev: "wlan0" IPv4 broadcast/multicast : AUTO (d) Mode : mesh (d) IPv6 multicast : ff02::6d (d) HELLO emission/validity : 2.00 (d)/20.00 (d) TC emission/validity : 5.00 (d)/300.00 (d) MID emission/validity : 5.00 (d)/300.00 (d) HNA emission/validity : 5.00 (d)/300.00 (d) Autodetect changes : yes (d)Plugins: Name: "/data/local/olsrd_txtinfo.so.0.1" Name: "/data/local/olsrd_secure.so.0.6"Not using hysteresisAdding OLSR socket entry 5Initializing parser...Parser: registering event for type 201Register parse function: Added function for type 201Parser: registering event for type 202Register parse function: Added function for type 202Parser: registering event for type 3Register parse function: Added function for type 3Parser: registering event for type 4Register parse function: Added function for type 4Added 0.0.0.0 to IP deny setAdded 127.0.0.1 to IP deny set
---- Interface configuration ----
Checking wlan0: Wireless interface detected Metric: 1 MTU - IPhdr: 1472 Index 6 Address:192.168.10.10 Netmask:255.255.255.0 *** olsr.org - 0.6.6.1-git_0000000-hash_b9921fd17fb79767a975de65021f4157 (2014-01-18 17:46:01 on assembler) ***TIMER: jitter 5% rel_time 1000ms to 995msSPF: insert candidate 192.168.10.10, cost 0.000SPF: exploring node 192.168.10.10, cost 0.000SPF: delete candidate 192.168.10.10, cost 0.000SPF: append path 192.168.10.10, cost 0.000, via -
--- 18:28:15.742607 ------------------------------------------------- DIJKSTRA
Updating kernel routes...
--- 18:28:15.744009 ------------------------------------------------- MID

--- 18:28:15.744107 ---------------------------------------------------- GATEWAYS
IP address Type Uplink Downlink
--- 18:28:15.744228 ---------------------------------------------------- LINKS
IP address hyst LQ ETX
--- 18:28:15.74 ------------------------------------------------ NEIGHBORS
IP address LQ NLQ SYM MPR MPRS will
--- 18:28:15.744472 ----------------------- TWO-HOP NEIGHBORS
Michel Blais
2014-02-03 04:57:33 UTC
Permalink
--
Olsr-users mailing list
Olsr-***@lists.olsr.org
https://lists.olsr.org/mailman/listinfo/olsr-users
Lorenzo Salvatore
2014-02-03 23:10:35 UTC
Permalink
Thanks for the advice. Httpinfo runs perfectly on android, giving also a more user friendly environment.
Anyway, the behaviour of txtinfo could be a bug that must be reported?
________________________________
> Date: Sun, 2 Feb 2014 23:57:33 -0500
> Subject: Re: [Olsr-users] olsrd txtinfo plugin
> From: ***@targointernet.com
> To: ***@hotmail.it; olsr-***@lists.olsr.org
>
> Add httpinfo instead for access via à browser‎. txtinfo is for use with
> CLI tool like nc or telnet.
>
> De: Lorenzo Salvatore
> Envoyé: dimanche 2 février 2014 17:03
> À: olsr-***@lists.olsr.org
> Objet: [Olsr-users] olsrd txtinfo plugin
>
>
> Hi,
> I'm running olsrd, the stable 0.6.6.1 version, on a Nexus 7. I'm
> interested in trying to simply extending the secure plugin in a way I'm
> still deciding for my thesis. I've cross compiled olsrd on linux for
> android os, I've added secure plugin, transferred everything on the
> Nexus 7 and it worked perfectly also in communicating with another
> secure device. For a better understanding I've decided to add also the
> TXTINFO plugin. Builded, transferred, putted in the conf file and it
> runs. The problem is that when I try to connect to TXTINFO with my
> browser i get this error
>
> (TXTINFO) Connect from 127.0.0.1
> Aborted
>
> It's a well known problem on android, nexus 7 or in combo with secure
> plugin, is a bug or is my fault?
>
> Here the conf file. Here you can see static port and address, but I've
> tried also with no parameter and 0.0.0.0 address.
>
>
> IpVersion 4
>
> LoadPlugin "/data/local/olsrd_secure.so.0.6"
> {
> PlParam "Keyfile" "/data/local/secure_key"
> }
>
> LoadPlugin "/data/local/olsrd_txtinfo.so.0.1"
> {
> PlParam "port" "2006"
> PlParam "accept" "127.0.0.1"
> }
>
> Interface "wlan0" {
> }
>
>
>
> And here the starting of olsrd on android shell
>
>
>
> *** olsr.org -
> 0.6.6.1-git_0000000-hash_b9921fd17fb79767a975de65021f4157 ***
> Build date: 2014-01-18 17:46:01 on assembler
> http://www.olsr.org
>
> Parsing file: "/data/local/olsrd.conf"
> IpVersion: 4
> Plugin: /data/local/olsrd_secure.so.0.6
> Plugin param key:"Keyfile" val: "/data/local/secure_key"
> Plugin: /data/local/olsrd_txtinfo.so.0.1
> Plugin param key:"port" val: "2006"
> Plugin param key:"accept" val: "127.0.0.1"
> setting ifs_in_curr_cfg = 0
> IPv4 broadcast/multicast : AUTO
> Mode : mesh
> IPv6 multicast : ::
> HELLO emission/validity : 0.00/0.00
> TC emission/validity : 0.00/0.00
> MID emission/validity : 0.00/0.00
> HNA emission/validity : 0.00/0.00
> Autodetect changes : no
> *** olsrd configuration ***
> Debug Level : 3
> IpVersion : 4
> No interfaces : ALLOWED
> TOS : 0xc0
> OlsrPort : 698
> RtTable : 254
> RtTableDefault : 254
> RtTableTunnel : 254
> Willingness : 3
> IPC connections : 0
> Pollrate : 0.05
> NIC ChangPollrate: 2.50
> TC redundancy : 2
> MPR coverage : 7
> LQ level : 2
> LQ fish eye : 1
> LQ aging factor : 0.050000
> LQ algorithm name: default
> NAT threshold : 1.000000
> Clear screen : yes
> Use niit : yes
> Smart Gateway : no
> SmGw. Del Srv Tun: no
> SmGw. Use Count : 1
> SmGw. Takedown% : 25
> SmGw. Pol. Script: (null)
> SmGw. Egress I/Fs:
> SmGw. Mark Egress: 91
> SmGw. Mark Tunnel: 101
> SmGw. Allow NAT : yes
> SmGw. period : 10000
> SmGw. stablecount: 6
> SmGw. threshold : 0%
> Smart Gw. Uplink : both
> SmGw. Uplink NAT : yes
> Smart Gw. speed : 128 kbit/s up, 1024 kbit/s down
> # Smart Gw. prefix : ::/0
> InterfaceDefaults:
> IPv4 broadcast/multicast : AUTO
> Mode : mesh
> IPv6 multicast : ff02::6d
> HELLO emission/validity : 2.00/20.00
> TC emission/validity : 5.00/300.00
> MID emission/validity : 5.00/300.00
> HNA emission/validity : 5.00/300.00
> Autodetect changes : yes
> dev: "wlan0"
> IPv4 broadcast/multicast : AUTO (d)
> Mode : mesh (d)
> IPv6 multicast : ff02::6d (d)
> HELLO emission/validity : 2.00 (d)/20.00 (d)
> TC emission/validity : 5.00 (d)/300.00 (d)
> MID emission/validity : 5.00 (d)/300.00 (d)
> HNA emission/validity : 5.00 (d)/300.00 (d)
> Autodetect changes : yes (d)
> Plugins:
> Name: "/data/local/olsrd_txtinfo.so.0.1"
> Name: "/data/local/olsrd_secure.so.0.6"
> Not using hysteresis
> Adding OLSR socket entry 5
> Initializing parser...
> Parser: registering event for type 201
> Register parse function: Added function for type 201
> Parser: registering event for type 202
> Register parse function: Added function for type 202
> Parser: registering event for type 3
> Register parse function: Added function for type 3
> Parser: registering event for type 4
> Register parse function: Added function for type 4
> Added 0.0.0.0 to IP deny set
> Added 127.0.0.1 to IP deny set
>
> ---- Interface configuration ----
>
> Checking wlan0:
> Wireless interface detected
> Metric: 1
> MTU - IPhdr: 1472
> Index 6
> Address:192.168.10.10
> Netmask:255.255.255.0
> *** olsr.org -
> 0.6.6.1-git_0000000-hash_b9921fd17fb79767a975de65021f4157 (2014-01-18
> 17:46:01 on assembler) ***
> TIMER: jitter 5% rel_time 1000ms to 995ms
> SPF: insert candidate 192.168.10.10, cost 0.000
> SPF: exploring node 192.168.10.10, cost 0.000
> SPF: delete candidate 192.168.10.10, cost 0.000
> SPF: append path 192.168.10.10, cost 0.000, via -
>
> --- 18:28:15.742607 -------------------------------------------------
> DIJKSTRA
>
> Updating kernel routes...
>
> --- 18:28:15.744009 ------------------------------------------------- MID
>
>
> --- 18:28:15.744107
> ---------------------------------------------------- GATEWAYS
>
> IP address Type Uplink Downlink
>
> --- 18:28:15.744228
> ---------------------------------------------------- LINKS
>
> IP address hyst LQ ETX
>
> --- 18:28:15.74 ------------------------------------------------ NEIGHBORS
>
> IP address LQ NLQ SYM MPR MPRS will
>
> --- 18:28:15.744472 ----------------------- TWO-HOP NEIGHBORS
>
>
--
Olsr-users mailing list
Olsr-***@lists.ol
Henning Rogge
2014-02-04 06:22:06 UTC
Permalink
On 02/04/2014 12:10 AM, Lorenzo Salvatore wrote:
> Thanks for the advice. Httpinfo runs perfectly on android, giving also a more user friendly environment.
> Anyway, the behaviour of txtinfo could be a bug that must be reported?
The txtinfo is written to interface with telnet, netcat and maybe
primitive HTTP clients like wget. It does not understand HTTP headers
and just use a pattern matching to discover the command in the input.

Henning Rogge

--
Diplom-Informatiker Henning Rogge , Fraunhofer-Institut fÃŒr
Kommunikation, Informationsverarbeitung und Ergonomie FKIE
Kommunikationssysteme (KOM)
Fraunhofer Straße 20, 53343 Wachtberg, Germany
Telefon +49 228 9435-961, Fax +49 228 9435 685
mailto:***@fkie.fraunhofer.de http://www.fkie.fraunhofer.de
Loading...