Hi Olliver,

On ti, 2014-10-07 at 10:44 +0200, Olliver Schinagl wrote:
> Hey list,
> 
> for our embedded project, we are trying to use connman to take care of 
> all the basic networking.
> 
> Currently, connman is used in tethering mode to setup an access point 
> for initial configuration of the device. We use an app for that and 
> right now, it seems that connman's dhcp server uses a random IP for 
> itself (ip range is of no importance). As you can guess, on some mobile 
> OSes getting things like gateway or DHCP server information is next to 
> impossible, we can only get our own IP.
> 
> What we wanted to do, is use a dns record, connect.ultimaker.com, which 
> points at a real site to which the app can connect. If the connection 
> succeeds, something went wrong as we are not talking to the connman host 
> directly. So our first plan was to have connman's dnsproxy answer to 
> connect.ultimaker.com with its own randomly selected IP. I have found 
> out that connman however does not support injecting DNS records into its 
> cache. So first question is, does connman have a hostname that points to 
> itself to obtain the tether IP from?

I have used avahi and mdns to do just that. So the host where connman is
running is also running avahi and then that host can be connected as
your-hostname.local from tethering client.

> 
> Secondly, assuming the first thing fails, we where looking for if 
> connman has a method to redirect all traffic to a landing page of some 
> sort, wasn't wispr something used for this? This would work equally well 
> as the name resolving part I expect and allows for webbrowers to get a 
> usefull page when connected to the landing page.

No such feature exists in connman. We are only supporting wispr when
connman acts as a client.

> 
> Thirdly, we where then thinking of using a tun device, with a static IP 
> and putting that in the tether group, allowing the device always to be 
> reached on a fixed address and then disable connman's proxy cache and 
> use dnsmasq to have the dns address to the tun device IP. The question 
> here would then be, connman only uses resolv.conf to find the real dns 
> server before replacing it with itself? E.g. no port can be specified 
> right? (e.g. dnsmasq + connman living happily together, ugly but could 
> work).

If you disable connman dnsproxy, then you can run dnsmasq in the same
host.

> 
> Lastly I suppose, if nothing in the above can be used to solve this 
> issue (except for a patch which in time may come) any other thoughts of 
> tackle the problem for a connected tethering client to connect to the 
> tether host.

avahi+mdns would be the easiest choice if your client OS supports that.

> 
> Thank you,
> 
> Olliver
> 



Cheers,
Jukka


_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to