---
title: 'HAVP on Gentoo'
url: 'https://mo.homelinux.net/home/havp-gentoo'
markdown: 'https://mo.homelinux.net/home/havp-gentoo.md'
date: '2007-08-27'
description: "HAVP (HTTP AntiVirus proxy) is a proxy with an anti-virus filter. It does not cache or filter content, but is scanning the complete http traffic for viruses or malicious content. It's amining to stop dialers or browser exploits and features Continuous and non-blocking downloads, Smooth scanning of dynamic and password protected homepages Because mandatory locks have to be used on the scanning filesystem and I don't want to have it in my fstab, I edited the ebuild's havp.ini"
taxonomy:
  category:
    - blog
  tag:
    - gentoo
    - proxy
    - antivirus
  archives_month:
    - aug_2007
  archives_year:
    - '2007'
---

# HAVP on Gentoo

[ Home ](https://mo.homelinux.net/)      HAVP on Gentoo    

## [HAVP on Gentoo](https://mo.homelinux.net/home/havp-gentoo)

    27th Aug 2007   [gentoo](https://mo.homelinux.net/tag:gentoo#body-wrapper) [proxy](https://mo.homelinux.net/tag:proxy#body-wrapper) [antivirus](https://mo.homelinux.net/tag:antivirus#body-wrapper)  

[HAVP (HTTP AntiVirus proxy)](http://www.server-side.de/) is a proxy with an anti-virus filter. It does not cache or filter content, but is scanning the complete http traffic for viruses or malicious content. It's amining to stop dialers or browser exploits and features Continuous and non-blocking downloads, Smooth scanning of dynamic and password protected homepages

Because mandatory locks have to be used on the scanning filesystem and I don't want to have it in my fstab, I edited the ebuild's havp.init file

```
get_havp_opt() {
  eval HAVP_$1=`awk '/^[ \t]*'$1'[ \t]+/ { print $2; }' < /etc/havp/havp.config`
}

RAMDISK=/dev/ram0
MOUNTPOINT=/var/tmp/havp
HAVPUSER=havp
MP="`/bin/mount |/bin/grep $RAMDISK`"

if [ "$MP" != "" ]; then
  einfo "Ramdisk already mounted."
else
  ebegin "Creating Ramdisk..."
    /sbin/mke2fs -q -m 0 /dev/ram0 && \
    /bin/mount -o mand $RAMDISK $MOUNTPOINT && \
    /bin/chown $HAVPUSER:root $MOUNTPOINT && \
    /bin/chmod 0750 $MOUNTPOINT
  eend $?
fi

if [ ! -d /var/run/havp ] && ! mkdir /var/run/havp; then
  eeror "Failed to create /var/run/havp"
  return 1
fi
```

 [ Previous Post](https://mo.homelinux.net/home/gentoo-for-wrap) [Next Post ](https://mo.homelinux.net/home/alt-codes)

#### Random Article

 [ I'm Feeling Lucky!](https://mo.homelinux.net/random)

#### Popular Tags

#### Archives

- [ 1 June 2006  ](https://mo.homelinux.net/archives_month:jun_2006)
- [ 1 August 2007  ](https://mo.homelinux.net/archives_month:aug_2007)
- [ 1 November 2007  ](https://mo.homelinux.net/archives_month:nov_2007)
- [ 2 February 2008  ](https://mo.homelinux.net/archives_month:feb_2008)
- [ 1 March 2008  ](https://mo.homelinux.net/archives_month:mar_2008)
- [ 1 July 2008  ](https://mo.homelinux.net/archives_month:jul_2008)
- [ 2 August 2008  ](https://mo.homelinux.net/archives_month:aug_2008)
- [ 1 September 2008  ](https://mo.homelinux.net/archives_month:sep_2008)
- [ 1 November 2008  ](https://mo.homelinux.net/archives_month:nov_2008)
- [ 1 February 2009  ](https://mo.homelinux.net/archives_month:feb_2009)
- [ 1 October 2009  ](https://mo.homelinux.net/archives_month:oct_2009)
- [ 1 August 2013  ](https://mo.homelinux.net/archives_month:aug_2013)
- [ 1 November 2014  ](https://mo.homelinux.net/archives_month:nov_2014)
- [ 2 March 2015  ](https://mo.homelinux.net/archives_month:mar_2015)
- [ 1 October 2015  ](https://mo.homelinux.net/archives_month:oct_2015)
- [ 1 December 2015  ](https://mo.homelinux.net/archives_month:dec_2015)
- [ 1 January 2016  ](https://mo.homelinux.net/archives_month:jan_2016)
- [ 1 March 2017  ](https://mo.homelinux.net/archives_month:mar_2017)
- [ 1 August 2017  ](https://mo.homelinux.net/archives_month:aug_2017)
- [ 2 June 2020  ](https://mo.homelinux.net/archives_month:jun_2020)
- [ 1 November 2020  ](https://mo.homelinux.net/archives_month:nov_2020)
- [ 1 December 2020  ](https://mo.homelinux.net/archives_month:dec_2020)
- [ 1 January 2021  ](https://mo.homelinux.net/archives_month:jan_2021)
- [ 1 February 2021  ](https://mo.homelinux.net/archives_month:feb_2021)
- [ 1 March 2021  ](https://mo.homelinux.net/archives_month:mar_2021)
- [ 1 April 2021  ](https://mo.homelinux.net/archives_month:apr_2021)
- [ 1 May 2021  ](https://mo.homelinux.net/archives_month:may_2021)
- [ 1 October 2021  ](https://mo.homelinux.net/archives_month:oct_2021)
- [ 1 February 2022  ](https://mo.homelinux.net/archives_month:feb_2022)
- [ 1 March 2022  ](https://mo.homelinux.net/archives_month:mar_2022)
- [ 1 May 2023  ](https://mo.homelinux.net/archives_month:may_2023)
- [ 1 December 2024  ](https://mo.homelinux.net/archives_month:dec_2024)
- [ 1 March 2025  ](https://mo.homelinux.net/archives_month:mar_2025)
- [ 1 March 2026  ](https://mo.homelinux.net/archives_month:mar_2026)

---

## Navigation

- Parent: [Home](https://mo.homelinux.net/index.md)
- Previous: [ALT Keycodes](https://mo.homelinux.net/home/alt-codes.md)
- Next: [Gentoo for PC Engines WRAP.1C/D/E](https://mo.homelinux.net/home/gentoo-for-wrap.md)
