Linux Proxy

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Linux Proxy
# 1  
Old 10-27-2010
Linux Proxy

Hi,

I am having windows proxy server and it is having proxy.pac file, so for accessing internet we are using automatic proxy url setting in the browser (http://windowsservername/file.pac).

Now my requirement is if I want to set the proxy settings in linux server from the cmd line how can I do.
export http_proxy=http://windowsservername/file.pac is not working
# 2  
Old 10-28-2010
MySQL

Quote:
Originally Posted by ktrimu
Hi,

export http_proxy=http://windowsservername/file.pac is not working
unfortunately this is useless for access the proxy servers in shells
because .pac is java script file and wget,curl,links ... and others cannot execute this.
instead of this maybe you can write a simple shell script..
or

install
http://pactester.googlecode.com/file...r-1.0.8.tar.gz
Code:
# cat proxywget
 
#!/usr/bin/env sh
export http_proxy=$(./pactester -p /root/proxy.pac -u "http://$1")
wget "$1"

Code:
# ./proxywget www.google.com

regards
ygemici
This User Gave Thanks to ygemici For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. IP Networking

Connecting via proxy chain to Upstream proxy

I need to configure a proxy on my local machine to use an upstream proxy (installed on another machine). The upstream proxy requires Digest/NTLM authorization. I want the local proxy to deal with the upstream proxy's authorization details and provides authorization free access to users that connect... (0 Replies)
Discussion started by: Russel
0 Replies

2. Emergency UNIX and Linux Support

Websockets proxy on CentOS Linux?

I need to setup a proxy that will sit in front of a websockets server and proxy websockets communication both to and from the server. There will only be one specific client trying to access this server using the websockets protocol. We can configure the proxy settings for port and IP on the... (3 Replies)
Discussion started by: glev2005
3 Replies

3. Linux

Proxy... through proxy ;)

ok, in my company i have a proxy that filter some url (yea, i know ;)) It was more then 7 year that i made a ssh tunnel with my linux machine, at work i used putty and redirect the internal squid proxy... it work very well! Yesterday the sysadmin has made a "content port filtering" and block... (0 Replies)
Discussion started by: zanac
0 Replies

4. IP Networking

Software/tool to route an IP packet to proxy server and capture the Proxy reply as an

Hi, I am involved in a project on Debian. One of my requirement is to route an IP packet in my application to a proxy server and receive the reply from the proxy server as an IP packet. My application handles data at the IP frame level. My application creates an IP packet(with all the necessary... (0 Replies)
Discussion started by: Rajesh_BK
0 Replies

5. Shell Programming and Scripting

Help with proxy redirecting

Folks; i have a question about redirecting proxy in Apache2.2. I have a link for wiki called http://myserver.mmm.com I have a configuration script which redirect this link to http://myserver.mmm.com/wiki/dashboard I want to be able to extract "wiki" out of this link so it can be redirected... (0 Replies)
Discussion started by: moe2266
0 Replies

6. Linux

how to get IP for proxy server

i have installed a proxy server on my linux box . how to get the IP for that proxy . cheers (3 Replies)
Discussion started by: ppass
3 Replies

7. UNIX for Advanced & Expert Users

proxy logs

Hi, I'm a newbie, and I wanted to know where I go to check proxy logs on an hp? Any help is nice. (1 Reply)
Discussion started by: Jeremy Johnson
1 Replies

8. UNIX for Advanced & Expert Users

Proxy

Are there any decent proxy programs out there that will filter domains and forward them to specific ip addresses and ports? I'm looking for a proxy that can be configured to take a request, examine the domain it is going to and then forward it to be proxied through other machines on the network... (6 Replies)
Discussion started by: rado
6 Replies
Login or Register to Ask a Question