dkuehlborn
Goto Top

Cisco Pix 501 Access-listen anwenden

Hallo Forum,

nachdem ich schon durch einiges Lesen im Forum meine Pix 501 zum laufen gebracht habe, möcht ich mich mit einer Frage zur Access-List an Euch wenden.

ich habe Pix 6.3 am laufen und möchte den Zugriff auf das Internet soweit beschränken, dass nur die Dienste www und pop3 erlaubt sind. Nach meinen Recherchen ist die Standardeinstellung bei der PIX outbound ist alles erlaubt und inbound ist nichts erlaubt. Ich möchte gerne einen Zustand erreichen, indem ich outbound alles sperre und anschließend nur die gewünschten Dienste erlaube. Ist dieses mit der Pix 501 überhaupt möglich? Die Eintragungen Access-list und Access-group haben in meiner Konfiguration jedenfalls keine Auswirkung. Es ist zurzeit alles möglich. Habe ich einen Gedankenfehler?

Für Hilfe und Anregungen danke ich im Voraus.

Viele Grüße

Dieter Kühlborn

Building configuration...
Saved

PIX Version 6.3(5)
interface ethernet0 auto
interface ethernet1 100full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password xxxxxxx encrypted
passwd xxxxxxxx encrypted
hostname pixfirewall
domain-name ciscopix.com
fixup protocol dns maximum-length 512
fixup protocol ftp 21
fixup protocol h323 h225 1720
fixup protocol h323 ras 1718-1719
fixup protocol http 80
fixup protocol rsh 514
fixup protocol rtsp 554
fixup protocol sip 5060
fixup protocol sip udp 5060
fixup protocol skinny 2000
fixup protocol smtp 25
fixup protocol sqlnet 1521
fixup protocol tftp 69
names
access-list outside-acl permit tcp 192.168.1.0 255.255.255.0 any eq www
access-list outside-acl deny tcp any any
access-list outside deny tcp any any
pager lines 24
logging on
logging timestamp
logging trap debugging
logging history warnings
logging facility 23
logging host inside 192.168.1.2
mtu outside 1500
mtu inside 1500
ip address outside 192.168.88.250 255.255.255.0
ip address inside 192.168.1.1 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
pdm location 192.168.1.2 255.255.255.255 inside
pdm location 192.168.1.0 255.255.255.0 outside
pdm logging informational 100
pdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
access-group outside-acl in interface outside
route outside 0.0.0.0 0.0.0.0 192.168.88.254 1
timeout xlate 0:05:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h225 1:00:00
timeout h323 0:05:00 mgcp 0:05:00 sip 0:30:00 sip_media 0:02:00
timeout sip-disconnect 0:02:00 sip-invite 0:03:00
timeout uauth 0:05:00 absolute
aaa-server TACACS+ protocol tacacs+
aaa-server TACACS+ max-failed-attempts 3
aaa-server TACACS+ deadtime 10
aaa-server RADIUS protocol radius
aaa-server RADIUS max-failed-attempts 3
aaa-server RADIUS deadtime 10
aaa-server LOCAL protocol local
http server enable
http 192.168.1.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server community public
no snmp-server enable traps
floodguard enable
telnet timeout 5
ssh timeout 5
console timeout 0
dhcpd address 192.168.1.2-192.168.1.254 inside
dhcpd dns 192.168.88.254
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd auto_config outside
dhcpd enable inside
terminal width 80

Content-Key: 61687

Url: https://administrator.de/contentid/61687

Printed on: April 19, 2024 at 15:04 o'clock

Member: Rafiki
Rafiki Jun 18, 2007 at 19:54:32 (UTC)
Goto Top
Hallo Dieter,

willkommen hier im Forum.

Du schreibst in deiner Konfig:
access-list outside-acl permit tcp 192.168.1.0 255.255.255.0 any eq www
access-list outside-acl deny tcp any any
Bedeutet: Die Pakete die du filterst sind für Verbindungen von 192.168.1.0 nach any.

access-group outside-acl in interface outside
Das bedeutet: Die access liste outside-acl wird angewendet auf eingehende (in) Pakete am outside interface.

Aber eigentlich möchtest du Verbindungen von inside nach outside kontrollieren.
Probier deine Access-liste mal für eingehende Pakte am inside interface aus.

Gruß Rafiki
Member: Dkuehlborn
Dkuehlborn Jun 19, 2007 at 05:41:08 (UTC)
Goto Top
Hallo Forum, hallo Rafiki,

ich danke für Deine Hilfe.

mit den folgendne Zeilen habe ich die Firewall so zum laufen gebracht, dass die ausgehenden Regeln nicht pauschal erlaubt sind.
Nun kommt muss ich mit dem Thema Logging auseinandersetzen. Ich plane das Loggin über Kiwi Syslog oder ähnlichem zu steuern. Welche Einstellungen sind sinnvoll, damit die Firewall nur "sinnvolle" Loggings erstellt? Ich möchte nicht jede erlaubte Aktion protokolliert haben. Eindringungsversuche sollten jedoch unbedingt festgehalten werden.

Wie sieht es aus mit IDS? Hier kenne ich mich auch noch nicht so gut aus. Was muss ich der Firewall bebringen, damit sie hier sinnvoll arbeitet?

Vielen Dank für die Unterstützung

Dieter Kühlborn


access-list inside-acl permit tcp 192.168.1.0 255.255.255.0 any eq www
access-list inside-acl permit tcp 192.168.1.0 255.255.255.0 any eq https
access-list inside-acl permit tcp 192.168.1.0 255.255.255.0 any eq ftp-data
access-list inside-acl permit tcp 192.168.1.0 255.255.255.0 any eq smtp
access-list inside-acl permit tcp 192.168.1.0 255.255.255.0 any eq pop3
access-list inside-acl permit tcp 192.168.1.0 255.255.255.0 any eq ftp
access-list inside-acl permit udp 192.168.1.0 255.255.255.0 any
access-list inside-acl deny tcp any any
access-group inside-acl in interface inside
Member: Rafiki
Rafiki Jun 19, 2007 at 13:03:45 (UTC)
Goto Top
Ich bevorzuge es lieber mehr zu loggen und eben keine Filter auf dem Gerät (in diesem fall die PIX) einzurichten. Jeder gute Syslogserver kann filtern und bei wichtigen Einträgen Alarm schlagen. Kiwi in der pro Version führt auch Befehle aus usw.
Lieber einige MB mehr Logfiles als nicht bescheid wissen. Was kostet ein MB auf der Festplatte?

Gruß Rafiki