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.
|