Jump to content
Not connected, Your IP: 3.15.17.60
Pepetops

Eddie and two ethernet cards

Recommended Posts

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

Share this post


Link to post

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.


NOT AN AIRVPN TEAM MEMBER. USE TICKETS FOR PROFESSIONAL SUPPORT.

LZ1's New User Guide to AirVPN « Plenty of stuff for advanced users, too!

Want to contact me directly? All relevant methods are on my About me page.

Share this post


Link to post

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.

Share this post


Link to post
Guest
This topic is now closed to further replies.

×
×
  • Create New...