1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Squid proxy question. Syncing internal repo

Discussion in 'Linux & Open Source' started by opethdisciple, Nov 30, 2017.

  1. opethdisciple

    Capodecina

    Joined: May 18, 2010

    Posts: 16,958

    Location: London

    We have a squid proxy providing a gate way to the internet for our Satellite Server.

    When I synch repos, it uses the proxy to talk to the remote repositories on the internet.

    However I want to synch to an internal http repo hosted by us.

    How do I stop my server from going via the proxy for just that one repo and sync locally?

    Is the something I can change on the local server or some sort of rule I can add to squid?

    I found this....

    Others seems to be suggesting using iptables to achieve this.
     
    Last edited: Nov 30, 2017
  2. opethdisciple

    Capodecina

    Joined: May 18, 2010

    Posts: 16,958

    Location: London

    Thanks for the replies guys all very helpful. :rolleyes::p
     
  3. memyselfandi

    Sgarrista

    Joined: Oct 10, 2005

    Posts: 8,192

    Location: Nottingham

    Don't use Satellite but can't you disable the current repo configuration and then define a custom repo definition which which points at the internal repo rather than trying to frig the existing configuration ...?
     
  4. opethdisciple

    Capodecina

    Joined: May 18, 2010

    Posts: 16,958

    Location: London

    The issue is by pointing to the internal repo, the satellite still tries to go via the proxy which goes out to the internet rather than having access to the intranet.

    I also tried to do something simple using FF and turning off and on the proxy as and when we need to synch internal or external repos but still didn't have any joy.
     
  5. memyselfandi

    Sgarrista

    Joined: Oct 10, 2005

    Posts: 8,192

    Location: Nottingham

    From a quick Google ..... link
     
  6. opethdisciple

    Capodecina

    Joined: May 18, 2010

    Posts: 16,958

    Location: London

    Thanks mate that's helpful.
     
  7. memyselfandi

    Sgarrista

    Joined: Oct 10, 2005

    Posts: 8,192

    Location: Nottingham

    Erm .... no