LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   up-to-date mirror apt repository (https://www.linuxquestions.org/questions/linux-newbie-8/up-to-date-mirror-apt-repository-4175545507/)

tripialos 06-16-2015 08:10 AM

up-to-date mirror apt repository
 
Issue: I am configuring my home server (debian wheezy) and trying to add some extra security by filtering also the OUTGOING traffic with iptables.

When i add the fqdn of debian repo to iptables this is resolved by iptables and the ip is used. However, noticed that the fqdn of deb repo does not always resolve to the same ip address.

I was thinking to make some sort of "proxy - repo" server that my machine will will head there to perform apt tasks.

I googled around and i found about mirroring a repo however this is the case where you want to bandnwith saving and keep persistent packages.

What i want is this mirror of the repo to be able to be up-to-date with the original repo.

Is that possible?

Head_on_a_Stick 06-17-2015 01:29 AM

You could try the new Debian redirector.

http://http.debian.net/

tripialos 06-18-2015 09:24 AM

I googled a bit more and found out that apt-mirror actually mirrors changes from the source repo, some sort of rsync.

So , adding a cronjob once a day to execute the command "apt-mirror" would keep the local mirror repo up-to-date


All times are GMT -5. The time now is 02:22 PM.