home *** CD-ROM | disk | FTP | other *** search
- Änderungen an der Konfiguration des Internet-Dämons
-
- --------------------------------------------------------------------------------
- Vorher: /etc/inetd.conf einer typischen Linux-Installation
- --------------------------------------------------------------------------------
-
-
- #:INTERNAL: Interne Dienste des inetd
- echo stream tcp nowait root internal
- echo dgram udp wait root internal
- chargen stream tcp nowait root internal
- chargen dgram udp wait root internal
- discard stream tcp nowait root internal
- discard dgram udp wait root internal
- daytime stream tcp nowait root internal
- daytime dgram udp wait root internal
- time stream tcp nowait root internal
- time dgram udp wait root internal
-
- #:STANDARD: Standard-Dienste und BSD-Dienste
- ftp stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.ftpd
- telnet stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.telnetd
- shell stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.rshd
- login stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.rlogind
- exec stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.rexecd
- talk dgram udp wait root /usr/sbin/tcpd /usr/sbin/in.talkd
- ntalk dgram udp wait root /usr/sbin/tcpd /usr/sbin/in.ntalkd
- pop-3 stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.qpopper
-
- #:INFO: Info services
- finger stream tcp nowait nobody /usr/sbin/tcpd /usr/sbin/in.fingerd
- ident stream tcp nowait nobody /usr/sbin/identd identd -i
-
- #:BOOT: tftp und bootd werden zum Booten über Netzwerk verwendet
- tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /boot
- bootps dgram udp wait root /usr/sbin/bootpd bootpd -i -t 120
-
- #:RPC: RPC-(Remote Procedure Call)-Dienste
- nfsd/1 dgram rpc/udp wait root /usr/sbin/tcpd /usr/sbin/rpc.nfsd
- mountd/1 dgram rpc/udp wait root /usr/sbin/tcpd /usr/sbin/rpc.mountd
- rstatd/1-3 dgram rpc/udp wait root /usr/sbin/tcpd /usr/sbin/rpc.rstatd
- rusersd/2-3 dgram rpc/udp wait root /usr/sbin/tcpd /usr/sbin/rpc.rusersd
- walld/1 dgram rpc/udp wait root /usr/sbin/tcpd /usr/sbin/rpc.rwalld
-
- --------------------------------------------------------------------------------
- Nachher: So könnte eine sichere Konfiguration aussehen:
- --------------------------------------------------------------------------------
-
- #:INTERNAL: nicht notwendige Dienste gelöscht
-
- #:STANDARD: ftp, telnet und rlogin durch Proxies aus TIS-Toolkit ersetzt; ssh installiert
- ftp stream tcp nowait root /usr/local/etc/ftp-gw ftp-gw
- telnet stream tcp nowait root /usr/local/etc/tn-gw tn-gw
- ssh stream tcp nowait root /usr/local/etc/plug-gw plug-gw ssh
- login stream tcp nowait root /usr/local/etc/rlogin-gw rlogin-gw
- pop-3 stream tcp nowait root /usr/local/etc/plug-gw plug-gw pop-3
-
- #:INFO: in.fingerd ist jetzt ein Skript, das einen allgemeinen Text ausgibt, durch netacl geschützt
- finger stream tcp nowait nobody /usr/local/etc/netacl in.fingerd
-
- #:BOOT: gefährliche Dienste
-