Link to home
Create AccountLog in
Avatar of integservices
integservicesFlag for United States of America

asked on

How do I get NAT working properly on a pix 520?

We are currently using a pix 506 with IOS 6.3.5 and PDM 3.0.4. We are trying to move to a move to a pix 520 to use more features.

On the pix 506 everything is working properly. We have 3 servers with NAT and access rules to allow us to use remote desktop and other services, and it's been working fine.

On the pix 520:
When I enable NAT on a computer that was Nat'ed on the 506, it can no longer connect to the internet.
From the Pix 506: 
: Saved
: Written by enable_15 at 07:50:51.902 UTC Tue Mar 4 2008
PIX Version 6.3(5)
interface ethernet0 10full
interface ethernet1 10full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password 8Ry2YjIyt7RRXU24 encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
hostname pixfirewall
domain-name tis-nj.com
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
name 192.168.1.69 EMA-Server1
access-list outside_access_in permit tcp any eq 3389 host 68.236.220.86 eq 3389 
access-list outside_access_in permit tcp any host 68.236.220.83 eq 3389 
access-list outside_access_in remark DS-System
access-list outside_access_in permit tcp any host 68.236.220.83 eq 4401 
access-list outside_access_in permit tcp any host 68.236.220.83 eq 4403 
access-list outside_access_in permit tcp any host 68.236.220.85 eq 3389 
access-list outside_access_in permit tcp any host 68.236.220.85 eq www 
access-list outside_access_in permit tcp any host 68.236.220.84 eq 3389 
access-list outside_access_in permit tcp any host 68.236.220.84 eq www 
 
pager lines 24
mtu outside 1500
mtu inside 1500
ip address outside 68.236.220.82 255.255.255.0
ip address inside 10.0.0.1 255.0.0.0
ip audit info action alarm
ip audit attack action alarm
pdm location 192.168.1.3 255.255.255.255 inside
pdm location EMA-Server1 255.255.255.255 inside
pdm location 68.236.220.83 255.255.255.255 outside
pdm location 192.168.1.28 255.255.255.255 inside
pdm location 192.168.1.14 255.255.255.255 inside
pdm location 192.168.1.25 255.255.255.255 inside
pdm location 192.168.1.20 255.255.255.255 inside
pdm location 10.0.0.25 255.255.255.255 inside
pdm location 10.0.0.0 255.255.0.0 inside
pdm location 10.0.0.20 255.255.255.255 inside
pdm location 10.0.0.28 255.255.255.255 inside
pdm location 10.0.0.3 255.255.255.255 inside
pdm location 10.0.0.0 255.255.255.0 inside
pdm location 192.168.1.0 255.255.255.0 inside
pdm logging informational 100
pdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
static (inside,outside) 68.236.220.86 EMA-Server1 netmask 255.255.255.255 0 0 
static (inside,outside) 68.236.220.83 10.0.0.25 netmask 255.255.255.255 0 0 
static (inside,outside) 68.236.220.85 10.0.0.20 netmask 255.255.255.255 0 0 
static (inside,outside) 68.236.220.84 10.0.0.28 netmask 255.255.255.255 0 0 
access-group outside_access_in in interface outside
route outside 0.0.0.0 0.0.0.0 68.236.220.1 1
timeout xlate 0:05: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 192.168.1.3 255.255.255.255 inside
http 10.0.0.3 255.255.255.255 inside
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
telnet 192.168.1.0 255.255.255.0 inside
telnet timeout 60
ssh timeout 5
console timeout 0
dhcpd dns 71.250.0.12 71.242.0.12
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd auto_config outside
terminal width 80
Cryptochecksum:b7444d423238a30763b93085574dfa37
: end
 
 
 
 
 
