Installation von portsentry-2.0b1

Rund um die Sicherheit des Systems und die Applikationen
rufnex
Posts: 47
Joined: 2002-12-07 21:14
 

Installation von portsentry-2.0b1

Post by rufnex »

Hallo Ihr,

habt Ihr evtl. schon Erfahrung mit der Installation von portsentry-2.0b1
sammeln können?

Ich erhalte beim Versuch der Installation den folgenden Fehler (und zwar noch vor make install):

Code: Select all

# make linux
SYSTYPE=linux 
Making 
cc -O -Wall -D_BSD_SOURCE -o ./portsentry ./portsentry.c 
        ./portsentry_io.c ./portsentry_util.c -lpcap
In file included from ./portsentry.c:28:
portsentry.h:63: pcap.h: No such file or directory
In file included from ./portsentry_io.c:28:
portsentry.h:63: pcap.h: No such file or directory
In file included from ./portsentry_util.c:28:
portsentry.h:63: pcap.h: No such file or directory
make: *** [linux] Error 1
Habt Ihr ne Ahnung an was das liegen könnte?

Besten Dank
Rufnex[/code]
Last edited by rufnex on 2002-12-11 11:09, edited 1 time in total.
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten
 

Re: Installation von portsentry-2.0b1

Post by captaincrunch »

Du hast die libpcap nicht installiert ...
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
rufnex
Posts: 47
Joined: 2002-12-07 21:14
 

Re: Installation von portsentry-2.0b1

Post by rufnex »

Ã?hm, dumm Frage, wie installiere ich libpcap? Gibts wo ne Anleitung ...

Sorry bin noch etwas neu hier :)
Rufnex
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten
 

Re: Installation von portsentry-2.0b1

Post by captaincrunch »

Ich glaube, da gab's schon ein paar Diskussionen hier im Forum, aber dann halt nochmal ... :wink:

Du suchst dir das Paket libpcap.rpm vom Update- bzw. SuSE-Server, und installierst es entweder per Yast oder über ein

Code: Select all

rpm -Uvh libpcap.rpm
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
rufnex
Posts: 47
Joined: 2002-12-07 21:14
 

Re: Installation von portsentry-2.0b1

Post by rufnex »

Danke! Hat wunderbar geklappt ;o)

In nem Thread hab ich was von nem Trojaner gelesen ... sollte man in diesem Zusammenhang noch auf etwas achten?

cucu
Rufnex
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten
 

Re: Installation von portsentry-2.0b1

Post by captaincrunch »

In nem Thread hab ich was von nem Trojaner gelesen ... sollte man in diesem Zusammenhang noch auf etwas achten?
Der Trojaner betraf die offiziellen Sourcen, mit deinem RPM bist du "normalerweise" auf der sicheren Seite. Na ja, sofern der Server, von dem aus du runtergeladen hast nicht geknackt und das Paket gegen eins mit einem Trojaner ausgetauscht wurde ... :wink:
Nein, im Normalfall kannst du davon ausgehen, dass das Paket OK ist. Um ganz sicherzugehen, sollte man aber vor der Installation noch die MD5-Summe gegenchecken ...
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
rufnex
Posts: 47
Joined: 2002-12-07 21:14
 

Re: Installation von portsentry-2.0b1

Post by rufnex »

Alles klaro .. danke für Deine Hilfe!

Rufnex
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten
 

Re: Installation von portsentry-2.0b1

Post by captaincrunch »

Aber immer doch ... :wink:
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
rufnex
Posts: 47
Joined: 2002-12-07 21:14
 

Re: Installation von portsentry-2.0b1

Post by rufnex »

Sag das nicht .. ich komme wieder :lol:
kaizan
Posts: 33
Joined: 2002-07-19 17:32
 

Re: Installation von portsentry-2.0b1

Post by kaizan »

wäre lieb wenn du uns mal sagen könntest ob die instll geklappt hat und ob es läuft!?

MfG
Christian
rufnex
Posts: 47
Joined: 2002-12-07 21:14
 

Re: Installation von portsentry-2.0b1

Post by rufnex »

Ich bin mir noch nicht ganz sicher ob es geklappt hat .. ich tipp dann wieder was, wenn ich schlauer bin ;o)
floschi
Userprojekt
Userprojekt
Posts: 3247
Joined: 2002-07-18 08:13
Location: München
 

Re: Installation von portsentry-2.0b1

Post by floschi »

Rufnex wrote:Ich bin mir noch nicht ganz sicher ob es geklappt hat .. ich tipp dann wieder was, wenn ich schlauer bin ;o)
Schick mir deine IP und ich sag' dir, ob ich was scannen kann ;)
rufnex
Posts: 47
Joined: 2002-12-07 21:14
 

