Actually we have just a cellular connection. So this means connman itself
cannot update routing tables?
On Jan 24, 2017 2:32 PM, "Daryl Nebrich" <darylnebrich(a)gmail.com> wrote:
Do you have multiple connections? I have both wifi and cellular. So,
yes, I had to setup the connman session policies to configure what
processes use which interface. The doc/session-policy-format.txt file
describes the policy files. You can setup AllowedBearers (wifi,
cellular, or both for example) and map them to a uid or gid. After
setting up the policies, be sure to enable the session-policy plugin
and then call the dbus session APIs to create the sessions. I
modified the test-session python script (installed to
/usr/lib/connman/test if enabled) to call the connman dbus session API
to create the sessions, which then load the policy files.
The end result is you get routing tables setup that are mapped to a
uid or gid. The latest code supports both iptables and nftables, I'm
using iptables. So I can run "iptables -S -t mangle" and see the uid
or gid marks setup. And then run "ip route show table 0x.." to view
the specific routing table.
And then of course you have to run the process using the uid or gid
you put in the session policy files.
On Tue, Jan 24, 2017 at 3:23 PM, Naveen Kumar Danturi
After establishing a cellular data via particular apn, does user need to
explicitly update routing tables to make data traffic flow in the MNO
provided ip address route ? or will connman automatically updates once
ofono informs that cellular data connection is established ?
Really appreciate if some one can share the interactions/call flows
connman/ofono for cellular connectivity.
connman mailing list