The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features

See the new Forums

Work with SOCKS & PROXY at same time (thought pac file)

Forums » Opera for Windows/Mac/Linux » Desktop wish-list

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

29. November 2011, 15:56:25

SkyRE

Posts: 25

Work with SOCKS & PROXY at same time (thought pac file)

For example here pac file
function FindProxyForURL(url, host) {
  if (dnsDomainIs(host, "restricted.domain1.com") ||
      dnsDomainIs(host, "restricted.domain2.com")) {
    return "SOCKS 127.0.0.1:1080";
  }
  if (isInNet(host, "127.0.0.0", "255.0.0.0") || 
      isInNet(host, "192.168.0.0", "255.255.0.0") ||
      isInNet(host, "172.16.0.0", "255.240.0.0") ||
      isInNet(host, "10.0.0.0", "255.0.0.0") ||
      dnsDomainIs(host, "company.com")) {
    return "DIRECT";
  } else {
    return "PROXY proxy.company.com:3128";
  }
}

Does it need to be implemented in new releases of Opera browser

Option Results Votes
Yes, it's will be usefull result bar - $percentage % 100% 3
No need to implement result bar - $percentage % 0% 0
I don't know what is this result bar - $percentage % 0% 0
I'm abstaining result bar - $percentage % 0% 0
Total number of votes: 3

29. November 2011, 16:37:04

It's already possible.

Opera 11.52 has a bug so Pac files will not work with it. Though the bug has been fixed in Opera 12.00 snapshots and merged into Opera 11.60 snapshots.

So if you want to use PAC file download and test any of the following-

Opera 11.60 latest snapshot-
http://snapshot.opera.com/11.60_windows.html

NOTE: Also follow these instructions - http://snapshot.opera.com/11.60_windows.html#d1

Opera 12.00 latest snapshot-
http://snapshot.opera.com/windows/latest

Hope it works. Configuring Opera 11.60/12.00 to use PAC file-

1. Press Alt + P.
2. Click the Advanced tab.
3. Click the 'Network' category from the left side.
4. Click Proxy servers.

Now you can choose which configuration to use.
Windows 7 SP1 x86 edition and Windows XP Service Pack 3.
If you need any help from me with regards to Opera, please make a comment on any of my blog posts.
Support Opera wishes

30. November 2011, 08:00:25

SkyRE

Posts: 25

Originally posted by Swapnil99pro:

It's already possible.


You don't understand me. I've already use it in opera 12 but only possible or SOCKS only or PAC file with PROXY (HTTP) settings not together.

6. December 2011, 23:22:52

DigitalRaven

Banned user

Pac file doesn't work in 11.60. Haven't even tried SOCKS yet.

Forums » Opera for Windows/Mac/Linux » Desktop wish-list