LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Proxy Authentication by a Proxy? (http://www.linuxquestions.org/questions/linux-networking-3/proxy-authentication-by-a-proxy-682314/)

pigsa 11-10-2008 05:39 AM

Proxy Authentication by a Proxy?
 
I have an application which needs to access the Internet. However, it does not know how to perform proxy authentication. Therefore, my company's proxy server rejected it.

I am thinking about setting up another proxy server which does not require authentication, but know how to authenticate against the company's proxy. Then this proxy's task is to authenticate & pass all requests to the the company's proxy.

Is this possible? How to configure this "another proxy"? Or is there any better, more standard solution to the problem?

Thanks very much.

unSpawn 11-10-2008 01:20 PM

Have a look at say Proxychains?

nishith 11-10-2008 11:50 PM

Add MASQUERADE Rule on Proxy server for your PC IP Address.
 
Dear Friend,

Suppose,if you have a LAN of 100 PC's & except your PC,all 99 computers getting internet through Proxy Authentication.

Now,to access internet from your PC through Proxy without authentication,then you need a single "iptables" rule on your PC's IP Address.

Just implement below rule on proxy server & you will get internet directly,without any auth.

The command is :-

iptables -t nat -I POSTROUTING -s <your pc ip address> -j MASQUERADE

I have tested that this rule can work on RHEL,Fedora,CentOS only.

Try it,it should work.




Nishith

pigsa 11-11-2008 12:02 AM

It seems ProxyChains is intercepting TCP connections and passes it through a proxy (kind of like a TCP tunnel?). This is not what I want, because the application I am using do support proxy. It simply does not support proxy authentication. And the startup script of the application is complicated so I don't think it is easy to start it correctly under ProxyChains.

Instead, on further research I come across the term "parent proxy" which seems to describe what I want. I know squid support parent proxy. Is there any simpler solution? Do Apache mod_proxy support parent proxy?

nishith: I am trying to avoid annoying the network team :P

Thanks anyway!


All times are GMT -5. The time now is 03:59 PM.