1827221 Members
2247 Online
109716 Solutions
New Discussion

Port Redirect

 
Gumeni
Contributor

Port Redirect

I need to redirect all http traffic from my network to Internet, to a proxy server that is different from firewall server after following schema:
Source: 0.0.0.0/80 -> Destination: 1.2.3.4/8080
(where 1.2.3.4 is IP of the proxy server).
I am using RedHat 6.1.
2 REPLIES 2
Albert E. Whale, CISSP
Honored Contributor

Re: Port Redirect

Gumeni,

The simplest way to perform this is to redirect your http traffic to the other server.

This is easily accomplished viat the redirect command. Edit your/etc/httpd/conf/httpd.conf file and add the following statement to the end of the file:

redirect / http://1.2.3.4:8080

Then issue a

/etc/rc.d/init.d/httpd restart

This will allow the Httpd daemons to refresh and reread the configuration.

You could also accomplish this via the WebMin interface at http://localhost:901

Hope that helps.

Have a Great Day!
Sr. Systems Consultant @ ABS Computer Technology, Inc. http://www.abs-comptech.com/aewhale.html & http://www.ancegroup.com
Kofi ARTHIABAH
Honored Contributor

Re: Port Redirect

Some ideas:

consider using "redir"
http://www.linux.org/apps/AppId_865.html

-consider using "squid"
http://www.linux.org/apps/AppId_6667.html

good luck.
nothing wrong with me that a few lines of code cannot fix!