OSDN Git Service

Make the VPN rule only to originated, not forwarded, traffic.
authorLorenzo Colitti <lorenzo@google.com>
Thu, 26 Feb 2015 08:34:32 +0000 (17:34 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Fri, 27 Feb 2015 00:51:15 +0000 (09:51 +0900)
commit5ad4e98f7b566ffde39491ee4e80d4a15507f053
treef85bf1d8642cb805ca3e5232c68323b47a6eff8d
parent3667936aadcabddc708797ac38ce1ffb2f992cb3
Make the VPN rule only to originated, not forwarded, traffic.

Currently the VPN rule for the primary user will match every
forwarded packet on the system, because it specifies a UID range
that includes 0, and forwarded packets have UID 0.

Use "iif lo" to limit the rule match to locally-originated
traffic. This requires a kernel that sets the loopback ifindex.
when originating packets. Anything based on 3.10 is fine, but
devices using 3.4 will need a one-line change for IPv6.

Bug: 19500693
Change-Id: Iaab88bed62716dc1cea33b45c4e258f6b3bfc9d0
server/RouteController.cpp