From the pix 520: 
: Saved
: Written by enable_15 at 12:26:28.195 UTC Tue Mar 4 2008
PIX Version 6.3(5)
interface ethernet0 auto
interface ethernet1 auto
interface ethernet2 100full
interface ethernet3 100full
interface ethernet4 100full
interface ethernet5 100full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
nameif ethernet2 intf2 security4
nameif ethernet3 intf3 security6
nameif ethernet4 intf4 security8
nameif ethernet5 intf5 security10
enable password 8Ry2YjIyt7RRXU24 encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
hostname pix
domain-name ema-data.com
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 outside_access_in permit tcp any host 68.236.220.83 
access-list outside_access_in permit tcp any host 68.236.220.83 eq 3389 
access-list outside_access_in permit tcp any host 68.236.220.83 eq 4401 
access-list outside_access_in permit tcp any host 68.236.220.83 eq 4403 
access-list outside_access_in permit tcp any host 68.236.220.85 eq 3389 
access-list outside_access_in permit tcp any host 68.236.220.85 eq www 
access-list outside_access_in permit tcp any host 68.236.220.84 eq 3389 
access-list outside_access_in permit tcp any host 68.236.220.84 eq www 
access-list outside_access_in permit tcp any host 68.236.220.84 eq https 
access-list outside_access_in permit icmp any any 
pager lines 24
mtu outside 1500
mtu inside 1500
mtu intf2 1500
mtu intf3 1500
mtu intf4 1500
mtu intf5 1500
ip address outside 68.236.220.82 255.255.255.0
ip address inside 10.0.0.1 255.0.0.0
no ip address intf2
no ip address intf3
no ip address intf4
no ip address intf5
ip audit info action alarm
ip audit attack action alarm
no failover
failover timeout 0:00:00
failover poll 15
no failover ip address outside
no failover ip address inside
no failover ip address intf2
no failover ip address intf3
no failover ip address intf4
no failover ip address intf5
pdm location 10.0.0.254 255.255.255.255 inside
pdm location 10.0.0.20 255.255.255.255 inside
pdm location 10.0.0.0 255.255.255.0 inside
pdm location 10.0.0.2 255.255.255.255 inside
pdm location 10.0.0.3 255.255.255.255 inside
pdm location 10.0.0.25 255.255.255.255 inside
pdm location 10.0.0.28 255.255.255.255 inside
pdm history enable
arp timeout 14400
global (outside) 10 interface
nat (inside) 10 0.0.0.0 0.0.0.0 0 0
static (inside,outside) 68.236.220.85 10.0.0.20 netmask 255.255.255.255 0 0 
static (inside,outside) 68.236.220.83 10.0.0.25 netmask 255.255.255.255 0 0 
static (inside,outside) 68.236.220.84 10.0.0.28 netmask 255.255.255.255 0 0 
static (inside,outside) 68.236.220.86 10.0.0.3 netmask 255.255.255.255 0 0 
access-group outside_access_in in interface outside
route outside 0.0.0.0 0.0.0.0 68.236.220.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 
http server enable
http 10.0.0.254 255.255.255.255 inside
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
telnet 10.0.0.0 255.255.255.0 inside
telnet timeout 5
ssh 10.0.0.0 255.255.255.0 inside
ssh timeout 5
console timeout 0
terminal width 80
Cryptochecksum:16effce83e5635d3337f4e905035647c
: end

Open in new window

Avatar of TG Tran
TG Tran
Flag of United States of America image

Have you tried to replace existing static lines in 520 with:
static (inside,outside) tcp 68.236.220.85 www 10.0.0.20 www netmask 255.255.255.255 0 0
static (inside,outside) tcp 68.236.220.85 3389 10.0.0.20 3389 netmask 255.255.255.255 0 0
static (inside,outside)tcp 68.236.220.83 3389 10.0.0.25 3389 netmask 255.255.255.255 0 0
static (inside,outside)tcp 68.236.220.83 4401 10.0.0.25 4401 netmask 255.255.255.255 0 0
static (inside,outside)tcp 68.236.220.83 4403 10.0.0.25 4403 netmask 255.255.255.255 0 0
static (inside,outside)tcp 68.236.220.84 3389 10.0.0.28 3389 netmask 255.255.255.255 0 0
static (inside,outside)tcp 68.236.220.84 www 10.0.0.28 www netmask 255.255.255.255 0 0
static (inside,outside)tcp 68.236.220.84 https 10.0.0.28 https netmask 255.255.255.255 0 0
When you put the 520 in place to test out the NAT, did you clear the ARP table of the next hop router (gateway)?
Avatar of integservices

ASKER

Thanks I'll try replacing my static lines with those.




How do I clear the ARP table?

Our setup goes from the PIX, then through three 3500XL switches before it gets to the servers. Do you think the switches could be storing incorrect ARP information?
ASKER CERTIFIED SOLUTION
Avatar of batry_boy
batry_boy
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account