Author Topic: How to install IPS/IDS in zentyal 5.0.7  (Read 2724 times)

Dampfir

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
How to install IPS/IDS in zentyal 5.0.7
« on: March 15, 2017, 02:18:50 pm »
Hi frends.
i tried install ips as jclendineng

sudo apt-get install zbuildtools build-essential fakeroot dpkg-dev -y
cd ~/Downloads
wget http://archive.zentyal.org/zentyal/pool/main/z/zentyal-ips/zentyal-ips_3.5.1.tar.gz
tar -xf zentyal-ips_3.5.1.tar.gz
mv zentyal-ips-3.5.1 zentyal-ips-5.0
sed -i '1 i\zentyal-ips (5.0) xenial; urgency=medium\n\n  * New release\n\n -- xy <xy@xy.com>  Mon, 29 Jun 2015 00:00:00 +0100\n' ./zentyal-ips-5.0/debian/changelog
sed -i '1 i\5.0\n        + Adapted to 5.0' ./zentyal-ips-5.0/ChangeLog
sed -i 's#Depends: zentyal-core (>= 3.5), zentyal-core (<< 5.0~1), zentyal-firewall,#Depends: zentyal-core (>= 5.0), zentyal-core (<< 5.0.7), zentyal-firewall,#g' ./zentyal-ips-5.0/debian/control
patch -t -p1 -i ips-stubs_4.2.diff
cd ./zentyal-ips-5.0
dpkg-buildpackage -rfakeroot -b
cd ..
sudo dpkg -i zentyal-ips_5.0_all.deb
sudo apt-get install -f
sudo sed -i 's\next if ($pkg->{name} eq '"'"'zentyal-ids'"'"');\#next if ($pkg->{name} eq '"'"'zentyal-ids'"'"');\g' /usr/share/zentyal/templates/software/ebox.mas
sudo zs webadmin restart


An error occurs during installation: zentyal-core (<< 5.0~1)
but:
  The zentyal-core version in the system is 5.0.7.

The module appears in webadmin but is not installed

eduardogoncalves

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: How to install IPS/IDS in zentyal 5.0.7
« Reply #1 on: December 01, 2017, 03:29:23 pm »
Hi, I build a debian package from source code  8) and create a tutorial here on how to install it: https://www.saibatudomt.com.br/2017/12/how-to-install-ips-ids-in-zentyal-5.html  ;D ;D

In the tutorial, I posted the link to my pull request to zentyal team.

Hope it helps! Let me know if you need help.  ;)

vshaulsk

  • Zen Samurai
  • ****
  • Posts: 477
  • Karma: +9/-1
    • View Profile
Re: How to install IPS/IDS in zentyal 5.0.7
« Reply #2 on: December 05, 2017, 01:10:30 am »
I followed your instructions and when I installed the dependencies the system gave me an error.

Zentyal stopped working and would not come backup after reboot.

I had to bring the VM back from last nights backup.
Not a big deal and will try again to see if I can figure out the error

Wirewrap

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: How to install IPS/IDS in zentyal 5.0.7
« Reply #3 on: January 03, 2018, 09:38:23 pm »
Hi, I build a debian package from source code  8) and create a tutorial here on how to install it: https://www.saibatudomt.com.br/2017/12/how-to-install-ips-ids-in-zentyal-5.html  ;D ;D

In the tutorial, I posted the link to my pull request to zentyal team.

Hope it helps! Let me know if you need help.  ;)
Hi eduardogoncalves
I followed your instructions, with a fresh zentyal 5 installation, and the package has been installed correctly but when I enable the module on the wan port, all the ip traffic is blocked!!!