Local wazuh repository.

1,392 views
Skip to first unread message

Marcio Costa

unread,
May 9, 2017, 9:39:35 AM5/9/17
to Wazuh mailing list
Hello !

I have some servers that I cant expose to web and already use a local repository (Fedora&Centos) for updates/install.

Let me know if is possible create a local rpm repository and sync with Wazuh main repository, for download of the packages and use it for local installations.

Initialy need only for wazuh-agent installations.

Thank you.







Jose Luis Ruiz

unread,
May 9, 2017, 9:43:58 AM5/9/17
to Marcio Costa, Wazuh mailing list
Hi Mercio

The following contains all our package list:


You can download our rpms/debs and use in your repositories.

Also you can create your own rpms/debs, the files specs are in the next link:

https://github.com/wazuh/wazuh-packages

Regards
-----------------------
Jose Luis Ruiz
Wazuh Inc.
jo...@wazuh.com
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To post to this group, send email to wa...@googlegroups.com.
Visit this group at https://groups.google.com/group/wazuh.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/3f4e50dc-08ae-44b4-99c5-50867c69d20b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

0x2a

unread,
May 9, 2017, 10:16:38 AM5/9/17
to wa...@googlegroups.com
Hello,

I'm also interested in this.

Setting up an own repository from rpm/deb files or building own packages
adds unnecessary overhead/maintenance effort, rsyncing the repo would be
easier.

regards,
0x2a

Marcio Costa

unread,
May 9, 2017, 10:19:03 AM5/9/17
to Wazuh mailing list, marc...@gmail.com
Hi Jose.

Thank you by the reply.

Please help me about this issue: when I try download all files from the remote server, I got:

Resolvendo packages.wazuh.com (packages.wazuh.com)... 52.84.179.76, 52.84.179.210, 52.84.179.103, ...
Conectando-se a packages.wazuh.com (packages.wazuh.com)|52.84.179.76|:443... conectado.
A requisição HTTP foi enviada, aguardando resposta... 403 Forbidden
2017-05-09 11:00:35 ERRO 403: Forbidden.

I can download one by one file manually, but I need download all files from the server, using a script, to have the packages updated when new packages are launched into remote server.
Its possible ? 

Tks



Jose Luis Ruiz

unread,
May 9, 2017, 10:42:45 AM5/9/17
to Marcio Costa, Wazuh mailing list
Hi Marcio

Our repos and packages are hosted in Amazon S3, which works a little different thant the standard website.

Let us think in the better way to do this and we will return to you as soon as possible.


Regards
-----------------------
Jose Luis Ruiz
Wazuh Inc.
jo...@wazuh.com
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To post to this group, send email to wa...@googlegroups.com.
Visit this group at https://groups.google.com/group/wazuh.

Jose Luis Ruiz

unread,
May 9, 2017, 2:38:22 PM5/9/17
to Wazuh mailing list, Marcio Costa

Hi Marcio,

After review this, we have a couple uptions:

Rehat/CentOS systems:

Here you can use reposync, witch is very easy to work with.

Add Wazuh repository to your machine following the instructions here

rpm --import https://packages.wazuh.com/key/GPG-KEY-WAZUH
yum install yum-utils createrepo
reposync --gpgcheck -l --repoid=wazuh_repo --download_path=/var/www/html
cd /var/www/html/wazuh_repo
createrepo -v /var/www/html/wazuh_repo

Deboian/Ubuntu systems:

curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH | apt-key add -
apt-get install apt-mirror
nano /etc/apt/mirror.list

In the file mirror.list add the wazuh repository something like deb https://packages.wazuh.com/apt yourdistro main and setup your base path (by default /var/spool/apt-mirror), the following example is my mirror.list

############# config ##################
#
# set base_path    /var/spool/apt-mirror
#
# set mirror_path  $base_path/mirror
# set skel_path    $base_path/skel
# set var_path     $base_path/var
# set cleanscript $var_path/clean.sh
# set defaultarch  <running host architecture>
# set postmirror_script $var_path/postmirror.sh
# set run_postmirror 0
set nthreads     20
set _tilde 0
#
############# end config ##############




deb https://packages.wazuh.com/apt xenial main

Then only need to run apt-mirror command:

root@ubuntu:~# apt-mirror


You can find more information in the following links:

Centos/Redhat

https://access.redhat.com/solutions/23016

Ubuntu/Debian

http://manpages.ubuntu.com/manpages/xenial/man1/reposync.1.html

https://www.tecmint.com/setup-local-repositories-in-ubuntu/

i hope it helps.



Regards
-----------------------
Jose Luis Ruiz
Wazuh Inc.
jo...@wazuh.com

Marcio Costa

unread,
May 9, 2017, 3:02:23 PM5/9/17
to Wazuh mailing list, marc...@gmail.com
Hi Jose.

Great job, tested and aproved :))
Working fine.


Jose Luis Ruiz

unread,
May 9, 2017, 3:03:18 PM5/9/17
to Marcio Costa, Wazuh mailing list
Amazing! :)


Regards
-----------------------
Jose Luis Ruiz
Wazuh Inc.
jo...@wazuh.com
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To post to this group, send email to wa...@googlegroups.com.
Visit this group at https://groups.google.com/group/wazuh.
Reply all
Reply to author
Forward
0 new messages