Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with PIX 501 config-HTTP and SMTP 2

Status
Not open for further replies.

cisconewbee

Programmer
Dec 1, 2004
18
US
Hi,
I am a newbie to the PIX 501 and could use some help with my configuration. (licensed for unlimited users). Goal is to have a PC network using DHCP and a public email and http server. DNS is served from FreeDNS. Connected one PC to port 1 to test and the DHCP server on the PIX is serving addresses out of the address pool.

Problem: I am trying to test and I cannot get in or out of the network. I can get an ICMP echo from the inside interface 192.168.1.1, but can't get past that to the outside.

Any help would be MUCH appreciated.

Here's the PIX Config:

PIX Version 6.3(3)
interface ethernet0 auto
interface ethernet1 100full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password xxxxxxxxxxxxxxx encrypted
passwd xxxxxxxxxxxxx encrypted
hostname xxxxxxxxxxx
domain-name abc123.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

!--- x.x.6.38 goes to router on x.x.6.1 - Class C
access-list acl_out permit tcp any host x.x.x.38 eq smtp
access-list acl_out permit tcp any host x.x.x.38 eq imap4
access-list acl_out permit tcp any host x.x.x.38 eq www

pager lines 24
mtu outside 1500
mtu inside 1500

ip address outside dhcp setroute
ip address inside 192.168.1.1 255.255.255.0
ip audit info action alarm
ip audit attack action alarm

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

!--- enable smtp/imap
static (inside,outside) tcp interface smtp 192.168.1.4 smtp netmask 255.255.255.255 0 0
static (inside,outside) tcp interface 255.255.255.255 0 0
static (inside,outside) x.x.x.38 192.168.1.4 netmask 255.255.255.255 0 0

access-group acl_out in interface outside
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 timeout 5
ssh timeout 5
console timeout 0

!--- save a few IPs for servers...allocate rest to PC network
dhcpd address 192.168.1.31-192.168.1.253 inside
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd auto_config outside
dhcpd enable inside
terminal width 80
 
Config looks right.

Is your outside interface successfully getting an address from DHCP? Is the route geting set?

sho ip
System IP Addresses:
ip address outside pix-outside 255.255.255.252
ip address inside 10.3.12.1 255.255.255.0
Current IP Addresses:
ip address outside pix-outside 255.255.255.252
ip address inside 10.3.12.1 255.255.255.0

sho route
pix-aurora# sho route
outside 0.0.0.0 0.0.0.0 xx.113.15.193 1 OTHER static
inside net-aa 255.255.255.0 10.3.12.1 1 CONNECT st


You can verify connectivity on the outside by checking the arp cache. You should see the mac address of the router that is your default route on the outside. (Along with the inside hosts)

As in
pix-aa# sho arp
outside xx.113.15.193 0001.227f.9320

 
Thanks for the rapid assistance:
> sh ip
System IP Addresses:
no ip address outside
ip address inside 192.168.1.1 255.255.255.0
Current IP Addresses:
no ip address outside
ip address inside 192.168.1.1 255.255.255.0

sho route
inside 192.168.1.0 255.255.255.0 192.168.1.1 1 CONNECT static

So, how do I fix this?
 
Is your outside interface up? First line should be up/up
pix-aa# sho int
interface ethernet0 "outside" is up, line protocol is up
Hardware is i82559 ethernet, address is 0007.50b7.33c2
IP address x.y.z.w, subnet mask 255.255.255.252
MTU 1500 bytes, BW 10000 Kbit half duplex

If not check wires/speed/duplex etc.
If it is up, then is there a DCHP server on the outside? Can you put a static IP and test.
 
Inside and outside are up. I changed between full duplex and half duplex. No change in problem. The outside router is owned by an ISP. I don't know if there is a DHCP server there. How would I configure the outside with a static IP?

Current status:

sho int
interface ethernet0 "outside" is up, line protocol is up
Hardware is i82559 ethernet, address is 0012.4364.fd98
MTU 1500 bytes, BW 10000 Kbit half duplex
222328 packets input, 16113239 bytes, 0 no buffer
Received 219871 broadcasts, 0 runts, 0 giants
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
22194 packets output, 11864687 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 babbles, 0 late collisions, 0 deferred
10 lost carrier, 0 no carrier
input queue (curr/max blocks): hardware (128/128) software (0/9)
output queue (curr/max blocks): hardware (0/9) software (0/1)
interface ethernet1 "inside" is up, line protocol is up
Hardware is i82559 ethernet, address is 0012.4364.fd99
IP address 192.168.1.1, subnet mask 255.255.255.0
MTU 1500 bytes, BW 100000 Kbit full duplex
18877 packets input, 2073196 bytes, 0 no buffer
Received 1014 broadcasts, 0 runts, 0 giants
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
15041 packets output, 18684709 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 babbles, 0 late collisions, 0 deferred
0 lost carrier, 0 no carrier
input queue (curr/max blocks): hardware (128/128) software (0/27)
output queue (curr/max blocks): hardware (0/48) software (0/1)


