ethraza Posted March 23, 2005 Report Share Posted March 23, 2005 Hi! Look that... :unsure: I have a server with isc dhcpd, squid, shorewall and apache. I have that virtual ips and that dhcpd subnets so the clients cannot see each other. This is working. My only problem is the authenticated proxy part. If I don't use authentication, it become simple. Only a trasparent nat or redirect to port 3128 will work. But if I ant to make the browser require user and pass, it become a little bit more complicated. This is become hard everyday and I become more My wish: That clients can be a new notebook everyday and the only thing that I want to support the owner of that notebook is to put the tcp/ip in dhcp mode to boot in my net. And maybe to put Automattically detect settings in the M$ IE Lan Settings. The notebooks will not see each other. They will see only the server and the proxy that is responding on 3128 port and is authenticating. My problem: Neigther IE or Firefox see the proxy.pac or wpad.dat on my gw server. That proxy server is authenticating and the user must enter username and password to go to internet. The only way to get this work now is manually seting the proxy ip and port on the client. But I don't want to do that. This need to be a automatic thing. My configs for now: > ifconfig eth0 Link encap:Ethernet HWaddr 00:E0:7D:E8:54:5A inet addr:110.10.1.111 Bcast:110.10.1.255 Mask:255.255.255.0 inet6 addr: fe80::2e0:7dff:fee8:545a/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:17683 errors:0 dropped:0 overruns:0 frame:0 TX packets:9096 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1670342 (1.5 Mb) TX bytes:3432038 (3.2 Mb) Interrupt:18 Base address:0xa000 eth0:1 Link encap:Ethernet HWaddr 00:E0:7D:E8:54:5A inet addr:111.11.1.1 Bcast:111.11.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:18 Base address:0xa000 eth0:2 Link encap:Ethernet HWaddr 00:E0:7D:E8:54:5A inet addr:111.11.2.1 Bcast:111.11.2.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:18 Base address:0xa000 eth0:3 Link encap:Ethernet HWaddr 00:E0:7D:E8:54:5A inet addr:111.11.3.1 Bcast:111.11.3.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:18 Base address:0xa000 eth1 Link encap:Ethernet HWaddr 00:E0:7D:AF:58:36 inet addr:200.211.7.6 Bcast:200.211.7.63 Mask:255.255.255.192 inet6 addr: fe80::2e0:7dff:feaf:5836/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:16722 errors:0 dropped:0 overruns:0 frame:0 TX packets:6694 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2626328 (2.5 Mb) TX bytes:710421 (693.7 Kb) Interrupt:19 Base address:0xc000 > cat /etc/dhcpd.conf ddns-update-style none; option wpad-url code 252 = text; shared-network eth0 { #option domain-name "nome.com"; option domain-name-servers 110.10.1.111; option subnet-mask 255.255.255.0; option routers 110.10.1.111; authoritative; option wpad-url "!http://110.10.1.111/proxy.pac"; subnet 111.11.1.0 netmask 255.255.255.0 { range 111.11.1.2 111.11.1.2; } subnet 111.11.2.0 netmask 255.255.255.0 { range 111.11.2.2 111.11.2.2; } subnet 111.11.3.0 netmask 255.255.255.0 { range 111.11.3.2 111.11.3.2; } } > cat /var/www/html/proxy.pac function FindProxyForURL(url, host) { if (isPlainHostName(host) || dnsDomainIs(host, "ghsix.com.br")) return "DIRECT"; else return "PROXY 110.10.1.111:3128"; } > cat /etc/httpd/conf/vhosts/Vhosts.conf <VirtualHost *> ServerName wpad #AddType application/x-ns-proxy-autoconfig .dat DocumentRoot /var/www/html RewriteEngine On RewriteRule ^/.*$ /var/www/html/wpad/wpad.dat [T=application/x-ns-proxy-autoconfig] </VirtualHost> Any help will be very apreciated. Thanks in advance! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.