LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Send Locallygenerated HTTP packets to a diff proxy server. (https://www.linuxquestions.org/questions/linux-networking-3/send-locallygenerated-http-packets-to-a-diff-proxy-server-4175467568/)

Vishal Koul 06-27-2013 05:59 AM

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 :'(

cociugcristina 06-28-2013 09:07 AM

Hello,

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


All times are GMT -5. The time now is 02:47 AM.