LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-27-2013, 05:59 AM   #1
Vishal Koul
LQ Newbie
 
Registered: Jun 2013
Posts: 2

Rep: Reputation: Disabled
Question Send Locallygenerated HTTP packets to a diff proxy server.


I have a web application deployed on tomcat on linux ,,,now this application is trying to speak to internet but server is behind a proxy server

Application doesnt understand proxy I want to redirect all the http traffic this server is generating to this proxy server

I understand using IP tables might be an option but I am new to this and tried may conbiations which have failed

iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 125.236.71.228:8080
iptables -t nat -A PREROUTING -p tcp --dport 443 -j DNAT --to-destination 125.236.71.228:8080

I tried replacing PRE ROUTING With OUTPUT as well...but to no sucess :'(

Last edited by Vishal Koul; 06-27-2013 at 06:09 AM.
 
Old 06-28-2013, 09:07 AM   #2
cociugcristina
LQ Newbie
 
Registered: Aug 2003
Location: romania
Posts: 12

Rep: Reputation: 1
Hello,

you have to set-up your proxy server as reverse proxy and your HTTP server with mod_proxy.
 
  


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
Encrypted HTTP Proxy Server mohtasham1983 Linux - Server 4 02-13-2012 12:51 AM
[SOLVED] Send a request to a http server without using sockets. jaepi Programming 7 07-11-2011 10:34 PM
How to set up an http proxy server SentralOrigin Linux - Networking 1 03-22-2009 05:35 PM
http proxy server Seiken Slackware 6 12-09-2005 12:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:36 AM.

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
Open Source Consulting | Domain Registration