Re: Installation von portsentry-2.0b1

Post by rufnex »

HiHo,

die Installation von portsentry-2.0b1 ist recht einfach. Sucht Euch zunächst mal Eure
installierte SuSe Version mit dem folgenden Befehl heraus:

cat /etc/*issue*

Ihr solltet eigentlich alle SuSE Linux 7.2 (i386) als Ergebnis erhalten.
Dann die entsprechende Lib vom SuSe-FTPserver runterjagen:

wget ftp://ftp.suse.com/pub/suse/i386/update ... ibpcap.rpm

Ich gehe mal davon aus, dass Ihr die Datei in cd /usr/src/ reinspeichert.
Dann gehts weiter mit der Installation:

rpm -Uvh libpcap.rpm

Oki, jetzt sind alle Vorbereitungen getroffen .. jetzt holt Euch die akt.
Version von Portsentry und installiert das Tool wie im folgenden Tutorial
sehr gut beschrieben:

http://www.rob-schulze.de/informatik/tu ... ortsentry/


Fertisch :-D


cucu
Rufnex
kaizan
Posts: 33
Joined: 2002-07-19 17:32
 

Re: Installation von portsentry-2.0b1

Post by kaizan »

die faq bezieht sich aber auf 1.1 nicht auf die beta... geht des trotzdem?
rufnex
Posts: 47
Joined: 2002-12-07 21:14
 

Re: Installation von portsentry-2.0b1

Post by rufnex »

Ja ... funktioniert auch mit der akt. Version. Es hat sich ja an den Pfadvariablen nix geändert ;o)
cobrabbs
Posts: 122
Joined: 2002-10-11 13:46
Location: Hauptstatt der Welt -Laatzen
 

Re: Installation von portsentry-2.0b1

Post by cobrabbs »

Hallo ,

soweit , so gut , aber nach

> make linux
Makefile:46: *** missing separator (did you mean TAB instead of 8 spaces?). Stop.

kommt das ???
cobrabbs
Posts: 122
Joined: 2002-10-11 13:46
Location: Hauptstatt der Welt -Laatzen
 

Re: Installation von portsentry-2.0b1

Post by cobrabbs »

CobraBBS wrote:Hallo ,

gehe gerade die FAQ http://www.rob-schulze.de/informatik/tu ... ortsentry/ durch ,
soweit , so gut , aber nach

> make linux
Makefile:46: *** missing separator (did you mean TAB instead of 8 spaces?). Stop.

kommt das ???
[/url]
rufnex
Posts: 47
Joined: 2002-12-07 21:14
 

Re: Installation von portsentry-2.0b1

Post by rufnex »

Was steht den in der entsprechenden Zeile drin?
cobrabbs
Posts: 122
Joined: 2002-10-11 13:46
Location: Hauptstatt der Welt -Laatzen
 

Re: Installation von portsentry-2.0b1

Post by cobrabbs »

Rufnex wrote:Was steht den in der entsprechenden Zeile drin?
also wen ich das richtig verstehe , in zeile 46
dan steht dort volgndes :
@echo "freebsd, osx, openbsd, netbsd, bsdi, aix, osf, irix, generic"
cobrabbs
Posts: 122
Joined: 2002-10-11 13:46
Location: Hauptstatt der Welt -Laatzen
 

Re: Installation von portsentry-2.0b1

Post by cobrabbs »

hier mal das ganze makefile :

Code: Select all

# Makefile for PortSentry package.
#
# Send problems/code hacks to help@psionic.com
#
#
# STEALTH MODE: Only works on Linux systems right now.
#
# The snprintf included with the package is for use with NEXTSTEP only,
# (Thanks Timothy <tjl@luomat.org>) although it may work elsewhere.
# We've not tried it under any other OS to date. It shouldn't be needed
# by any modern OS.
#
# Others have used the snprintf from:
#
# http://www.ijs.si/software/snprintf/
#
# We've not tried this yet but others have had good success. Our only
# piece of advice for those running an OS without built in snprintf()
# is to upgrade. :)
#
#
# Generic compiler (usually linked to gcc on most platforms)
CC = cc

# GNU..
#CC = gcc

# Normal systems flags
CFLAGS = -O -Wall

# Debug mode for portsentry
#CFLAGS = -Wall -g -DNODAEMON -DDEBUG
#CFLAGS = -Wall -g -DNODAEMON
#CFLAGS = -Wall -g -DDEBUG

# Profiler mode for portsentry
#CFLAGS = -pg -O -Wall -DNODAEMON
#LIBS = /usr/lib/libefence.a

INSTALLDIR = /usr/local
CHILDDIR=/portsentry

all:
                @echo "Usage: make <systype>"
                @echo "<systype> is one of: linux, debian-linux, bsd, solaris, hpux, hpux-gcc,"
                @echo "freebsd, osx, openbsd, netbsd, bsdi, aix, osf, irix, generic"
                @echo ""
                @echo "This code requires snprintf()/vsnprintf() system calls"
                @echo "to work. If you run a modern OS it should work on"
                @echo "your system with 'make generic'. If you get it to"
                @echo "work on an unlisted OS please write us with the"
                @echo "changes."
                @echo ""
                @echo "Install: make install"
                @echo ""
                @echo "NOTE: This will install the package in this"
                @echo "      directory: $(INSTALLDIR)"
                @echo ""
                @echo "Edit the makefile if you wish to change these paths."
                @echo "Any existing files will be overwritten."

clean:
                /bin/rm ./portsentry

uninstall:
                /bin/rm $(INSTALLDIR)$(CHILDDIR)/*
                /bin/rmdir $(INSTALLDIR)

install:
                @echo "Creating psionic directory $(INSTALLDIR)"
                @if [ ! -d $(INSTALLDIR) ]; then /bin/mkdir $(INSTALLDIR); fi
                @echo "Setting directory permissions"
                @if [ "$(INSTALLDIR)" = "/usr/local/psionic" ]; then /bin/chmod 700 $(INSTALLDIR) ; fi
                @echo "Creating portsentry directory $(INSTALLDIR)$(CHILDDIR)"
                @if [ ! -d $(INSTALLDIR)$(CHILDDIR) ]; then /bin/mkdir
                        $(INSTALLDIR)$(CHILDDIR); fi
                @echo "Setting directory permissions"
                chmod 700 $(INSTALLDIR)$(CHILDDIR)
                @echo "Copying files"
                cp ./portsentry.conf $(INSTALLDIR)$(CHILDDIR)
                cp ./portsentry.ignore $(INSTALLDIR)$(CHILDDIR)
                cp ./portsentry $(INSTALLDIR)$(CHILDDIR)
                @echo "Setting permissions"
                chmod 600 $(INSTALLDIR)$(CHILDDIR)/portsentry.ignore
                chmod 600 $(INSTALLDIR)$(CHILDDIR)/portsentry.conf
                chmod 700 $(INSTALLDIR)$(CHILDDIR)/portsentry
                @echo ""
                @echo ""
                @echo "Edit $(INSTALLDIR)$(CHILDDIR)/portsentry.conf and change"
                @echo "your settings if you haven't already. (route, etc)"
                @echo ""
                @echo ""
                @echo "WARNING: This version and above now use a new"
                @echo "directory structure for storing the program"
                @echo "and config files ($(INSTALLDIR)$(CHILDDIR))."
                @echo "Please make sure you delete the old files when"
                @echo "the testing of this install is complete."
                @echo ""
                @echo ""

linux:
                SYSTYPE=linux
                @echo "Making $(SYSTYPE)"
                $(CC) $(CFLAGS) -DLINUX -DSUPPORT_STEALTH -o ./portsentry ./portsentry.c 
                ./portsentry_io.c ./portsentry_util.c $(LIBS)

debian-linux:
                SYSTYPE=debian-linux
                @echo "Making $(SYSTYPE)"
                $(CC) $(CFLAGS) -DLINUX -DDEBIAN -DSUPPORT_STEALTH -o ./portsentry ./portsentry.c 
                ./portsentry_io.c ./portsentry_util.c $(LIBS)


bsd:
                SYSTYPE=bsd
                @echo "Making $(SYSTYPE)"
                $(CC) $(CFLAGS) -DBSD44 -o ./portsentry ./portsentry.c 
                ./portsentry_io.c ./portsentry_util.c


openbsd:
                SYSTYPE=openbsd
                @echo "Making $(SYSTYPE)"
                $(CC) $(CFLAGS) -DBSD44 -o ./portsentry ./portsentry.c 
                ./portsentry_io.c ./portsentry_util.c


freebsd:
                SYSTYPE=freebsd
                @echo "Making $(SYSTYPE)"
                $(CC) $(CFLAGS) -DBSD44 -o ./portsentry ./portsentry.c 
                ./portsentry_io.c ./portsentry_util.c

osx:
                SYSTYPE=osx
                @echo "Making $(SYSTYPE)"
                $(CC) $(CFLAGS) -DBSD44 -o ./portsentry ./portsentry.c 
                ./portsentry_io.c ./portsentry_util.c


netbsd:
                SYSTYPE=netbsd
                @echo "Making $(SYSTYPE)"
                $(CC) $(CFLAGS) -DBSD44 -o ./portsentry ./portsentry.c 
                ./portsentry_io.c ./portsentry_util.c


bsdi:
                SYSTYPE=bsdi
                @echo "Making $(SYSTYPE)"
                $(CC) $(CFLAGS) -DBSD44 -o ./portsentry ./portsentry.c 
                ./portsentry_io.c ./portsentry_util.c


generic:
                SYSTYPE=generic
                @echo "Making $(SYSTYPE)"
                $(CC) $(CFLAGS) -o ./portsentry ./portsentry.c ./portsentry_io.c 
                ./portsentry_util.c


hpux:
                SYSTYPE=hpux
                @echo "Making $(SYSTYPE)"
                $(CC) -Ae -DHPUX -o ./portsentry ./portsentry.c ./portsentry_io.c 
                ./portsentry_util.c


hpux-gcc:
                SYSTYPE=hpux-gcc
                @echo "Making $(SYSTYPE)"
                $(CC) $(CFLAGS) -DHPUX -o ./portsentry ./portsentry.c ./portsentry_io.c 
                ./portsentry_util.c


solaris:
                SYSTYPE=solaris
                @echo "Making $(SYSTYPE)"
                $(CC) -lnsl -lsocket -lresolv -lc -o ./portsentry ./portsentry.c ./portsentry_io.c 
                ./portsentry_util.c


aix:
                SYSTYPE=aix
                @echo "Making $(SYSTYPE)"
                $(CC) $(CFLAGS) -o ./portsentry ./portsentry.c ./portsentry_io.c 
                ./portsentry_util.c


osf:
                SYSTYPE=osf
                @echo "Making $(SYSTYPE)"
                $(CC) $(CFLAGS) -taso -ldb -o ./portsentry ./portsentry.c ./portsentry_io.c 
                ./portsentry_util.c


irix:
                SYSTYPE=irix
                @echo "Making $(SYSTYPE)"
                $(CC) $(CFLAGS) -O -n32 -mips3 -o ./portsentry ./portsentry.c ./portsentry_io.c 
                ./portsentry_util.c


# NeXTSTEP Users. NeXT used to work, but we changed the log function and
# it now uses vsnprintf() to format strings. This means that this
# version does not work under NeXTSTEP until we can find a workable
# vsnprintf() call to put in the program. Sorry. If you have some good
# vsnprintf() code to use under NeXT please send it to us and we'll
# include it on the next update.
#next:
#                SYSTYPE=next
#                @echo "Making $(SYSTYPE)"
#                $(CC) $(CFLAGS) -DNEXT -DHAS_NO_SNPRINTF -posix -o ./portsentry ./portsentry.c 
#                ./portsentry_io.c ./portsentry_util.c


[/code]
rufnex
Posts: 47
Joined: 2002-12-07 21:14
 

Re: Installation von portsentry-2.0b1

Post by rufnex »

Hast Du hier einen TABSTOP oder dgl. aus versehen reingebracht ...

INSTALLDIR = /usr/local
CHILDDIR=/portsentry

???
cobrabbs
Posts: 122
Joined: 2002-10-11 13:46
Location: Hauptstatt der Welt -Laatzen
 

Re: Installation von portsentry-2.0b1

Post by cobrabbs »

Rufnex wrote:Hast Du hier einen TABSTOP oder dgl. aus versehen reingebracht ...

INSTALLDIR = /usr/local
CHILDDIR=/portsentry

???
ehhh , was bitte ?? :oops:
meinst Du leerzeichen oder so ??
also wen Du die meinst , nein , habe es soeben nochmal überprüft ...
Last edited by cobrabbs on 2002-12-11 13:20, edited 1 time in total.
rufnex
Posts: 47
Joined: 2002-12-07 21:14
 

Re: Installation von portsentry-2.0b1

Post by rufnex »

Ne aus versehen nach dem Eintrag auf die TAB-Taste gekommen oder so .. und mach auch mal evtl. alle Leerzeichen raus (die am Ende der Zeile).
cobrabbs
Posts: 122
Joined: 2002-10-11 13:46
Location: Hauptstatt der Welt -Laatzen
 

Re: Installation von portsentry-2.0b1

Post by cobrabbs »

nein , aber habe das makefile gedownloadet um es mit dem Proton zu bearbeiten , bin auf der Arbeit und dachte mir das mach ich mal in der mittagspause mal schnell , da ich aber von hieraus nur mit Webmin Arbeiten kann , bearbeite ich es mit Proton und dan kopier ich alles in das file rein . Mit Webmin ( Datei Manager , auf bearbeiten ) ...
rufnex
Posts: 47
Joined: 2002-12-07 21:14
 

Re: Installation von portsentry-2.0b1

Post by rufnex »

hattest Du portsentry in der alten Version schon drauf? Das dann evtl. vorher deinstallieren. Hm Ansonsten die ganzen Konfigurationen noch mal durchspielen (lt. Anleitung).