• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1615
  • Last Modified:

Problem with Cisco ASA 5505 static PAT for incoming SMTP

Please help.

I thought this would be simple but I've got something wrong and I can't get it to work.

The problem is I'm trying to configure a Cisco ASA 5505 to allow incoming and outgoing SMTP from the outside interface to a server on the inside VLAN.

I've researched the other articles on the site and I think I'm doing the right things but the config doesn't work and the packet tracer keeps telling me the fault is with the NAT rule.

I started using the ASDM UI and then the CLI just in case there was a bug in the UI.

Would someone please look at the config and tell me what I've got wrong cos it's doing me in!

: Saved
:
ASA Version 8.2(1)
!
hostname FAST-ASA-1
domain-name fast.local
enable password xxxjluP39KTQ6qcU encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
names
name 192.168.10.10 Office-Server
!
interface Vlan1
 nameif inside
 security-level 100
 ip address 192.168.10.1 255.255.255.0
!
interface Vlan2
 nameif outside
 security-level 0
 ip address 81.xxx.xxx.120 255.255.255.224
!
interface Ethernet0/0
 switchport access vlan 2
!
interface Ethernet0/1
!
interface Ethernet0/2
!
interface Ethernet0/3
!
interface Ethernet0/4
!
interface Ethernet0/5
!
interface Ethernet0/6
!
interface Ethernet0/7
!
boot system disk0:/asa821-k8.bin
ftp mode passive
dns server-group DefaultDNS
 domain-name fast.local
same-security-traffic permit intra-interface
access-list outside_access_in extended permit tcp any eq smtp host Office-Server eq smtp log
pager lines 24
logging enable
logging asdm informational
mtu inside 1500
mtu outside 1500
icmp unreachable rate-limit 1 burst-size 1
asdm image disk0:/asdm-621.bin
no asdm history enable
arp timeout 14400
nat-control
global (outside) 101 interface
nat (inside) 101 0.0.0.0 0.0.0.0
static (inside,outside) tcp interface smtp Office-Server smtp netmask 255.255.255.255
access-group outside_access_in in interface outside
route outside 0.0.0.0 0.0.0.0 81.xxx.xxx.97 5
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 sip-provisional-media 0:02:00 uauth 0:05:00 absolute
timeout tcp-proxy-reassembly 0:01:00
dynamic-access-policy-record DfltAccessPolicy
http server enable
http 192.168.10.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
crypto ipsec security-association lifetime seconds 28800
crypto ipsec security-association lifetime kilobytes 4608000
telnet timeout 5
ssh timeout 5
console timeout 0

threat-detection basic-threat
threat-detection statistics access-list
no threat-detection statistics tcp-intercept
webvpn
!
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 netbios
  inspect rsh
  inspect rtsp
  inspect skinny  
  inspect esmtp
  inspect sqlnet
  inspect sunrpc
  inspect tftp
  inspect sip  
  inspect xdmcp
!
service-policy global_policy global
prompt hostname context
Cryptochecksum:b24eddd08f05e4981454df5e5d59f749
: end
asdm image disk0:/asdm-621.bin
no asdm history enable

Many thanks,

Jerry.
0
Jerry Collins
Asked:
Jerry Collins
1 Solution
 
lrmooreCommented:
NAT is correct, but not the access list
  no access-list outside_access_in extended permit tcp any eq smtp host Office-Server eq smtp log
  access-list outside_access_in extended permit tcp any interface outside eq smtp log
0
 
Jerry CollinsAuthor Commented:
Thank you very much, that works perfectly.

Now I just need to work out what the difference was.
0

Featured Post

The IT Degree for Career Advancement

Earn your B.S. in Network Operations and Security and become a network and IT security expert. This WGU degree program curriculum was designed with tech-savvy, self-motivated students in mind – allowing you to use your technical expertise, to address real-world business problems.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now