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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple (ha) Pix config with natted internal ip addresses 2

Status
Not open for further replies.

somebigguy

Programmer
Jun 20, 2002
39
US
Hi everyone, I have a problem with what should be a simple Pix config.

I have an internal subnet in the range of 10.62.0.0/16 behind a Pix which has one valid external IP address assigned, let's say 99.99.99.1.

I need a mail server with an IP address of 10.62.1.1 on the internal subnet to accept Internet email through the pix.

The related PIX commands are as follows:

Code:
ip address outside 99.99.99.1 255.255.255.0
ip address inside 10.62.1.2 255.255.0.0

global (outside) 1 interface
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
static (inside,outside) tcp interface smtp 10.62.1.1 smtp netmask 255.255.255.255 0 0

access-list inbound permit tcp any interface outside eq smtp
access-group inbound in interface outside

With this configuration, the mail server can browse the Internet, but I cannot get any incoming email. The hit count on the Access-list remains at zero. I have no other external IP addresses I can use. Most of the examples I've seen include using secondary natted IP addresses for this purpose.

TIA.
 
not sure what you have implemented in your ACL, but it should look more like...


access-list inbound permit tcp any any eq smtp
access-group inbound in interface outside

Your ACL is being to selective and denying everything not coming explicitly from your own IP address.

Computer/Network Technician
CCNA
 
Ooops, think I messed up my cut & paste, will fix it...
 
I thought I could edit my post, but I guess not. Anyway, this is what it looks like now, still doesn't work though:

Code:
ip address outside 99.99.99.1 255.255.255.0
ip address inside 10.62.1.2 255.255.0.0

global (outside) 1 interface
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
static (inside,outside) tcp 24.154.230.27 smtp 10.62.1.1 smtp netmask 255.255.255.255 0 0

access-list inbound permit tcp any any eq smtp
access-group inbound in interface outside

One question I have is, can you host something behind only one external IP address like I'm trying to do, or do you need a second one?
 
this can be done.


I'm running the same this at my house behind a 501

Code:
you mail server ip is [b]10.62.1.1[/b]

ip address outside 99.99.99.1 255.255.255.0
ip address inside 10.62.1.2 255.255.0.0

global (outside) 1 interface
nat (inside) 1 0.0.0.0 0.0.0.0 0 0

static (inside,outside) tcp interface smtp [b]10.62.1.1[/b] smtp netmask 255.255.255.255 0 0

access-list inbound permit tcp any any eq smtp
access-group inbound in interface outside

this will allow port 25(smtp) to be open to the internet
 
Thanks guys, I'm starting to wonder if the ISP is blocking the traffic somehow, I'll look into that next...
 
It's possible if they normally do not allow servers to be run.. and may just need to allow your IP address.

Computer/Network Technician
CCNA
 
Confirmed with the ISP today that they are filtering out all those ports. Thanks to all that replied.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top