cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
544
Views
0
Helpful
3
Replies

How to config NAT on Cisco PIX Security Appliance Software Version 8.0

kennytran268
Level 1
Level 1

 

Dear guys.

My diagram network as file attached. How can everyone access my web server from internet?

 

On Vigor DrayTek 3900, I configured NAT port Redirection port with bellow information

Protocol: TCP/UDP
Public Port Start: 80
Private IP: 192.168.46.2
Private Port: 80

After , I configure on PIX firewall, I configured as bellow

PIX Version 8.0(3) 
!
hostname ASA
enable password LfltCGAmy0yLzCiC encrypted
names
!
interface Ethernet0
nameif OUTSIDE
security-level 0
ip address 192.168.46.2 255.255.255.0 
!
interface Ethernet1
nameif inside
security-level 100
ip address 10.46.32.1 255.255.255.0 
!
interface Ethernet2
nameif DMZ
security-level 50
ip address 10.46.31.1 255.255.255.0 
!
passwd 2KFQnbNIdI.2KYOU encrypted
ftp mode passive
object-group network inside-subnet
network-object 10.46.32.0 255.255.255.0
access-list outside extended permit tcp any host 10.46.31.199 eq www 
pager lines 24
logging asdm informational
mtu inside 1500
mtu OUTSIDE 1500
mtu DMZ 1500
no failover
icmp unreachable rate-limit 1 burst-size 1
asdm image flash:/asdm-603.bin
no asdm history enable
arp timeout 14400
access-group outside in interface OUTSIDE
route OUTSIDE 0.0.0.0 0.0.0.0 192.168.46.1 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
http 192.168.1.0 255.255.255.0 inside
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 rsh 
inspect rtsp 
inspect esmtp 
inspect sqlnet 
inspect skinny 
inspect sunrpc 
inspect xdmcp 
inspect sip 
inspect netbios 
inspect tftp 
!
service-policy global_policy global
prompt hostname context 
Cryptochecksum:1f891e1c649b4356c69b69ef2d04b61e



From Internet, I try access address 200.200.200.111 on inernet exploer, but it not successfull. Please help me.

3 Replies 3

Bogdan Nita
VIP Alumni
VIP Alumni

Should be something like this:

static (inside,outside) tcp 10.46.31.199 80 192.168.46.2 80 netmask 255.255.255.255
access-list outside extended permit tcp any host 192.168.46.2 eq 80

unfortunately I can't test

 

HTH

Bogdan


@Bogdan Nita wrote:

Should be something like this:

static (inside,outside) tcp 10.46.31.199 80 192.168.46.2 80 netmask 255.255.255.255
access-list outside extended permit tcp any host 192.168.46.2 eq 80

unfortunately I can't test

 

HTH

Bogdan


Thanks for your help, but iit's unsuccessful. I think that you write incorrect because my webserver in DMZ.

This is my startup-config when i changed

QTIASA# show running-config 
: Saved
:
PIX Version 8.0(3) 
!
hostname QTIASA
enable password LfltCGAmy0yLzCiC encrypted
names
!
interface Ethernet0
 nameif OUTSIDE
 security-level 0
 ip address 192.168.46.2 255.255.255.0 
!
interface Ethernet1
 nameif inside
 security-level 100
 ip address 10.46.32.1 255.255.255.0 
!
interface Ethernet2
 nameif DMZ
 security-level 50
 ip address 10.46.31.1 255.255.255.0 
!
passwd 2KFQnbNIdI.2KYOU encrypted
ftp mode passive
object-group network inside-subnet
 network-object 10.46.32.0 255.255.255.0
access-list outside extended permit tcp any host 192.168.46.2 eq www 
pager lines 24
logging asdm informational
mtu inside 1500
mtu OUTSIDE 1500
mtu DMZ 1500
no failover
icmp unreachable rate-limit 1 burst-size 1
asdm image flash:/asdm-603.bin
no asdm history enable
arp timeout 14400
static (DMZ,OUTSIDE) tcp 10.46.31.199 www 192.168.46.2 www netmask 255.255.255.255 
access-group outside in interface OUTSIDE
route OUTSIDE 0.0.0.0 0.0.0.0 192.168.46.1 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
http 192.168.1.0 255.255.255.0 inside
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 rsh 
  inspect rtsp 
  inspect esmtp 
  inspect sqlnet 
  inspect skinny  
  inspect sunrpc 
  inspect xdmcp 
  inspect sip  
  inspect netbios 
  inspect tftp 
!
service-policy global_policy global
prompt hostname context 
Cryptochecksum:6ac6f814394e8a3467d173456ac23e76
: end

Please help me/

 

Can you run a packet tracer and post the output ?

packet-tracer input outside tcp 8.8.8.8 1025 192.168.46.2 80

Review Cisco Networking for a $25 gift card