Newsgroup: it.comp.reti.cisco
Titolo: Apertura porte PIX 501

La mia situazione è:
LAN -> PIX 501 -> Cisco 800 Series -> Adsl e vpn verso altra sede
La configurazione non l'ho fatta io quindi ci sono delle parti che non
mi sono troppo chiare.
Vorrei che da internet sia possibile accedere tramite ip pubblico a
una ipcam axis con ip 192.168.12.210 al quale accedo con protocollo
http.
Queste sono le configurazioni:
------------PIX 501-------------
: Saved
: Written by enable_15 at 09:17:34.515 ECT Tue Jul 31 2007
PIX Version 6.3(4)
interface ethernet0 auto
interface ethernet1 100full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password xxxxxxxxxxxxx encrypted
passwd xxxxxxxxxxxxxxx encrypted
hostname pix501
domain-name 
cisco.com
clock timezone ECT 1
clock summer-time ECT recurring last Sun Mar 2:00 last Sun Oct 3:00
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 acl_in permit icmp any any echo
access-list acl_in permit icmp any any echo-reply
access-list acl_in permit icmp any any unreachable
access-list acl_in permit icmp any any time-exceeded
access-list acl_in permit ip 192.168.12.0 255.255.252.0 192.168.0.0
255.255.248.0
access-list acl_in permit ip 192.168.12.0 255.255.252.0 172.17.0.0
255.255.0.0
access-list acl_in deny ip any 192.168.0.0 255.255.0.0
access-list acl_in deny ip any 172.16.0.0 255.240.0.0
access-list acl_in deny ip any 10.0.0.0 255.0.0.0
access-list acl_in permit ip 192.168.12.0 255.255.252.0 any
access-list acl_out permit icmp any any echo-reply
access-list acl_out permit icmp any any time-exceeded
access-list acl_out permit icmp any any unreachable
access-list nonat permit ip 192.168.12.0 255.255.252.0 192.168.0.0
255.255.248.0
access-list nonat permit ip 192.168.12.0 255.255.252.0 172.17.0.0
255.255.0.0
access-list nonat_jolly permit ip 192.168.12.0 255.255.252.0
192.168.0.0 255.255.248.0
access-list nonat_jolly permit ip 192.168.12.0 255.255.252.0
172.17.0.0 255.255.0.0
pager lines 24
logging on
logging monitor warnings
logging buffered debugging
mtu outside 1500
mtu inside 1500
ip address outside pppoe setroute
ip address inside 192.168.12.200 255.255.255.0
ip verify reverse-path interface outside
ip verify reverse-path interface inside
ip audit info action alarm
ip audit attack action alarm
pdm location 192.168.1.18 255.255.255.255 inside
pdm location 192.168.1.20 255.255.255.255 inside
pdm location 192.168.0.0 255.255.248.0 inside
pdm location 192.168.12.0 255.255.252.0 inside
pdm location 10.0.0.0 255.0.0.0 outside
pdm location 172.17.0.0 255.255.0.0 outside
pdm location 172.16.0.0 255.240.0.0 outside
pdm location 192.168.0.0 255.255.248.0 outside
pdm location 192.168.0.0 255.255.0.0 outside
pdm location 192.168.0.0 255.255.252.0 inside
pdm logging informational 100
pdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list nonat
nat (inside) 1 192.168.12.0 255.255.252.0 0 0
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
access-group acl_out in interface outside
access-group acl_in in interface inside
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 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
ntp server 192.168.1.2 source inside
http server enable
http 192.168.12.0 255.255.252.0 inside
http 192.168.0.0 255.255.248.0 inside
snmp-server host inside 192.168.1.18
snmp-server host inside 192.168.1.20
no snmp-server location
no snmp-server contact
snmp-server community mc_sme
no snmp-server enable traps
floodguard enable
sysopt connection permit-ipsec
service resetinbound
service resetoutside
crypto ipsec transform-set STRONG esp-3des esp-sha-hmac
crypto ipsec transform-set LIGHT esp-des esp-sha-hmac
crypto map jolly 10 ipsec-isakmp
crypto map jolly 10 match address nonat_jolly
crypto map jolly 10 set peer 85.x.y.z
crypto map jolly 10 set transform-set STRONG
crypto map jolly interface outside
isakmp enable outside
isakmp key ******** address 85.x.y.z netmask 255.255.255.255
isakmp identity address
isakmp policy 10 authentication pre-share
isakmp policy 10 encryption 3des
isakmp policy 10 hash sha
isakmp policy 10 group 1
isakmp policy 10 lifetime 0
telnet 192.168.12.0 255.255.252.0 inside
telnet timeout 10
ssh 192.168.12.0 255.255.252.0 inside
ssh 192.168.0.0 255.255.248.0 inside
ssh timeout 10
management-access inside
console timeout 10
vpdn group pppoex request dialout pppoe
vpdn group pppoex localname pippo
vpdn group pppoex ppp authentication pap
vpdn username pippo password ********
dhcpd address 192.168.12.201-192.168.12.232 inside
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd domain 
cisco.com
dhcpd auto_config outside
terminal width 80
-----------CISCO 800 SERIES--------
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r-tu
!
boot-start-marker
boot-end-marker
!
no logging console
enable secret 5 xxxxxxxxx
enable password xxxxxxxxx
!
no aaa new-model
!
resource policy
!
no ip routing
!
!
!
!
!
interface Ethernet0
no ip address
no ip route-cache
bridge-group 1
hold-queue 100 out
!
interface ATM0
no ip address
no ip route-cache
no atm ilmi-keepalive
dsl operating-mode auto
bridge-group 1
pvc 8/35
oam-pvc manage
oam retry 5 5 1
encapsulation aal5snap
!
!
no ip http server
!
!
!
!
control-plane
!
bridge 1 protocol ieee
!
line con 0
line vty 0 4
!
scheduler max-task-time 5000
end

 
Il router 800 lascialo così com'è.
Al PIX mi sa che devi aggiungere (non mi ricordo a memoria la sintassi)
static (inside,outside) tcp interface 80 192.168.12.210 80 netmask 255.255.255.255
access-list acl_out line 1 permit tcp any any eq 80
salva la conf su tftp prima di apportare le modifiche qua sopra
HTH Alex


Se hai un ip pubblico da riservare alla ipcam io farei:
static (Inside, outside) <ip_pubblico_ipcam> 192.168.12.210 netmask
255.255.255.255
e metterei l'access-list solo verso l'ip-cam
access-list acl_out line 1 permit tcp any host <ip_pubblico_ipcam> eq
80
access-group acl_out in interface outside
Ciao!