acid_kewpie, youre right i just keep writing these posts too fast.
BTW, do you know a way to set the global environment so everything uses this? So far i have edited the following with no luck: /etc/profile /etc/environment I have an apache server that has rss fees setup and it needs to get those pages (http traffic). I have read other posts with no effective answers on implementing global environments so everyone will use it (www-data). Again sorry for the all traffic |
Quote:
Code:
HTTP_PROXY="hostname:port" httpd Luckily you should be able to load mod_proxy.so and maybe a few other modules (mod_proxy_http.so?) and set up proxy directives in httpd.conf. Check apache's documentation for this. |
Quote:
In terms that might be more understood: I have a computer with 2 NIC's I have dhcpd and a switch... I want all traffic passing through this computer to be 'proxified' whether it's via tor, via vpn, or w/e, I want the traffic to not originate from my ISP. How do I do this transparently with no configuration on the client side? |
Quote:
|
This post is the first or second hit in google for questions like this so it might be nice to have it answered here rather than in another post...
http://www.google.com/search?q=route...hrough+a+proxy |
Discouraged
As a person of authority within the UNIX / linux community, I believe it is moderator responsibility to help those with a lesser understanding of the subject than themselves. I was surprised in reading this form, I found the responses to be more degrading than educational. We need to get over our superiority complex, individual knowledge may vary and not everyone will be as educated as yourself. It is our responsibility as members of the UNIX / linux community to help educate those around us. Such behavior is counter-productive to those who wish to further their understanding.
|
Here's the answer :
https://samtinkers.wordpress.com/my-glossary-of-useful-commands/
sudo route add -net <network-address-to-bypass:172.22.0.0> netmask <as per netwok address : 255.255.0.0> gw <router/gateway-address :10.0.0.1> – to edit iptables to let packets addressed to a certain network go through the normal gateway, (useful for VPN where all traffic is routed through an external gateway) hey, here's an answer. I used to use this in my college time. Basically the gateway is where you enter the local IP of the thing you wanna direct your traffic to. If you have a basic knowledge of networks, you'd figure out the first two parts. That's for directing only a part of your traffic through a gateway. In order to direct ALL the traffic : sudo route add default gw 192.168.0.1 |
Clarification
Quote:
Quote:
This means a proxy can be used for *any* traffic you like. What the quoted person (and probably also the thread poster) was likely referring to is an under-category of a proxy: A HTTP(s) or SOCKS Proxy which indeed is only meant for specific HTTP traffic. I know this post is 15 years old but I could not resist clarifying this, as this is still the first result appearing if someone searches "linux proxy route all traffic". |
Here's something else acid_kewpie wrote - 11 years ago:
Quote:
|
Quote:
|
All times are GMT -5. The time now is 02:42 AM. |