Cisco PIX 501 a NAT s VPN

Dominik

Cisco PIX 501 a NAT s VPN
« kdy: 10. 05. 2011, 08:36:48 »
Dobrý den,
prosím, potřeboval bych poradit nebo nasměrovat abych vyřešil následující problém.
Mám následující síť:

internet                            PIX                 LAN
----------------------------|----------------------
192.168.10.0/24                           10.0.0.0/24

potřebuji nastavit PIX tak, aby NAToval vnitřní síť (10.0.0.0/24) a pokud bych chtěl jít do síte 172.16.0.0/24 aby pakety posílal do VPN, zbytek normálně do internetu.
Firma má VPN koncentrator, na který se připojuji pomocí group, group password a svého uživatelského jména a hesla.

Má konfigurace je takova:

PIX Version 6.3(5)
interface ethernet0 auto
interface ethernet1 100full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password xxxxxxxxxxxxxxxxx encrypted
passwd xxxxxxxxxxxxxxxxxx encrypted
hostname Annie
domain-name example.cz
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 encrypt-acl permit ip 10.0.0.0 255.255.255.0 172.16.0.0 255.255.255.0
access-list nonat-acl permit ip 10.0.0.0 255.255.255.0 172.16.0.0 255.255.255.0
access-list ouside_access_in permit ip any any
pager lines 24
mtu outside 1500
mtu inside 1500
ip address outside 192.168.10.195 255.255.255.0
ip address inside 10.0.0.1 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list nonat-acl
nat (inside) 1 10.0.0.0 255.255.255.0 0 0
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
route outside 0.0.0.0 0.0.0.0 192.168.10.1 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
aaa authentication enable console LOCAL
aaa authentication http console LOCAL
aaa authentication serial console LOCAL
aaa authentication ssh console LOCAL
http server enable
http 10.0.0.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
sysopt connection permit-ipsec
crypto ipsec transform-set aptset esp-des esp-md5-hmac
crypto map ozmap 10 ipsec-isakmp
crypto map ozmap 10 match address encrypt-acl
crypto map ozmap 10 set peer xxx.xxx.xxx.xxx
crypto map ozmap 10 set transform-set aptset
crypto map ozmap interface outside
isakmp enable outside
isakmp key ******** address xxx.xxx.xxx.xxx netmask 255.255.255.255
isakmp policy 10 authentication pre-share
isakmp policy 10 encryption des
isakmp policy 10 hash md5
isakmp policy 10 group 1
isakmp policy 10 lifetime 86400
telnet timeout 5
ssh 10.0.0.0 255.255.255.0 inside
ssh timeout 5
console timeout 0
dhcpd address 10.0.0.10-10.0.0.20 inside
dhcpd dns xxx.xxx.xxx.xxx
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd domain example.cz
dhcpd enable inside
username admin password xxxxxxxxxxxxxxxx encrypted privilege 15
terminal width 80


Děkuji za jakoukoliv radu či nasměrování


gyterpena

Re: Cisco PIX 501 a NAT s VPN
« Odpověď #1 kdy: 10. 05. 2011, 10:16:37 »
Nat vyzera v poriadku. Len musis zakazat 10.0.0.0/24 nat do 172.16.0.0/24

Myslim ze si chcel pouzit toto pravidlo len musiz zmenit permit na deny a potom povolit zvysok.
access-list nonat-acl permit ip 10.0.0.0 255.255.255.0 172.16.0.0 255.255.255.0

NAT config
nat (inside) 0 access-list nonat-acl
nat (inside) 1 10.0.0.0 255.255.255.0

access-list nonat-acl extended deny ip 10.0.0.0 255.255.255.0 172.16.0.0 255.255.255.0
access-list nonat-acl extended permit ip 10.0.0.0 255.255.255.0 any