VPN breaks connectivity between 2 NICs on 3 NIC machine
My current working setup is as follows:
Linux machine with 2 NICs (eth0 and wlan0) sitting behind a wireless router. Let's call this machine PC1.
connected to eth0 on PC1 is PC2 (Windows).
wireless router is 192.168.0.1 and wlan0 is 192.168.0.xxx.
eth0 is 10.42.0.1 and PC2 is at 10.42.0.xxx.
I have successfully used this setup to establish an OpenVPN connection (by right-clicking on a config file) from PC2 to an external server. That is, the connection goes through eth0 to the wireless router. Starting VPN creates on PC2 a virtual network adapter at 10.7.112.xxx with a gateway at 10.7.112.1.
So far, so good.
Problems started after I added eth1 to PC1. Its IP address is 192.168.1.1. Connected to it is PC3 at 192.168.1.xxx.
What kind of problems?
I can access PC2 from PC3 and the other way around unless I establish a VPN connection from PC2. After I do, PC2 and PC3 cannot see each other anymore unless I disconnect VPN, getting rid of the 10.7.112.xxx virtual adapter. Then, connectivity restores immediately.
I made sure, there's no active firewall rules.
The subnet masks on all of the above are 255.255.255.0. Does that matter?
What do I have to change to make the 3-NIC setup work as well as the 2-NIC one? Please do not suggest changing the layout - I need to understand what exactly is wrong with the current routing.
Thank you!
networking vpn
add a comment |
My current working setup is as follows:
Linux machine with 2 NICs (eth0 and wlan0) sitting behind a wireless router. Let's call this machine PC1.
connected to eth0 on PC1 is PC2 (Windows).
wireless router is 192.168.0.1 and wlan0 is 192.168.0.xxx.
eth0 is 10.42.0.1 and PC2 is at 10.42.0.xxx.
I have successfully used this setup to establish an OpenVPN connection (by right-clicking on a config file) from PC2 to an external server. That is, the connection goes through eth0 to the wireless router. Starting VPN creates on PC2 a virtual network adapter at 10.7.112.xxx with a gateway at 10.7.112.1.
So far, so good.
Problems started after I added eth1 to PC1. Its IP address is 192.168.1.1. Connected to it is PC3 at 192.168.1.xxx.
What kind of problems?
I can access PC2 from PC3 and the other way around unless I establish a VPN connection from PC2. After I do, PC2 and PC3 cannot see each other anymore unless I disconnect VPN, getting rid of the 10.7.112.xxx virtual adapter. Then, connectivity restores immediately.
I made sure, there's no active firewall rules.
The subnet masks on all of the above are 255.255.255.0. Does that matter?
What do I have to change to make the 3-NIC setup work as well as the 2-NIC one? Please do not suggest changing the layout - I need to understand what exactly is wrong with the current routing.
Thank you!
networking vpn
What VPN software are you using? What does PC2's routing table contain before and after establishing the VPN connection?
– grawity
Jan 21 at 8:08
No other software but the OpenVPN client. I use a config file from my VPN provider to connect and then just Ctrl+C to disconnect. I have the routing table pre and post - VPN. Which entries should I provide?
– vanhemt
Jan 21 at 12:55
@grawity: by 'OpenVPN client', I mean the Private Tunnel downloaded from openvpn.net. Works in terminal mode.
– vanhemt
Jan 21 at 12:58
@grawity: Okay, I can see that Default Gateway changes after starting VPN from 10.42.0.1 to 10.7.112.1 - could that be a problem?
– vanhemt
Jan 21 at 13:04
add a comment |
My current working setup is as follows:
Linux machine with 2 NICs (eth0 and wlan0) sitting behind a wireless router. Let's call this machine PC1.
connected to eth0 on PC1 is PC2 (Windows).
wireless router is 192.168.0.1 and wlan0 is 192.168.0.xxx.
eth0 is 10.42.0.1 and PC2 is at 10.42.0.xxx.
I have successfully used this setup to establish an OpenVPN connection (by right-clicking on a config file) from PC2 to an external server. That is, the connection goes through eth0 to the wireless router. Starting VPN creates on PC2 a virtual network adapter at 10.7.112.xxx with a gateway at 10.7.112.1.
So far, so good.
Problems started after I added eth1 to PC1. Its IP address is 192.168.1.1. Connected to it is PC3 at 192.168.1.xxx.
What kind of problems?
I can access PC2 from PC3 and the other way around unless I establish a VPN connection from PC2. After I do, PC2 and PC3 cannot see each other anymore unless I disconnect VPN, getting rid of the 10.7.112.xxx virtual adapter. Then, connectivity restores immediately.
I made sure, there's no active firewall rules.
The subnet masks on all of the above are 255.255.255.0. Does that matter?
What do I have to change to make the 3-NIC setup work as well as the 2-NIC one? Please do not suggest changing the layout - I need to understand what exactly is wrong with the current routing.
Thank you!
networking vpn
My current working setup is as follows:
Linux machine with 2 NICs (eth0 and wlan0) sitting behind a wireless router. Let's call this machine PC1.
connected to eth0 on PC1 is PC2 (Windows).
wireless router is 192.168.0.1 and wlan0 is 192.168.0.xxx.
eth0 is 10.42.0.1 and PC2 is at 10.42.0.xxx.
I have successfully used this setup to establish an OpenVPN connection (by right-clicking on a config file) from PC2 to an external server. That is, the connection goes through eth0 to the wireless router. Starting VPN creates on PC2 a virtual network adapter at 10.7.112.xxx with a gateway at 10.7.112.1.
So far, so good.
Problems started after I added eth1 to PC1. Its IP address is 192.168.1.1. Connected to it is PC3 at 192.168.1.xxx.
What kind of problems?
I can access PC2 from PC3 and the other way around unless I establish a VPN connection from PC2. After I do, PC2 and PC3 cannot see each other anymore unless I disconnect VPN, getting rid of the 10.7.112.xxx virtual adapter. Then, connectivity restores immediately.
I made sure, there's no active firewall rules.
The subnet masks on all of the above are 255.255.255.0. Does that matter?
What do I have to change to make the 3-NIC setup work as well as the 2-NIC one? Please do not suggest changing the layout - I need to understand what exactly is wrong with the current routing.
Thank you!
networking vpn
networking vpn
asked Jan 21 at 7:40
vanhemtvanhemt
112
112
What VPN software are you using? What does PC2's routing table contain before and after establishing the VPN connection?
– grawity
Jan 21 at 8:08
No other software but the OpenVPN client. I use a config file from my VPN provider to connect and then just Ctrl+C to disconnect. I have the routing table pre and post - VPN. Which entries should I provide?
– vanhemt
Jan 21 at 12:55
@grawity: by 'OpenVPN client', I mean the Private Tunnel downloaded from openvpn.net. Works in terminal mode.
– vanhemt
Jan 21 at 12:58
@grawity: Okay, I can see that Default Gateway changes after starting VPN from 10.42.0.1 to 10.7.112.1 - could that be a problem?
– vanhemt
Jan 21 at 13:04
add a comment |
What VPN software are you using? What does PC2's routing table contain before and after establishing the VPN connection?
– grawity
Jan 21 at 8:08
No other software but the OpenVPN client. I use a config file from my VPN provider to connect and then just Ctrl+C to disconnect. I have the routing table pre and post - VPN. Which entries should I provide?
– vanhemt
Jan 21 at 12:55
@grawity: by 'OpenVPN client', I mean the Private Tunnel downloaded from openvpn.net. Works in terminal mode.
– vanhemt
Jan 21 at 12:58
@grawity: Okay, I can see that Default Gateway changes after starting VPN from 10.42.0.1 to 10.7.112.1 - could that be a problem?
– vanhemt
Jan 21 at 13:04
What VPN software are you using? What does PC2's routing table contain before and after establishing the VPN connection?
– grawity
Jan 21 at 8:08
What VPN software are you using? What does PC2's routing table contain before and after establishing the VPN connection?
– grawity
Jan 21 at 8:08
No other software but the OpenVPN client. I use a config file from my VPN provider to connect and then just Ctrl+C to disconnect. I have the routing table pre and post - VPN. Which entries should I provide?
– vanhemt
Jan 21 at 12:55
No other software but the OpenVPN client. I use a config file from my VPN provider to connect and then just Ctrl+C to disconnect. I have the routing table pre and post - VPN. Which entries should I provide?
– vanhemt
Jan 21 at 12:55
@grawity: by 'OpenVPN client', I mean the Private Tunnel downloaded from openvpn.net. Works in terminal mode.
– vanhemt
Jan 21 at 12:58
@grawity: by 'OpenVPN client', I mean the Private Tunnel downloaded from openvpn.net. Works in terminal mode.
– vanhemt
Jan 21 at 12:58
@grawity: Okay, I can see that Default Gateway changes after starting VPN from 10.42.0.1 to 10.7.112.1 - could that be a problem?
– vanhemt
Jan 21 at 13:04
@grawity: Okay, I can see that Default Gateway changes after starting VPN from 10.42.0.1 to 10.7.112.1 - could that be a problem?
– vanhemt
Jan 21 at 13:04
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1396505%2fvpn-breaks-connectivity-between-2-nics-on-3-nic-machine%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1396505%2fvpn-breaks-connectivity-between-2-nics-on-3-nic-machine%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What VPN software are you using? What does PC2's routing table contain before and after establishing the VPN connection?
– grawity
Jan 21 at 8:08
No other software but the OpenVPN client. I use a config file from my VPN provider to connect and then just Ctrl+C to disconnect. I have the routing table pre and post - VPN. Which entries should I provide?
– vanhemt
Jan 21 at 12:55
@grawity: by 'OpenVPN client', I mean the Private Tunnel downloaded from openvpn.net. Works in terminal mode.
– vanhemt
Jan 21 at 12:58
@grawity: Okay, I can see that Default Gateway changes after starting VPN from 10.42.0.1 to 10.7.112.1 - could that be a problem?
– vanhemt
Jan 21 at 13:04