Link to home
Start Free TrialLog in
Avatar of rjayres
rjayres

asked on

Cisco Pix 506e Static NAT inbound for http

Being New to PIX, I have a problem... I used the PDM to setup what I thought would work for static nating 4 servers to four external ip adresses on an external 255.255.255.240 sized network

I have the external address set as needed and I can get out ok.. however I cannot get to the web servers that are on the inside of the network.. what do I need to do to get it to work... I have attached the running conf file (with appropriate deletions)  

Thanks

RJ


PIX Version 6.3(3)
interface ethernet0 auto
interface ethernet1 auto
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password XXXXXX encrypted
passwd XXXXXXXX encrypted
hostname pixfirewall
domain-name ciscopix.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 XXXXX(external address2)  pwds1005
name XXXXX pwsd1004
name XXXXX pwvs1003
name XXXXX pwws1002
name XXXXX pwws1001
access-list outside_access_in permit tcp any eq www any eq www
pager lines 24
mtu outside 1500
mtu inside 1500
ip address outside (external address) 255.255.255.240
ip address inside 192.168.1.1 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
pdm location pwws1001 255.255.255.255 outside
pdm location pwws1002 255.255.255.255 outside
pdm location pwvs1003 255.255.255.255 outside
pdm location pwsd1004 255.255.255.255 outside
pdm location pwds1005 255.255.255.255 outside
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 (outside,inside) 192.168.1.11 pwws1001 netmask 255.255.255.255 0 0
static (outside,inside) 192.168.1.12 pwws1002 netmask 255.255.255.255 0 0
static (outside,inside) 192.168.1.13 pwvs1003 netmask 255.255.255.255 0 0
static (outside,inside) 192.168.1.14 pwsd1004 netmask 255.255.255.255 0 0
static (outside,inside) 192.168.1.15 pwds1005 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 66.23.136.17 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 uauth 0:05:00 absolute
aaa-server TACACS+ protocol tacacs+
aaa-server RADIUS protocol radius
aaa-server LOCAL protocol local
http server enable
http 192.168.1.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 5
ssh timeout 5
console timeout 0
vpdn username XXXXXX password *********
dhcpd address 192.168.1.200-192.168.1.254 inside
dhcpd dns XXXXXXX
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd auto_config outside
dhcpd enable inside
terminal width 80
Cryptochecksum:10ac121b46b3d07c2a9b41a01acf194e
: end
pixfirewall#
Avatar of Les Moore
Les Moore
Flag of United States of America image

Pretty easy.
Remove this line:
   access-list outside_access_in permit tcp any eq www any eq www
In the above line, the source address must be 80 as well as the destination. The inbound source port is random, while the destination port is fixed to 80.

Replace it with this:
   access-list outside_access_in permit tcp any any eq www


Avatar of rjayres
rjayres

ASKER

ok, replaced the line.. still can't get to any of the four servers pwws1001, etc from their external ip addresses
Did you re-apply the acl to the interface?

    re-enter this line:
      access-group outside_access_in in interface outside
Avatar of rjayres

ASKER

yes I did.. I did a wr mem... then I rebooted it just to make sure.
Condition: You must be attempting connections from somewhere physically outside your network to the public IP. You cannot be using an internal PC simply trying to get to the public IP address with http://<public ip>

Given:
  name A.A.A.A pwds1005
  name A.A.A.B pwsd1004
  name A.A.A.C pwvs1003
  name A.A.A.D pwws1002
  name A.A.A.E pwws1001

Try this instead:
  access-list outside_access_in permit tcp any host A.A.A.A eq www
  access-list outside_access_in permit tcp any host A.A.A.B eq www
  access-list outside_access_in permit tcp any host A.A.A.C eq www
  access-list outside_access_in permit tcp any host A.A.A.D eq www
  access-list outside_access_in permit tcp any host A.A.A.E eq www
   access-group outside_access_in in interface outside

Then, post result of "show access-list"

Avatar of rjayres

ASKER

I am outside of the network when I attempt to bring up the site.



pixfirewall(config)# show access-list
access-list cached ACL log flows: total 0, denied 0 (deny-flow-max 1024)
            alert-interval 300
access-list outside_access_in; 6 elements
access-list outside_access_in line 1 permit tcp any any eq www (hitcnt=0)
access-list outside_access_in line 2 permit tcp any host pwws1001 eq www (hitcnt
=0)
access-list outside_access_in line 3 permit tcp any host pwws1002 eq www (hitcnt
=0)
access-list outside_access_in line 4 permit tcp any host pwvs1003 eq www (hitcnt
=0)
access-list outside_access_in line 5 permit tcp any host pwsd1004 eq www (hitcnt
=0)
access-list outside_access_in line 6 permit tcp any host pwds1005 eq www (hitcnt
=0)
pixfirewall(config)#
Can I assume that the hosts all point their default gateway to the PIX 192.168.1.1 ?
Can those servers browse out to the Internet OK?
I would assume it to be a routing issue at this point. Either the gateway on the servers is not set correctly, or the ISP is not properly routing to this IP block.
Avatar of rjayres

ASKER

the gateway on all hosts is indeed 192.168.1.1, and they can all access the internet, on any and all ports.. tried vpn to someplace else as well as web and terminal services

I will check with the ISP in the morning to see if there are any routing issues on their end
Avatar of rjayres

ASKER

Ok.. Checked with the ISP.. they say there is no problem and thats its the pix config.. I can ping the main address of the pix from ourside the network, however I still cannot see the web servers when I type in the (different but configured in the pix and on the same subnet) ip adress for that server.

Any more Ideas?
ASKER CERTIFIED SOLUTION
Avatar of Les Moore
Les Moore
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rjayres

ASKER

It works.... oh Yes Indeedee !

Thanks

RJ