PDA

View Full Version : Nhờ mọi người giúp



kaka_kma
08-06-2011, 12:16 AM
ASA# show run
: Saved
:
ASA Version 8.0(2)
!
hostname ASA
enable password 8Ry2YjIyt7RRXU24 encrypted
names
!
interface Ethernet0/0
nameif outside
security-level 0
ip address 203.200.2.1 255.255.255.0
!
interface Ethernet0/1
nameif inside
security-level 100
ip address 10.10.10.1 255.255.255.0
!
interface Ethernet0/2
nameif dmz
security-level 50
ip address 172.16.1.2 255.255.255.0
!
interface Ethernet0/3
shutdown
no nameif
no security-level
no ip address
!
interface Ethernet0/4
shutdown
no nameif
no security-level
no ip address
!
interface Ethernet0/5
shutdown
no nameif
no security-level
no ip address
!
passwd 2KFQnbNIdI.2KYOU encrypted
boot config disk0:/.private/startup-config
ftp mode passive
access-list AL_WEB extended permit tcp any host 203.200.2.10 eq www
access-list AL_WEB extended permit tcp any host 203.200.2.10 eq 3389
access-list AL_WEB extended permit icmp any any echo-reply
access-list IN_DMZ extended permit ip 10.10.10.0 255.255.255.0 host 172.16.1.1
pager lines 24
no logging message 402128
mtu outside 1500
mtu inside 1500
mtu dmz 1500
no failover
icmp unreachable rate-limit 1 burst-size 1
no asdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list IN_DMZ
nat (inside) 1 10.10.10.0 255.255.255.0
static (dmz,outside) tcp 203.200.2.10 www 172.16.1.1 www netmask 255.255.255.255
static (dmz,outside) tcp 203.200.2.10 3389 172.16.1.1 3389 netmask 255.255.255.255
access-group AL_WEB in interface outside
route outside 0.0.0.0 0.0.0.0 203.200.2.2 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout uauth 0:05:00 absolute
dynamic-access-policy-record DfltAccessPolicy
http server enable
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
no crypto isakmp nat-traversal
telnet timeout 5
ssh timeout 5
console timeout 0
threat-detection basic-threat
threat-detection statistics access-list
!
class-map inspection_default
match default-inspection-traffic
!
!
policy-map type inspect dns preset_dns_map
parameters
message-length maximum 512
policy-map global_policy
class inspection_default
inspect dns preset_dns_map
inspect ftp
inspect h323 h225
inspect h323 ras
inspect netbios
inspect rsh
inspect rtsp
inspect skinny
inspect esmtp
inspect sqlnet
inspect sunrpc
inspect tftp
inspect sip
inspect xdmcp
!
service-policy global_policy global
prompt hostname context
Cryptochecksum:07ff3d35209eb408587278c7e51f7756
: end
ASA#
Mình đã cấu hình như trên. Máy ở vùng inside có thể sử dụng remote desktop tới webserver nằm trong vùng dmz nhưng lại ko thể sử dụng dịch vụ web là sao ?
Mong các cao thủ giúp đỡ.

phamminhtuan
09-06-2011, 01:09 AM
Hi bạn,

Thay vì dùng
static (dmz,outside) tcp 203.200.2.10 www 172.16.1.1 www netmask 255.255.255.255
static (dmz,outside) tcp 203.200.2.10 3389 172.16.1.1 3389 netmask 255.255.255.255

Bạn chỉ cần dùng 1 câu
static (dmz,outside) 203.200.2.10 172.16.1.1 netmask 255.255.255.255
Còn port thì bạn đã dùng ACL để cho phép cái nào chạy, cái nào không rồi phía bên trên rồi.

Làm rồi thử lại nhé.
Nếu vẫn chưa được kiểm tra xem nếu nối trực tiếp thì client có truy cập được web server không

Cám ơn bạn,

soledad88
05-11-2011, 12:47 AM
hi...vấn đề của bạn mình củng đã từng gặp .
bạn không sử dụng identity nat nữa mà thay bằng lệnh global (dmz) 1 interface.
chúc bạn thành công!!!