Permettere SMTP solo ad un Host

Mettete al sicuro la vostra rete!

Moderatore: Federico.Lagni

Rispondi
wwww3
Cisco fan
Messaggi: 25
Iscritto il: gio 24 mag , 2007 5:53 pm

Ciao a tutti,
ho una rete protetta da un Cisco 506.
Chiedo un aiuto in quanto vorrei che il traffico SMTP fosse permesso solo ad un host (192.168.1.2) della rete e negato a tutti gli altri.

Grazie a tutti.

Allego la configurazione attuale.

******************************************************
PIX Version 6.3(5)
interface ethernet0 10baset
interface ethernet1 auto
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password xxx encrypted
passwd xxx encrypted
hostname PIX506
domain-name abcd.it
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 ils 389
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_access_in permit icmp any any echo-reply
access-list nonat permit ip any 10.0.1.0 255.255.255.0
access-list nonat permit ip any 10.0.2.0 255.255.255.0
access-list nonat permit ip any 10.0.3.0 255.255.255.0
access-list SPLIT-TUNNEL permit ip 192.168.1.0 255.255.255.0 192.168.10.0 255.255.255.0
access-list SPLIT-TUNNEL permit ip 192.168.1.0 255.255.255.0 192.168.2.0 255.255.255.0
access-list SPLIT-TUNNEL permit ip 192.168.1.0 255.255.255.0 172.21.0.0 255.255.0.0

pager lines 24
logging on
logging buffered debugging
logging trap debugging
logging host inside 192.168.1.120
mtu outside 1500
mtu inside 1500
ip address outside xxx.xxx.xxx.xxx 255.255.255.248
ip address inside 192.168.1.254 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
ip local pool N 10.0.1.1-10.0.1.30
ip local pool S 10.0.2.1-10.0.2.10
ip local pool C 10.0.3.1-10.0.3.30

pdm location 192.168.1.0 255.255.255.0 inside
pdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list nonat
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
access-group outside_access_in in interface outside
route outside 0.0.0.0 0.0.0.0 xxx.xxx.xxx.xxx 1
timeout xlate 3:00: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
http 10.0.1.0 255.255.255.0 inside
snmp-server host inside 192.168.1.2
snmp-server host inside 192.168.1.80
no snmp-server location
no snmp-server contact
snmp-server community public
no snmp-server enable traps
floodguard enable
sysopt connection permit-ipsec
crypto ipsec transform-set TRSET esp-3des esp-sha-hmac
crypto dynamic-map dynmap 10 set transform-set TRSET
crypto map VPN 10 ipsec-isakmp dynamic dynmap
crypto map VPN interface outside
isakmp enable outside
isakmp identity address
isakmp nat-traversal 20
isakmp policy 10 authentication pre-share
isakmp policy 10 encryption 3des
isakmp policy 10 hash sha
isakmp policy 10 group 2
isakmp policy 10 lifetime 86400
vpngroup N address-pool N
vpngroup N dns-server 192.168.1.2
vpngroup N wins-server 192.168.1.2
vpngroup N split-tunnel SPLIT-TUNNEL
vpngroup N idle-time 1800
vpngroup N password XXXXXX
vpngroup S address-pool S
vpngroup S dns-server 192.168.1.2
vpngroup S wins-server 192.168.1.2
vpngroup S default-domain abcd.it
vpngroup S idle-time 1800
vpngroup S password XXXXXX
vpngroup C address-pool C
vpngroup C dns-server 192.168.1.2
vpngroup C wins-server 192.168.1.2
vpngroup C default-domain abcd.it
vpngroup C split-tunnel SPLIT-TUNNEL
vpngroup C idle-time 1800
vpngroup C password XXXXXX
telnet 192.168.1.0 255.255.255.0 inside
telnet 10.0.1.0 255.255.255.0 inside
telnet timeout 5
ssh timeout 5
management-access inside
console timeout 0
terminal width 80
emanuele.ciani
Cisco fan
Messaggi: 62
Iscritto il: gio 11 mag , 2006 1:47 pm
Località: Forlì

ciao
per disabilitare l'smtp devi semplicemente creare una'access-list
dove come prima righa metti un permit tcp host (il tuo server) any eq smtp
seconda deny tcp any any eq smtp
ultima permit ip tua rete any

e la assegni all'intefaccia inside
Rispondi