LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-14-2010, 09:30 AM   #16
slinx
Member
 
Registered: Apr 2008
Location: Cleveland, Ohio
Distribution: SuSE, CentOS, Fedora, Ubuntu
Posts: 106

Original Poster
Rep: Reputation: 23

Here's my wpad.dat file:

Code:
function FindProxyForURL(url, host)
{
	
	// Go direct for servers and hosts connecting from 10.98.0.0/16, 10.99.1.0/24, and anything not 10.0.0.0/8. 
	if(isInNet(myIpAddress(), '10.98.0.0', '255.255.0.0') ||
	   isInNet(myIpAddress(), '10.99.1.0', '255.255.255.0') ||
	   ! isInNet(myIpAddress(), '10.0.0.0', '255.0.0.0'))
		return 'DIRECT';
	
	// Go direct if the host name is not resolvable.  Force browser to fail.
	if (! isResolvable(host))
		return 'DIRECT';
	
	// Go direct if plain hostname or host is on our network.
	// Exclude enterprise.tatravelcenters.com since it isn't on our network.
	if (isPlainHostName(host) ||
	    dnsDomainIs(host, '.ta.com') ||
	    dnsDomainIs(host, '.accessta.com') ||
	    dnsDomainIs(host, '.access-billing-services.com') ||
	    isInNet(host, '10.0.0.0', '255.0.0.0') ||
	    isInNet(host, '172.16.0.0', '255.240.0.0') ||
	    isInNet(host, '192.168.0.0', '255.255.0.0') ||
	    isInNet(host, '127.0.0.1', '255.255.255.255'))
		return 'DIRECT';
	
	// Go direct for Freightliner and other problem websites.
	if (dnsDomainIs(host, 'freightliner.com') ||
	    dnsDomainIs(host, 'accessfreightliner.com') ||
	    dnsDomainIs(host, 'clienthost.com') ||
	    host == 'www.choiceadvantage.com' ||
	    host == 'pcbsps01.pcb.popeyes.com' ||
	    host == 'secure.sces.org' ||
	    host == 'www.rmrboardroom.com' ||
	    host == 'gbrisxfacs.gbtpa.com' ||
            isInNet(host, '12.130.39.5', '255.255.255.255') ||
	    isInNet(host, '12.38.208.9', '255.255.255.255'))
		return 'DIRECT';
	
	// Go direct for Aloha servers.
	if (shExpMatch(myIpAddress(), '10.10?.*.81'))
		return 'DIRECT';

	// Go through Squid instead of DansGuardian for problem sites.
	if (host == 'www.proveit2.com' ||
	    host == 'www.bp-helios100.com' ||
	    host == 'egov.azdes.gov' ||
	    host == 'www.expertpay.com' ||
            host == 'ows.northstarenv.com' ||
            dnsDomainIs(host, 'onlinefoodservice.com') ||
            dnsDomainIs(host, 'onlinefoodservice2.com'))
		return 'PROXY proxy.ta.com:3128';
	
	return 'PROXY proxy.ta.com:8080';
}
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
networking in fedora 10 won't connect to dlink jimlauman Linux - Newbie 10 06-16-2009 10:38 AM
Dell 1501 Fedora 7, Lan cannot connect web problem. doobe66 Fedora 9 07-06-2007 05:59 AM
Proxy problem: can`t connect SSH through proxy... bugzilla Linux - Networking 3 09-16-2004 10:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration