Koozali.org: home of the SME Server

How to disable squid proxy for a certain webpage?

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
How to disable squid proxy for a certain webpage?
« Reply #15 on: January 21, 2007, 06:11:37 PM »
Quote from: "CharlieBrady"

That's incorrect. Rob A showed you exactly how to use a custom template when modifying an existing fragment. As he rightly says, the way you have made the change it will be lost if an updated e-smith-proxy package is installed on your system.

 :oops:
Thanks Charlie!

roba

How to disable squid proxy for a certain webpage?
« Reply #16 on: January 22, 2007, 02:05:27 AM »
Quote from: "CharlieBrady"

That's incorrect. Rob A showed you exactly how to use a custom template when modifying an existing fragment. As he rightly says, the way you have made the change it will be lost if an updated e-smith-proxy package is installed on your system.


Thats what I get for posting from work and not from home where the SME box lives. Perhaps Charlie can confirm if its custom-templates or templates-custom.

Either Way you should NOT make the changes to the original default, as Charlie pointed out.

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
How to disable squid proxy for a certain webpage?
« Reply #17 on: January 25, 2007, 06:47:42 AM »
NFR at bug 2374

Offline raem

  • *
  • 3,972
  • +4/-0
How to disable squid proxy for a certain webpage?
« Reply #18 on: January 25, 2007, 08:05:19 AM »
roba

>...Perhaps Charlie can confirm if its custom-templates or templates-custom

Charlie has better things to do than answer that question.
It is templates-custom, which is easily determined by looking at a server
So the revised steps should be

First copy
/etc/e-smith/templates/etc/rc.d/init.d/masq/35transpoxy to /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/35transpoxy
and then edit the fragment

pico /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/35transpoxy
change:
Code:
$OUT .= "\t-p tcp --dport 80 -j TransProxy\n";

to

Code:
$OUT .= "\t-p tcp --dport 80 -d ! 200.201.173.0/24 -j TransProxy\n";

where ! nnn.nnn.nnn.nnn is the IP I don't want to pass through squid.

Code:
#expand-template /etc/rc.d/init.d/masq
#signal-event post-upgrade; signal-event reboot
...