cmann123
Posts: 7
Joined: Wed Nov 15, 2017 3:35 pm

Web server on MANET

Sun Apr 29, 2018 8:57 am

Recently made a MANET with 4 pi 3 model b's using the batman routing protocol for a project at university. The stage now is to run some tests using a webserver recommended by my supervisor.

so far i have installed lighttpd on a pi by following a tutorial that also allows it to use PHP ( not sure if that was necessary but the tutorial was successful for the beginning part i needed) the tutorial is below

https://pimylifeup.com/raspberry-pi-lighttpd/

i have now been told by my supervisor to configure the server so it allows so that;

" _external_ web requests will be serviced on the interface i was which i assume will be wlan0"

computing is not my background and i cant seem to search the right terms to get the correct information, as searching is mostly pointing me to connecting my pi to wifi or to a router.

Any information would be hugely appreciated or a point in the right direction.

Cheers,

epoch1970
Posts: 5203
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: Web server on MANET

Sun Apr 29, 2018 9:49 am

I understand this means having 2 separate websites served by lighttpd, each one bound to an interface?
If so, this should help: https://www.cyberciti.biz/tips/lighttpd ... sting.html

Perhaps you could clarify your current setup: which interfaces are available, which ones does lighttpd listens to, etc.

(And for those who think Manet was a painter, in this case it stands for Mobile Adhoc NETworking.)
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

cmann123
Posts: 7
Joined: Wed Nov 15, 2017 3:35 pm

Re: Web server on MANET

Sun Apr 29, 2018 12:08 pm

So only one pi has lighttpd on it installed,

The interface used is wlan0 for the meshnet apart from this node which is using it to connect to the internet at the min.

the main aim is to be able to see the web server across the mesh network. Which i do not really have a clue what he means by this.

the pis operate on ah-hoc mode in the mesh with ip addresses 172.27.*.* and the pi that will be hosting the server is

169.254.***.*** so i am struggling how i will include that into the mesh. the step i need right now is the configuration which i am not sure about

there are not really any other interfaces available apart from eth0, which i mainly use for quickly getting in and out of other pis with headless set up.

I guess for the pi hosting the server i could use on eth0 and then that would leave the wireless wlan0 free for ad-hoc mode and connect to the rest of the mesh.

I do have a spare wireless dongle available if you think that could help.

Apologies if some of the information provided is not really relevant , i am a complete novice

Thanks guys.

epoch1970
Posts: 5203
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: Web server on MANET

Sun Apr 29, 2018 6:11 pm

So you need to setup lighttpd so that it listens to ...
- "wlan0" (don't use an IP address there, ipv4ll addresses in the 169.254.x.x range are subject to changing without warning)
- and to "bat0" (?) or to its IP address, 172.17.27.x (which is fixed I suppose, so it safe to specify it in the configuration file.)
You need a variation of the previous link, this one should do: https://redmine.lighttpd.net/boards/2/topics/2539

(that site is the homesite for lighttpd, do browse around)
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

hojstrixr
Posts: 1
Joined: Fri Mar 29, 2019 8:47 am

Re: Web server on MANET

Fri Mar 29, 2019 8:52 am

Hello, can you help me with your batman routing protocol ? :) i have some project with raspberry and adhoc network :) Thanks have a nice day

Return to “Networking and servers”