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?
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.
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).
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.
Thank you,
Olliver
--
Met vriendelijke groeten, Kind regards, 与亲切的问候
Olliver Schinagl
Research & Development
Ultimaker B.V.
http://www.ultimaker.com
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman