Koozali.org: home of the SME Server

use external proxy for certain website(s)?

Offline SoftDux

  • *****
  • 240
  • +0/-0
    • http://www.SoftDux.com
use external proxy for certain website(s)?
« on: March 25, 2008, 09:10:50 AM »
I have read through the wiki & FAQ's, as well as search the forums, but can't find anything for this particular problem.

How would I allow a certain website(s) to use an external proxy server? Our country's dumb proxy servers often mess stuff up and I want to use a proxy server located in the USA for these sites. How would I tell SME (with transparent proxy) to use the upstream proxy server for certain websites only?

Offline raem

  • *
  • 3,972
  • +4/-0
Re: use external proxy for certain website(s)?
« Reply #1 on: March 25, 2008, 09:35:23 AM »
SoftDux

Is this what you want, it's in the FAQ.
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Bypass_Proxy
...

Offline SoftDux

  • *****
  • 240
  • +0/-0
    • http://www.SoftDux.com
Re: use external proxy for certain website(s)?
« Reply #2 on: March 25, 2008, 09:48:46 AM »
Hi RayMitchell, I looked at that article, but it is a but unclear to me.

I want the whole 192.168.10.0/24 LAN to use an external proxy (proxy.softdux.com for example) for a certain website, in this case http://www.rentacoder.com

Quote
config setprop squid BypassProxyTo   162.23.23.125
config setprop squid BypassProxyFrom a.b.c.d,x.y.z.0/0
expand-template /etc/rc.d/init.d/masq
/etc/init.d/masq restart
But the instructions looks like it let's a certain internal IP (thus machine on the local LAN) bypass the SME proxy instead? That will still cause that IP / machine use the transparent upstream ISP proxy

Offline raem

  • *
  • 3,972
  • +4/-0
Re: use external proxy for certain website(s)?
« Reply #3 on: March 25, 2008, 10:48:57 AM »
SoftDux

http://bugs.contribs.org/show_bug.cgi?id=2374
for clues to develop some code to do what you want.
« Last Edit: March 25, 2008, 11:10:15 AM by RayMitchell »
...

Offline SoftDux

  • *****
  • 240
  • +0/-0
    • http://www.SoftDux.com
Re: use external proxy for certain website(s)?
« Reply #4 on: March 25, 2008, 10:54:29 AM »
what does the DNS have todo with an external proxy server? I don't understand.

I simply SME to make use of proxy.softdux.com as external proxy server, for certain websites, when accessed by any host on the SME LAN (192.168.10.0/24). I can ping the sites in question, but our upstream ISP's IP's changes the whole time, so some sites that use cookies based login doesn't want to allow access, since the proxy IP changes everytime.


And now that I have said that much, I have a feeling I'm going to be told something totally unrelated....

Offline SoftDux

  • *****
  • 240
  • +0/-0
    • http://www.SoftDux.com
Re: use external proxy for certain website(s)?
« Reply #5 on: March 25, 2008, 11:09:30 AM »
ok, let's simplify my request.

How do I tell SME to use a specific external proxy server for certain web pages?

Offline raem

  • *
  • 3,972
  • +4/-0
Re: use external proxy for certain website(s)?
« Reply #6 on: March 25, 2008, 11:44:26 AM »
The closest thing to what you want.

To configure an upstream proxy

config set SquidParent a.b.c.d
config set SquidParentPort nn
signal-event post-upgrade
signal-event reboot

[The SquidParentPort setting is optional if the upstream proxy is on port 3128.]
...

Offline SoftDux

  • *****
  • 240
  • +0/-0
    • http://www.SoftDux.com
Re: use external proxy for certain website(s)?
« Reply #7 on: March 25, 2008, 11:49:44 AM »
thank you. I presume that option will use the designated upstream proxy for all websites?

Offline raem

  • *
  • 3,972
  • +4/-0
Re: use external proxy for certain website(s)?
« Reply #8 on: March 25, 2008, 12:01:45 PM »
SoftDux

Quote
I presume that option will use the designated upstream proxy for all websites?

As I understand it yes, that's why I said the closest thing to what you want.

I think you will need to develop code/template fragments to get exactly what you are after, assuming it's possible, refer to the bug report mentioned earlier for clues.
...

Offline SoftDux

  • *****
  • 240
  • +0/-0
    • http://www.SoftDux.com
Re: use external proxy for certain website(s)?
« Reply #9 on: March 26, 2008, 10:21:06 AM »
Unfortunately this solution didn't work. The one ISP's proxy solves the cookie problem on forums, but then doesn't allow access to secure sites on ports other than 445, like ISPConfig which runs on port 81 over SSL - So I instead got a Proxy switcher for Firefox, and use different proxies for different sites.