run specific IP addresses or host names through OpenVPN connection
I have a PC connected to my OpenVPN server, while I'm streaming video games, the stream is interrupted, like its disconnect and reconnect again within no specific time range, sometimes it lasts for 10 minutes and some times 35 seconds, I don't know why even though:
- I'm using my local VPN server (low latency).
- I have a good internet connection with high speed.
- I'm running OpenVPN over UDP
- I'm not facing any lag while watching on e.g. youtube.
The first approach came up to my mind is running just the game through the VPN and keep everything else through my internet gateway.
Question:
How do I tell the openVPN to route e.g. only (IP.IP.IP.IP OR Hostname) through the VPN
and ignore all the other connections?
networking vpn routing openvpn
add a comment |
I have a PC connected to my OpenVPN server, while I'm streaming video games, the stream is interrupted, like its disconnect and reconnect again within no specific time range, sometimes it lasts for 10 minutes and some times 35 seconds, I don't know why even though:
- I'm using my local VPN server (low latency).
- I have a good internet connection with high speed.
- I'm running OpenVPN over UDP
- I'm not facing any lag while watching on e.g. youtube.
The first approach came up to my mind is running just the game through the VPN and keep everything else through my internet gateway.
Question:
How do I tell the openVPN to route e.g. only (IP.IP.IP.IP OR Hostname) through the VPN
and ignore all the other connections?
networking vpn routing openvpn
add a comment |
I have a PC connected to my OpenVPN server, while I'm streaming video games, the stream is interrupted, like its disconnect and reconnect again within no specific time range, sometimes it lasts for 10 minutes and some times 35 seconds, I don't know why even though:
- I'm using my local VPN server (low latency).
- I have a good internet connection with high speed.
- I'm running OpenVPN over UDP
- I'm not facing any lag while watching on e.g. youtube.
The first approach came up to my mind is running just the game through the VPN and keep everything else through my internet gateway.
Question:
How do I tell the openVPN to route e.g. only (IP.IP.IP.IP OR Hostname) through the VPN
and ignore all the other connections?
networking vpn routing openvpn
I have a PC connected to my OpenVPN server, while I'm streaming video games, the stream is interrupted, like its disconnect and reconnect again within no specific time range, sometimes it lasts for 10 minutes and some times 35 seconds, I don't know why even though:
- I'm using my local VPN server (low latency).
- I have a good internet connection with high speed.
- I'm running OpenVPN over UDP
- I'm not facing any lag while watching on e.g. youtube.
The first approach came up to my mind is running just the game through the VPN and keep everything else through my internet gateway.
Question:
How do I tell the openVPN to route e.g. only (IP.IP.IP.IP OR Hostname) through the VPN
and ignore all the other connections?
networking vpn routing openvpn
networking vpn routing openvpn
asked Jan 5 at 22:57
AdamAdam
1156
1156
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You add a "route IP.add.re.ss/netmask" line (eg route 100.1.1.1/24)for each IP address or range to your OpenVPN configuration file on the client side or "push route IP.adf.re.ss/netmask" on the server config.
thanks for your answer, what is the /24, IP range? can I just put the IP address without it?
– Adam
Jan 6 at 0:39
The /24 is an IP range (/24 being a class C). I'm not sure if you can put in just an ip, but putting IP.add.re.ss/32 would achieve the same thing - a /32 is a single IP.
– davidgo
Jan 6 at 0:41
add a comment |
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%2f1391020%2frun-specific-ip-addresses-or-host-names-through-openvpn-connection%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You add a "route IP.add.re.ss/netmask" line (eg route 100.1.1.1/24)for each IP address or range to your OpenVPN configuration file on the client side or "push route IP.adf.re.ss/netmask" on the server config.
thanks for your answer, what is the /24, IP range? can I just put the IP address without it?
– Adam
Jan 6 at 0:39
The /24 is an IP range (/24 being a class C). I'm not sure if you can put in just an ip, but putting IP.add.re.ss/32 would achieve the same thing - a /32 is a single IP.
– davidgo
Jan 6 at 0:41
add a comment |
You add a "route IP.add.re.ss/netmask" line (eg route 100.1.1.1/24)for each IP address or range to your OpenVPN configuration file on the client side or "push route IP.adf.re.ss/netmask" on the server config.
thanks for your answer, what is the /24, IP range? can I just put the IP address without it?
– Adam
Jan 6 at 0:39
The /24 is an IP range (/24 being a class C). I'm not sure if you can put in just an ip, but putting IP.add.re.ss/32 would achieve the same thing - a /32 is a single IP.
– davidgo
Jan 6 at 0:41
add a comment |
You add a "route IP.add.re.ss/netmask" line (eg route 100.1.1.1/24)for each IP address or range to your OpenVPN configuration file on the client side or "push route IP.adf.re.ss/netmask" on the server config.
You add a "route IP.add.re.ss/netmask" line (eg route 100.1.1.1/24)for each IP address or range to your OpenVPN configuration file on the client side or "push route IP.adf.re.ss/netmask" on the server config.
answered Jan 6 at 0:17
davidgodavidgo
43.5k75291
43.5k75291
thanks for your answer, what is the /24, IP range? can I just put the IP address without it?
– Adam
Jan 6 at 0:39
The /24 is an IP range (/24 being a class C). I'm not sure if you can put in just an ip, but putting IP.add.re.ss/32 would achieve the same thing - a /32 is a single IP.
– davidgo
Jan 6 at 0:41
add a comment |
thanks for your answer, what is the /24, IP range? can I just put the IP address without it?
– Adam
Jan 6 at 0:39
The /24 is an IP range (/24 being a class C). I'm not sure if you can put in just an ip, but putting IP.add.re.ss/32 would achieve the same thing - a /32 is a single IP.
– davidgo
Jan 6 at 0:41
thanks for your answer, what is the /24, IP range? can I just put the IP address without it?
– Adam
Jan 6 at 0:39
thanks for your answer, what is the /24, IP range? can I just put the IP address without it?
– Adam
Jan 6 at 0:39
The /24 is an IP range (/24 being a class C). I'm not sure if you can put in just an ip, but putting IP.add.re.ss/32 would achieve the same thing - a /32 is a single IP.
– davidgo
Jan 6 at 0:41
The /24 is an IP range (/24 being a class C). I'm not sure if you can put in just an ip, but putting IP.add.re.ss/32 would achieve the same thing - a /32 is a single IP.
– davidgo
Jan 6 at 0:41
add a comment |
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%2f1391020%2frun-specific-ip-addresses-or-host-names-through-openvpn-connection%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