sho arp
outside x.x.6.1 00d0.bad3.b181
inside 192.168.1.32 0030.482c.3e1c
inside 192.168.1.31 000b.db94.a767
inside 192.168.1.2 000b.db94.a767

show route
inside 192.168.1.0 255.255.255.0 192.168.1.1 1 CONNECT static

show ip
System IP Addresses:
no ip address outside
ip address inside 192.168.1.1 255.255.255.0
Current IP Addresses:
no ip address outside
ip address inside 192.168.1.1 255.255.255.0
 
- assign the address manually.
ip address outside [address] [netmask]
where [address] and [netmask] are supplied by your ISP.
- define the default route.
route outside 0.0.0.0 0.0.0.0 x.x.6.1

I think you will also need to tweak your 'dhcpd auto_config outside' command and/or manually make DNS/domain name entries as they are not being discovered by the outside DHCP client.
 
Executed:
ip address outside x.x.x.38 255.255.255.0
route outside 0.0.0.0 0.0.0.0 x.x.6.1

sho ip
System IP Addresses:
ip address outside x.x.x.38 255.255.255.0
ip address inside 192.168.1.1 255.255.255.0
Current IP Addresses:
ip address outside x.x.x.38 255.255.255.0
ip address inside 192.168.1.1 255.255.255.0

For the dns, I used this command:
no dhcpd auto_config outside
dhcpd dns x.x.x.101 x.x.x.211

I tried to outbound surf the internet on client computer attached to firewall port 4. Also tried nslookup, ping and tracert. Still not seeing DNS servers.
But the ipconfig /all looks good. (DHCP assigned .31,
Gateway: 192.168.1.1, DNS Servers are correct)

Any ideas?
 
From the pix,
Can you ping your ISP's router? The routers IP address should be x.x.x.1 where the x's match up with your firewalls address, and it should also be what is in your route outside statement.
If that fails, is the router's mac address in your arp cache? If ICMP fails because they block it, the fact that it is in your ARP cache means you have a connection to it.

Can you ping beyond the ISP's router?
"Debug ICMP trace" might come in handy.

 
I could not ping the ISPs router from the pix , so I changed ip address outside to this:

ip address outside 208.30.6.1 255.255.255.0

And now I get a successful ping reply. But I cannot ping beyond the router. I have another working network and I can ping beyond the same router from there, so I know it's a config issue, but not sure what the issue is.

Here's the current PIX config:
PIX Version 6.3(3)
interface ethernet0 10baset
interface ethernet1 100full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password xxxxxxxxxx encrypted
passwd xxxxxxxxxxx encrypted
hostname xxxxxx
domain-name xxxxxx.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 acl_out permit tcp any host x.x.6.38 eq smtp arp timeout value, v
access-list acl_out permit tcp any host x.x.6.38 eq imap4
access-list acl_out permit tcp any host x.x.6.38 eq www
access-list acl_out permit icmp any any echo-reply
pager lines 24
mtu outside 1500
mtu inside 1500
ip address outside x.x.6.1 255.255.255.0
ip address inside 192.168.1.1 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
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) tcp interface smtp 192.168.1.4 smtp netmask 255.255.255.255 0 0
static (inside,outside) tcp interface 255.255.255.255 0 0
static (inside,outside) x.x.6.38 192.168.1.4 netmask 255.255.255.255 0 0
access-group acl_out in interface outside
route outside 0.0.0.0 0.0.0.0 x.x.6.1 1
timeout xlate 0:05: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 timeout 5
ssh timeout 5
console timeout 0
dhcpd address 192.168.1.31-192.168.1.253 inside
dhcpd dns x.x.x.110 x.x.x.201
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd enable inside
terminal width 80
 
The address in your 'route outside' statement needs to be the address of the ISP's router. I think you used the address of your firewall.

ip address outside x.x.6.1 255.255.255.0
.
.
.
route outside 0.0.0.0 0.0.0.0 x.x.6.1 1

In your config they are the same, right?
 
Here's the layout:

Router to outside = x.x.6.1
PIX external = x.x.6.38
Pix internal 192.168.1.1
 
add this cli to do a traceroute
access-list acl_out permit icmp any any time-exceeded
 
Need either static/dymamic for outside interface
You have the same ip address x.x.6.1 for both outside & next hop
...
ip address outside x.x.6.1 255.255.255.0
ip address inside 192.168.1.1 255.255.255.0
.....
route outside 0.0.0.0 0.0.0.0 x.x.6.1 1
 
maybe I am missing something here Real Shadow.
>> Need either static/dymamic for outside interface
>> You have the same ip address x.x.6.1 for both outside & >> next hop
>> ...
>> ip address outside x.x.6.1 255.255.255.0
>> ip address inside 192.168.1.1 255.255.255.0
>> .....
>> route outside 0.0.0.0 0.0.0.0 x.x.6.1 1

My inside is 192.168.1.1 and my outside is routable x.x.6.1
I am new to this, so could you explain how these addresses are the same to the PIX.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top