OpenVPN client with two NICs: VPN traffic through eth1, LAN traffic through eth0

 Clash Royale CLAN TAG#URR8PPP
Clash Royale CLAN TAG#URR8PPP up vote
0
down vote
favorite
I have a headless machine running Ubuntu 16.04 LTS with two network cards. Both cards have LAN (and WAN) access. I would like to connect to an OpenVPN server (which lets other clients to talk to each other) so that the tunnel goes through eth1. This way, my machine would be reachable by other machines on the 192.168.0.X LAN via eth0, and by the other VPN clients in the 10.8.0.Y network over eth1. Something like this:
LAN: 192.168.0.X <--> [eth0][my machine][eth1] <- VPN 10.8.0.Y -> other VPN clients
There is no need for the other machines on the 192.168.0.X LAN to reach the VPN clients, in other words, "my machine" does not have to be a bridge. It just has to be reachable from both networks. How can this be done (from the command line)?
networking openvpn
add a comment |Â
up vote
0
down vote
favorite
I have a headless machine running Ubuntu 16.04 LTS with two network cards. Both cards have LAN (and WAN) access. I would like to connect to an OpenVPN server (which lets other clients to talk to each other) so that the tunnel goes through eth1. This way, my machine would be reachable by other machines on the 192.168.0.X LAN via eth0, and by the other VPN clients in the 10.8.0.Y network over eth1. Something like this:
LAN: 192.168.0.X <--> [eth0][my machine][eth1] <- VPN 10.8.0.Y -> other VPN clients
There is no need for the other machines on the 192.168.0.X LAN to reach the VPN clients, in other words, "my machine" does not have to be a bridge. It just has to be reachable from both networks. How can this be done (from the command line)?
networking openvpn
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a headless machine running Ubuntu 16.04 LTS with two network cards. Both cards have LAN (and WAN) access. I would like to connect to an OpenVPN server (which lets other clients to talk to each other) so that the tunnel goes through eth1. This way, my machine would be reachable by other machines on the 192.168.0.X LAN via eth0, and by the other VPN clients in the 10.8.0.Y network over eth1. Something like this:
LAN: 192.168.0.X <--> [eth0][my machine][eth1] <- VPN 10.8.0.Y -> other VPN clients
There is no need for the other machines on the 192.168.0.X LAN to reach the VPN clients, in other words, "my machine" does not have to be a bridge. It just has to be reachable from both networks. How can this be done (from the command line)?
networking openvpn
I have a headless machine running Ubuntu 16.04 LTS with two network cards. Both cards have LAN (and WAN) access. I would like to connect to an OpenVPN server (which lets other clients to talk to each other) so that the tunnel goes through eth1. This way, my machine would be reachable by other machines on the 192.168.0.X LAN via eth0, and by the other VPN clients in the 10.8.0.Y network over eth1. Something like this:
LAN: 192.168.0.X <--> [eth0][my machine][eth1] <- VPN 10.8.0.Y -> other VPN clients
There is no need for the other machines on the 192.168.0.X LAN to reach the VPN clients, in other words, "my machine" does not have to be a bridge. It just has to be reachable from both networks. How can this be done (from the command line)?
networking openvpn
networking openvpn
asked Feb 1 at 9:36
Laryx Decidua
1064
1064
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1002025%2fopenvpn-client-with-two-nics-vpn-traffic-through-eth1-lan-traffic-through-eth0%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password