K
K
Konstantin Dolinin2014-03-22 12:50:00
linux
Konstantin Dolinin, 2014-03-22 12:50:00

How to specify a network interface name for an individual application?

Situation: a computer with a 3G modem plugged into it (ppp0) and connected to a certain router (eth0). For the first, pppd is used, for the second, NetworkManager.
How to make, for example, Chromium go to the Internet through ppp0, and not through eth0?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Puma Thailand, 2014-03-22
@opium

Through iptables, you can mark the packets of a specific application,
then create a separate routing table for the marked packets and route it to the interface you need.
in general, not the easiest way, and earlier, certain iptables extension packages were needed for this, the
second way to register a proxy in chrome and throw the route to the proxy on the desired interface one line with
ip route add bla bla lba

B
brutal_lobster, 2014-08-15
@brutal_lobster

Look towards network namespaces.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question