Jump to content


Photo

Eddie and two ethernet cards


  • Please log in to reply
2 replies to this topic

#1 Pepetops

Pepetops

    Member

  • Members
  • PipPip
  • 21 posts

Posted 20 January 2018 - 11:34 AM

Hi all.
If I have two nics in the same PC is possible connect Eddie only to one of them and use the other for Internet without VPN?
Thanks

#2 giganerd

giganerd

    I shall have no title

  • Members
  • PipPipPip
  • 2520 posts
  • LocationGermany

Posted 24 January 2018 - 11:05 PM

I was confronted with the same problem on one of my servers and found out that with iproute2 on GNU/Linux it's possible to create additional routing tables and assign them to different interfaces. The complication I see is that OpenVPN only ever writes to the default/first one. My research did not reveal any ways to make it do otherwise by means of configuration, but I'm open for any hints in docs and code.


Always remember:
There's a guide to AirVPN,

Amazon IPs are not dangerous here,
running TOR exits is discouraged,

using spoilers for your logs is the proper way to heaven.
Same issues are rare! Search for solutions and if not successful open your own threads.

~ Furthermore, I propose that your paranoia is to be destroyed. ~

 


#3 zhang888

zhang888

    Donald Trump of IT/Security

  • Moderators
  • 2214 posts

Posted 25 January 2018 - 02:50 AM

Technically it's possible, and even quite easy, it's called policy based routing:

https://community.openvpn.net/openvpn/wiki/Concepts-PolicyRouting-Linux

https://github.com/RMerl/asuswrt-merlin/wiki/Policy-based-routing

 

The more important question is, how are you going to decide which apps would use

which interface, if they don't natively support it.

One of the common ways to do it is by using Linux Namespaces or cgroups, and instructing

each app to be using a different interface by making specific rules for it.

Some more info:

https://superuser.com/questions/271915/route-the-traffic-over-specific-interface-for-a-process-in-linux


Occasional moderator, sometimes BOFH. Opinions are my own, except when my wife disagrees.






Similar Topics Collapse

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Servers online. Online Sessions: 14577 - BW: 46099 Mbit/sYour IP: 54.224.56.126Guest Access.