« Return to Thread: Guarddog, iptables e kernel >2.6.39

Re: Guarddog, iptables e kernel >2.6.39

by Diego Russo-4 :: Rate this Message:

| View in Thread

In data martedì 13 marzo 2012 14:25:40, Diego Russo ha scritto:

> Un saluto a tutti,
> Ho testing e con qualsiasi kernel superiore al 2.6.39-2 iptables non mi
> "carica" le regole.
> Guarddog mi dà questo errore :
> "ERRORE: non riesco a determinare il comando di firewall! (E' installato
> ipchains o iptables?)"
> Eppure iptables è installlato e presente in /sbin, infatti con le versioni
> 2.6.39 e inferiori funziona.
> In Kern.log vedo soltanto questa riga e nient'altro:
> ip_tables: (C) 2000-2006 Netfilter Core Team
>
> Qualche idea su come capire cosa non và con i nuovi kernel?
Ho capito il problema leggendo il messaggio Stefano "schede di rete che non
prendono l' ip", infatti non sapevo dell' esistenza di uno script firewall :)
In /etc/rc.firewall :

if [ -e /proc/sys/kernel/osrelease ]; then
  KERNEL_VERSION=`sed "s/^\([0-9][0-9]*\.[0-9][0-9]*\).*\$/\1/" <
/proc/sys/kernel/osrelease`
  if [ $KERNEL_VERSION == "2.6" ]; then
    KERNEL_VERSION="2.4"
  fi;
  if [ $KERNEL_VERSION == "2.5" ]; then
    KERNEL_VERSION="2.4"
  fi;
  if [ $KERNEL_VERSION == "2.4" ]; then
    if [ -e /sbin/iptables ]; then
      FILTERSYS=2
    fi;
    if [ -e /usr/sbin/iptables ]; then
      FILTERSYS=2
    fi;
    if [ -e /usr/local/sbin/iptables ]; then
      FILTERSYS=2
    fi;
  fi;
fi;
if [ $FILTERSYS -eq 0 ]; then
  logger -p auth.info -t guarddog "ERROR Can't determine the firewall command!
(Is ipchains or iptables installed?)"
  [ $GUARDDOG_VERBOSE -eq 1 ] && echo "ERRORE: non riesco a determinare il
comando di firewall! (E' installato ipchains o iptables?)"
  false
fi;

Qualcuno sà consigliarmi una gui facile da usare per impostare iptables?
Grazie.
--
Diego Russo


--
Per REVOCARE l'iscrizione alla lista, inviare un email a
debian-italian-REQUEST@... con oggetto "unsubscribe". Per
problemi inviare un email in INGLESE a listmaster@...

To UNSUBSCRIBE, email to debian-italian-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...
Archive: http://lists.debian.org/201203151402.05696.rssdi.n9@...

 « Return to Thread: Guarddog, iptables e kernel >2.6.39