LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-24-2007, 12:50 PM   #16
dnoy
Member
 
Registered: Nov 2007
Posts: 69

Original Poster
Rep: Reputation: 15

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
 
Old 12-29-2007, 09:15 AM   #17
s3gfault
LQ Newbie
 
Registered: Dec 2007
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by dnoy View Post
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
The OS is not proxy aware. Each application must have it's own support for using a proxy. Some applications may be checking your http_proxy enviroment variable, but i don't believe apache will. So even if you execute apache with, say,
Code:
HTTP_PROXY="hostname:port" httpd
command line your rss feeds will still be borked.

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.
 
Old 08-29-2011, 08:16 AM   #18
pgibsonorg
LQ Newbie
 
Registered: Aug 2011
Posts: 8

Rep: Reputation: Disabled
Quote:
Originally Posted by Tinkster View Post
I suggest you go to wikipedia and read up on the words router and proxy,
then find out what 192.168.0.1 *really* is, and then come back with a
well-formed and thought-through question ....
I think it's very arrogant and annoying the way this question is shot down.
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?
 
Old 08-29-2011, 01:27 PM   #19
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Quote:
Originally Posted by pgibsonorg View Post
I think it's very arrogant and annoying the way this question is shot down.
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?
please don't drag up dead threads, it gets very confusing. Please start a new thread for your own queries.
 
Old 09-03-2011, 04:03 PM   #20
pgibsonorg
LQ Newbie
 
Registered: Aug 2011
Posts: 8

Rep: Reputation: Disabled
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
 
Old 10-11-2014, 11:25 PM   #21
iobsd
LQ Newbie
 
Registered: Oct 2014
Posts: 1

Rep: Reputation: Disabled
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.
 
Old 09-17-2016, 08:03 PM   #22
samarth_math
LQ Newbie
 
Registered: Sep 2016
Posts: 2

Rep: Reputation: Disabled
Smile 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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
routing traffic from one interface to another a550ee Linux - Networking 0 07-08-2007 04:28 PM
All internet traffic needs to go through a proxy! yumingtian Linux - Networking 3 08-29-2005 09:36 PM
routing traffic out different eth#?? cjs500 Linux - Networking 3 07-11-2005 01:59 AM
Routing traffic fuelinjection Linux - Networking 3 04-01-2005 06:51 PM
inbound traffic routing beowulfde Linux - Networking 2 02-20-2005 05:47 PM


All times are GMT -5. The time now is 02:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration