LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   help on how-to force set browser to proxy server (https://www.linuxquestions.org/questions/linux-networking-3/help-on-how-to-force-set-browser-to-proxy-server-641401/)

rude_reality 05-11-2008 05:48 AM

help on how-to force set browser to proxy server
 
I'm having a little problem with my firewall and SafeSquid. When I try to transparent proxy my wireless users to SafeSquid. SafeSquid prompt the user repeatly to login their information for every element on the page they are requesting. When I manually setting to browser to use SafeSquid directly. The users only have to enter their login information once. Is there away to redirect any request on port 80 to load only one page with javascript to auto config the user's browser to SafeSquid Proxy server. I have the JavaScript page made already. I just need to how to redirect all port 80 request to proxyconfig.html..

My server box:
Slackware 11.0 running kernel 2.6.17.13 (Never been recompile yet)
2 ethernet cards - eth0 = internet, eth1 = local network
linksys wireless access point

Wireless user's computer:
Just laptop running Windows Vista
Linux Box assigns ip-addresses 192.168.1.200-210

Any and all suggestion on this matter are and is welcome.

thank you

blackhole54 05-11-2008 08:15 AM

I think you would have to run some sort of web server and redirect requests to it similar to what you do now. Obviously, your requirements for the server are quite minimal! I think there are several small servers to choose from. The one I have played with is the Monkey Web Server (small enough to be included in Damn Small Linux!).

That was my first thought. Upon further reflection, you might be able to script a simple daemon for the purpose using netcat. This might work for the occasional request but I imagine it would have problems scaling. Again, you would need to redirect.

datopdog 05-11-2008 08:37 AM

have you investigated using wpad instead for your proxy auto configurations ?

prajakta0shimpi 05-12-2008 12:27 AM

Use auto proxy configuration script generated by safesquid proxy.pac or use wpad.

prajakta0shimpi 05-12-2008 12:37 AM

Quote:

Originally Posted by blackhole54 (Post 3149857)
I think you would have to run some sort of web server and redirect requests to it similar to what you do now. Obviously, your requirements for the server are quite minimal! I think there are several small servers to choose from. The one I have played with is the Monkey Web Server (small enough to be included in Damn Small Linux!).

That was my first thought. Upon further reflection, you might be able to script a simple daemon for the purpose using netcat. This might work for the occasional request but I imagine it would have problems scaling. Again, you would need to redirect.


Use auto proxy configuration script generated by safesquid proxy.pac or use wpad.

prajakta0shimpi 05-12-2008 12:44 AM

Use auto proxy configuration script generated by safesquid proxy.pac or use wpad.

ARC1450 05-13-2008 09:06 AM

I think we got the message the first time, yo. . . lawls

Anyway, check out wpad.

rsean 05-15-2008 01:43 PM

Hi guys,

I came across the response on the safesquid forum for this question -
http://www.safesquid.com/html/viewtopic.php?t=2624
So it seems WPAD is the choice of the majority.

It was interesting, though, to know that safesquid can serve proxy.pac in real-time to the users, without having to place the file on a web server. I tried it out and it works well.

Cheers!


All times are GMT -5. The time now is 06:28 AM.