Redirect Privoxy traffic through OpenVpn The Next CEO of Stack OverflowRedirect OpenVPN...
% symbol leads to superlong (forever?) compilations
Why does standard notation not preserve intervals (visually)
Why did we only see the N-1 starfighters in one film?
Why is Miller's case titled R (Miller)?
What is the point of a new vote on May's deal when the indicative votes suggest she will not win?
forest, changing `s sep` such that it is at each second end node larger?
Is HostGator storing my password in plaintext?
Unreliable Magic - Is it worth it?
Example of a Mathematician/Physicist whose Other Publications during their PhD eclipsed their PhD Thesis
Trouble understanding the speech of overseas colleagues
Horror movie/show or scene where a horse creature opens its mouth really wide and devours a man in a stables
Only print output after finding pattern
How to safely derail a train during transit?
Where to find order of arguments for default functions
How to write the block matrix in LaTex?
Can a caster that cast Polymorph on themselves stop concentrating at any point even if their Int is low?
Why do professional authors make "consistency" mistakes? And how to avoid them?
How do I get the green key off the shelf in the Dobby level of Lego Harry Potter 2?
What does this shorthand mean?
How do spells that require an ability check vs. the caster's spell save DC work?
Why didn't Khan get resurrected in the Genesis Explosion?
How do I solve this limit?
Text adventure game code
What's the point of interval inversion?
Redirect Privoxy traffic through OpenVpn
The Next CEO of Stack OverflowRedirect OpenVPN gateway traffic to PrivoxyLimit Privoxy access with iptables to IP rangeopenvpn connection without forwarding all trafficPossible routing issues with OpenVPNOpenVPN: How to redirect traffic for just one client?Not redirecting all traffic through OpenVPN?Chain privoxy with another proxy to intercept SSL trafficproxy which sends traffic and uses dns from openvpnRoute all traffic through OpenVPN hosted on EC2Route only SSH traffic through OpenVPN
I am not sure if this is possible but I would like to route all traffic from FireFox through my OpenVpn connection with HideMyAss.
Basically the setup I have is that I am running a connection using OpenVpn through HideMyAss, I have edited the ovpn file and added "route-nopull" so that when using Chrome, IE, etc. I use my local connection, I have installed Privoxy and setup FireFox to use that proxy and what I would like to do is then have all traffic requested through just that proxy which FireFox is using use the OpenVpn connection.
Forgive me as I am quite new to this, is this possible?
proxy openvpn privoxy
bumped to the homepage by Community♦ 18 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I am not sure if this is possible but I would like to route all traffic from FireFox through my OpenVpn connection with HideMyAss.
Basically the setup I have is that I am running a connection using OpenVpn through HideMyAss, I have edited the ovpn file and added "route-nopull" so that when using Chrome, IE, etc. I use my local connection, I have installed Privoxy and setup FireFox to use that proxy and what I would like to do is then have all traffic requested through just that proxy which FireFox is using use the OpenVpn connection.
Forgive me as I am quite new to this, is this possible?
proxy openvpn privoxy
bumped to the homepage by Community♦ 18 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I am not sure if this is possible but I would like to route all traffic from FireFox through my OpenVpn connection with HideMyAss.
Basically the setup I have is that I am running a connection using OpenVpn through HideMyAss, I have edited the ovpn file and added "route-nopull" so that when using Chrome, IE, etc. I use my local connection, I have installed Privoxy and setup FireFox to use that proxy and what I would like to do is then have all traffic requested through just that proxy which FireFox is using use the OpenVpn connection.
Forgive me as I am quite new to this, is this possible?
proxy openvpn privoxy
I am not sure if this is possible but I would like to route all traffic from FireFox through my OpenVpn connection with HideMyAss.
Basically the setup I have is that I am running a connection using OpenVpn through HideMyAss, I have edited the ovpn file and added "route-nopull" so that when using Chrome, IE, etc. I use my local connection, I have installed Privoxy and setup FireFox to use that proxy and what I would like to do is then have all traffic requested through just that proxy which FireFox is using use the OpenVpn connection.
Forgive me as I am quite new to this, is this possible?
proxy openvpn privoxy
proxy openvpn privoxy
edited Jun 9 '17 at 15:05
user351711
asked Jun 9 '17 at 14:37
user351711user351711
612
612
bumped to the homepage by Community♦ 18 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 18 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
Yes it's possible. The OpenVPN works at the network level, so you can't have it on the same machine that your normal default connection works through. You can't have two default gateways on your computer and tell the proxy only to use one of them, and that's what your trying to do.
You would need to setup another machine on a separate network to do this. You would then setup your Proxy and OpenVPN on that other machine and then proxy the FireFox traffic through it.
add a comment |
In contrast to the answer of @illandous I think it's quite possible to do what you want on just a single machine. I can't give you a specific step by step tutorial, that's not what this website is about, but here are some thoughts, at least:
- Use
iptablesand leverage theownermodule (match the process via the--pidoption) to send only the traffic generated byPrivoxyto theOpenVPNgateway. - Bind
Privoxyto yourOpenVPNinterface, ensure to block access from the OpenVPN network to yourPrivoxy, and, in case the IP you're getting by the provider changes, find a way to dynamically update thePrivoxyandFirefoxconfigs to inform them about the updated IP. - ...
I guess there are more possible ways. In either case, this will need some scripting, but nothing rocket science, and I'm quite sure you'll get help if you run into specific problems. Good luck!
add a comment |
First, you really should be asking this on https://superuser.com. There are a lot more privoxy questions there.
Yes this will work and yes you can have it on the same machine.
There are three moving parts here and this post is going to be way too long if I don't freeze one of them so let's just say you're running a straight-out-of-the box vanilla privoxy, bound to 127.0.0.1 ipv4 only, port 8118.
The important openvpn options (in addition to whatever hidemyass gives you)
route-nopull and one of redirect-gateway def1 or redirect-gateway block-local.
route-nopull stops your client from accepting routes from hidemyass (they'd probably just hand you a default route, there's not much else they could do).
redirect-gateway def1 gives you a route to 0.0.0.0/1 with hidemyass as your gateway: it is slightly more specific than your existing default route on your LAN (it has a smaller mask)
the second option, redirect-gateway block-local which I would imagine you want, will block traffic to the LAN (except for VPN) while you are connected to the VPN. It does this by adding a route to 0.0.0.0/1 and a route to your LAN subnet with hidemyass as your gateway. You would not use this if you wanted to provide proxy services for other computers on your LAN, and you would configure privoxy to listen to your LAN ip address AND lo interface.
So all browsers (LAN or just you, whichever setup you prefer) that have been configured to use your local IP:8118 as a proxy server. You aren't actually doing any routing or packet forwarding here (proxying is not routing).
The third moving part, routing other stuff, I can't even address because you didn't tell us what OS you're running beyond Chrome and IE as clues. So what OS are you running?
add a comment |
While it may in fact be technically possible to do this with some effort (for example using a method suggested by @gf_ ) , unfortunately, it's also incredibly easy to get wrong, and almost impossible to verify that you got it 100% right. Going to a web page might for example load a plugin which might not be caught properly to go through the VPN.
If what you actually want to do is to be able to do private browsing through a VPN and non-private browsing on the same computer at the same time, your goal would be better served by setting up a Virtual Machine. You would then run your OpenVPN client and your private web browser instead of that VM. It'd be a lot easier as well as more secure than what you're suggesting.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
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%2fserverfault.com%2fquestions%2f854878%2fredirect-privoxy-traffic-through-openvpn%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
Yes it's possible. The OpenVPN works at the network level, so you can't have it on the same machine that your normal default connection works through. You can't have two default gateways on your computer and tell the proxy only to use one of them, and that's what your trying to do.
You would need to setup another machine on a separate network to do this. You would then setup your Proxy and OpenVPN on that other machine and then proxy the FireFox traffic through it.
add a comment |
Yes it's possible. The OpenVPN works at the network level, so you can't have it on the same machine that your normal default connection works through. You can't have two default gateways on your computer and tell the proxy only to use one of them, and that's what your trying to do.
You would need to setup another machine on a separate network to do this. You would then setup your Proxy and OpenVPN on that other machine and then proxy the FireFox traffic through it.
add a comment |
Yes it's possible. The OpenVPN works at the network level, so you can't have it on the same machine that your normal default connection works through. You can't have two default gateways on your computer and tell the proxy only to use one of them, and that's what your trying to do.
You would need to setup another machine on a separate network to do this. You would then setup your Proxy and OpenVPN on that other machine and then proxy the FireFox traffic through it.
Yes it's possible. The OpenVPN works at the network level, so you can't have it on the same machine that your normal default connection works through. You can't have two default gateways on your computer and tell the proxy only to use one of them, and that's what your trying to do.
You would need to setup another machine on a separate network to do this. You would then setup your Proxy and OpenVPN on that other machine and then proxy the FireFox traffic through it.
answered Jun 15 '17 at 12:13
illandousillandous
1376
1376
add a comment |
add a comment |
In contrast to the answer of @illandous I think it's quite possible to do what you want on just a single machine. I can't give you a specific step by step tutorial, that's not what this website is about, but here are some thoughts, at least:
- Use
iptablesand leverage theownermodule (match the process via the--pidoption) to send only the traffic generated byPrivoxyto theOpenVPNgateway. - Bind
Privoxyto yourOpenVPNinterface, ensure to block access from the OpenVPN network to yourPrivoxy, and, in case the IP you're getting by the provider changes, find a way to dynamically update thePrivoxyandFirefoxconfigs to inform them about the updated IP. - ...
I guess there are more possible ways. In either case, this will need some scripting, but nothing rocket science, and I'm quite sure you'll get help if you run into specific problems. Good luck!
add a comment |
In contrast to the answer of @illandous I think it's quite possible to do what you want on just a single machine. I can't give you a specific step by step tutorial, that's not what this website is about, but here are some thoughts, at least:
- Use
iptablesand leverage theownermodule (match the process via the--pidoption) to send only the traffic generated byPrivoxyto theOpenVPNgateway. - Bind
Privoxyto yourOpenVPNinterface, ensure to block access from the OpenVPN network to yourPrivoxy, and, in case the IP you're getting by the provider changes, find a way to dynamically update thePrivoxyandFirefoxconfigs to inform them about the updated IP. - ...
I guess there are more possible ways. In either case, this will need some scripting, but nothing rocket science, and I'm quite sure you'll get help if you run into specific problems. Good luck!
add a comment |
In contrast to the answer of @illandous I think it's quite possible to do what you want on just a single machine. I can't give you a specific step by step tutorial, that's not what this website is about, but here are some thoughts, at least:
- Use
iptablesand leverage theownermodule (match the process via the--pidoption) to send only the traffic generated byPrivoxyto theOpenVPNgateway. - Bind
Privoxyto yourOpenVPNinterface, ensure to block access from the OpenVPN network to yourPrivoxy, and, in case the IP you're getting by the provider changes, find a way to dynamically update thePrivoxyandFirefoxconfigs to inform them about the updated IP. - ...
I guess there are more possible ways. In either case, this will need some scripting, but nothing rocket science, and I'm quite sure you'll get help if you run into specific problems. Good luck!
In contrast to the answer of @illandous I think it's quite possible to do what you want on just a single machine. I can't give you a specific step by step tutorial, that's not what this website is about, but here are some thoughts, at least:
- Use
iptablesand leverage theownermodule (match the process via the--pidoption) to send only the traffic generated byPrivoxyto theOpenVPNgateway. - Bind
Privoxyto yourOpenVPNinterface, ensure to block access from the OpenVPN network to yourPrivoxy, and, in case the IP you're getting by the provider changes, find a way to dynamically update thePrivoxyandFirefoxconfigs to inform them about the updated IP. - ...
I guess there are more possible ways. In either case, this will need some scripting, but nothing rocket science, and I'm quite sure you'll get help if you run into specific problems. Good luck!
answered Jun 15 '17 at 13:27
gf_gf_
4,32221335
4,32221335
add a comment |
add a comment |
First, you really should be asking this on https://superuser.com. There are a lot more privoxy questions there.
Yes this will work and yes you can have it on the same machine.
There are three moving parts here and this post is going to be way too long if I don't freeze one of them so let's just say you're running a straight-out-of-the box vanilla privoxy, bound to 127.0.0.1 ipv4 only, port 8118.
The important openvpn options (in addition to whatever hidemyass gives you)
route-nopull and one of redirect-gateway def1 or redirect-gateway block-local.
route-nopull stops your client from accepting routes from hidemyass (they'd probably just hand you a default route, there's not much else they could do).
redirect-gateway def1 gives you a route to 0.0.0.0/1 with hidemyass as your gateway: it is slightly more specific than your existing default route on your LAN (it has a smaller mask)
the second option, redirect-gateway block-local which I would imagine you want, will block traffic to the LAN (except for VPN) while you are connected to the VPN. It does this by adding a route to 0.0.0.0/1 and a route to your LAN subnet with hidemyass as your gateway. You would not use this if you wanted to provide proxy services for other computers on your LAN, and you would configure privoxy to listen to your LAN ip address AND lo interface.
So all browsers (LAN or just you, whichever setup you prefer) that have been configured to use your local IP:8118 as a proxy server. You aren't actually doing any routing or packet forwarding here (proxying is not routing).
The third moving part, routing other stuff, I can't even address because you didn't tell us what OS you're running beyond Chrome and IE as clues. So what OS are you running?
add a comment |
First, you really should be asking this on https://superuser.com. There are a lot more privoxy questions there.
Yes this will work and yes you can have it on the same machine.
There are three moving parts here and this post is going to be way too long if I don't freeze one of them so let's just say you're running a straight-out-of-the box vanilla privoxy, bound to 127.0.0.1 ipv4 only, port 8118.
The important openvpn options (in addition to whatever hidemyass gives you)
route-nopull and one of redirect-gateway def1 or redirect-gateway block-local.
route-nopull stops your client from accepting routes from hidemyass (they'd probably just hand you a default route, there's not much else they could do).
redirect-gateway def1 gives you a route to 0.0.0.0/1 with hidemyass as your gateway: it is slightly more specific than your existing default route on your LAN (it has a smaller mask)
the second option, redirect-gateway block-local which I would imagine you want, will block traffic to the LAN (except for VPN) while you are connected to the VPN. It does this by adding a route to 0.0.0.0/1 and a route to your LAN subnet with hidemyass as your gateway. You would not use this if you wanted to provide proxy services for other computers on your LAN, and you would configure privoxy to listen to your LAN ip address AND lo interface.
So all browsers (LAN or just you, whichever setup you prefer) that have been configured to use your local IP:8118 as a proxy server. You aren't actually doing any routing or packet forwarding here (proxying is not routing).
The third moving part, routing other stuff, I can't even address because you didn't tell us what OS you're running beyond Chrome and IE as clues. So what OS are you running?
add a comment |
First, you really should be asking this on https://superuser.com. There are a lot more privoxy questions there.
Yes this will work and yes you can have it on the same machine.
There are three moving parts here and this post is going to be way too long if I don't freeze one of them so let's just say you're running a straight-out-of-the box vanilla privoxy, bound to 127.0.0.1 ipv4 only, port 8118.
The important openvpn options (in addition to whatever hidemyass gives you)
route-nopull and one of redirect-gateway def1 or redirect-gateway block-local.
route-nopull stops your client from accepting routes from hidemyass (they'd probably just hand you a default route, there's not much else they could do).
redirect-gateway def1 gives you a route to 0.0.0.0/1 with hidemyass as your gateway: it is slightly more specific than your existing default route on your LAN (it has a smaller mask)
the second option, redirect-gateway block-local which I would imagine you want, will block traffic to the LAN (except for VPN) while you are connected to the VPN. It does this by adding a route to 0.0.0.0/1 and a route to your LAN subnet with hidemyass as your gateway. You would not use this if you wanted to provide proxy services for other computers on your LAN, and you would configure privoxy to listen to your LAN ip address AND lo interface.
So all browsers (LAN or just you, whichever setup you prefer) that have been configured to use your local IP:8118 as a proxy server. You aren't actually doing any routing or packet forwarding here (proxying is not routing).
The third moving part, routing other stuff, I can't even address because you didn't tell us what OS you're running beyond Chrome and IE as clues. So what OS are you running?
First, you really should be asking this on https://superuser.com. There are a lot more privoxy questions there.
Yes this will work and yes you can have it on the same machine.
There are three moving parts here and this post is going to be way too long if I don't freeze one of them so let's just say you're running a straight-out-of-the box vanilla privoxy, bound to 127.0.0.1 ipv4 only, port 8118.
The important openvpn options (in addition to whatever hidemyass gives you)
route-nopull and one of redirect-gateway def1 or redirect-gateway block-local.
route-nopull stops your client from accepting routes from hidemyass (they'd probably just hand you a default route, there's not much else they could do).
redirect-gateway def1 gives you a route to 0.0.0.0/1 with hidemyass as your gateway: it is slightly more specific than your existing default route on your LAN (it has a smaller mask)
the second option, redirect-gateway block-local which I would imagine you want, will block traffic to the LAN (except for VPN) while you are connected to the VPN. It does this by adding a route to 0.0.0.0/1 and a route to your LAN subnet with hidemyass as your gateway. You would not use this if you wanted to provide proxy services for other computers on your LAN, and you would configure privoxy to listen to your LAN ip address AND lo interface.
So all browsers (LAN or just you, whichever setup you prefer) that have been configured to use your local IP:8118 as a proxy server. You aren't actually doing any routing or packet forwarding here (proxying is not routing).
The third moving part, routing other stuff, I can't even address because you didn't tell us what OS you're running beyond Chrome and IE as clues. So what OS are you running?
answered Jun 16 '17 at 0:51
quadruplebuckyquadruplebucky
4,5801521
4,5801521
add a comment |
add a comment |
While it may in fact be technically possible to do this with some effort (for example using a method suggested by @gf_ ) , unfortunately, it's also incredibly easy to get wrong, and almost impossible to verify that you got it 100% right. Going to a web page might for example load a plugin which might not be caught properly to go through the VPN.
If what you actually want to do is to be able to do private browsing through a VPN and non-private browsing on the same computer at the same time, your goal would be better served by setting up a Virtual Machine. You would then run your OpenVPN client and your private web browser instead of that VM. It'd be a lot easier as well as more secure than what you're suggesting.
add a comment |
While it may in fact be technically possible to do this with some effort (for example using a method suggested by @gf_ ) , unfortunately, it's also incredibly easy to get wrong, and almost impossible to verify that you got it 100% right. Going to a web page might for example load a plugin which might not be caught properly to go through the VPN.
If what you actually want to do is to be able to do private browsing through a VPN and non-private browsing on the same computer at the same time, your goal would be better served by setting up a Virtual Machine. You would then run your OpenVPN client and your private web browser instead of that VM. It'd be a lot easier as well as more secure than what you're suggesting.
add a comment |
While it may in fact be technically possible to do this with some effort (for example using a method suggested by @gf_ ) , unfortunately, it's also incredibly easy to get wrong, and almost impossible to verify that you got it 100% right. Going to a web page might for example load a plugin which might not be caught properly to go through the VPN.
If what you actually want to do is to be able to do private browsing through a VPN and non-private browsing on the same computer at the same time, your goal would be better served by setting up a Virtual Machine. You would then run your OpenVPN client and your private web browser instead of that VM. It'd be a lot easier as well as more secure than what you're suggesting.
While it may in fact be technically possible to do this with some effort (for example using a method suggested by @gf_ ) , unfortunately, it's also incredibly easy to get wrong, and almost impossible to verify that you got it 100% right. Going to a web page might for example load a plugin which might not be caught properly to go through the VPN.
If what you actually want to do is to be able to do private browsing through a VPN and non-private browsing on the same computer at the same time, your goal would be better served by setting up a Virtual Machine. You would then run your OpenVPN client and your private web browser instead of that VM. It'd be a lot easier as well as more secure than what you're suggesting.
answered Jun 18 '17 at 12:26
Per von ZweigbergkPer von Zweigbergk
2,2331019
2,2331019
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- 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%2fserverfault.com%2fquestions%2f854878%2fredirect-privoxy-traffic-through-openvpn%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