Solved

ASA 5505 Port Forwarding

Posted on 2007-12-01
2
1,042 Views
Last Modified: 2008-07-24
I am trying to setup this ASA 5505 to forward the traffic to the internal server. This config is obviously incorrect but I have not been able to figure out why.
: Saved
: Written by enable_15 at 14:55:20.207 UTC Sat Dec 1 2007
!
ASA Version 7.2(2)
!
hostname XXXXPIX
domain-name XX.local
enable password ** encrypted
names
name 172.16.10.0 VPDN
name 10.10.10.0 XX-KC-Inside
name 76.243.82.194 XX-KC-Outside
!
interface Vlan1
 nameif inside
 security-level 100
 ip address 10.1.1.1 255.255.255.0
!
interface Vlan2
 nameif outside
 security-level 0
 ip address 68.x.xx.215 255.255.254.0
!
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
!
passwd ** encrypted
ftp mode passive
dns server-group DefaultDNS
 domain-name XX.local
same-security-traffic permit inter-interface
same-security-traffic permit intra-interface
access-list 101 extended permit icmp any any echo-reply
access-list 101 extended permit icmp any any time-exceeded
access-list 101 extended permit tcp any host 68.x.x.215 eq https
access-list 101 extended permit tcp any host 68.x.x.215 eq 8080
access-list 101 extended permit tcp any host 68.x.x.215 eq www
access-list 101 extended permit tcp any host 68.x.x.215 eq smtp
access-list 101 extended permit tcp any host 68.x.x.215 eq pop3
access-list 101 extended permit tcp any host 68.x.x.215 eq 2525
access-list 101 extended permit tcp any host 68.x.x.214 eq 3389
access-list 101 extended permit tcp any host 68.x.x.214 eq ftp
access-list 101 extended permit tcp any host 68.x.x.215 eq pptp
access-list VPN_ACL_1 extended permit ip 10.1.1.0 255.255.255.0 VPDN 255.255.255.0
access-list VPN_ACL_1 extended permit ip 10.1.1.0 255.255.255.0 XX-KC-Inside 255.255.255.0
access-list crypto_map_1 extended permit ip 10.1.1.0 255.255.255.0 XX-KC-Inside 255.255.255.0
access-list inside_outbound_nat0_acl extended permit ip 10.1.1.0 255.255.255.0 XX-KC-Inside 255.255.255.0
access-list outside_cryptomap_20 extended permit ip 10.1.1.0 255.255.255.0 XX-KC-Inside 255.255.255.0
pager lines 24
logging asdm informational
mtu inside 1500
mtu outside 1500
icmp unreachable rate-limit 1 burst-size 1
icmp permit 10.1.1.0 255.255.255.0 inside
icmp permit 10.1.1.0 255.255.255.0 outside
asdm image disk0:/asdm-522.bin
no asdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list inside_outbound_nat0_acl
nat (inside) 1 0.0.0.0 0.0.0.0
static (inside,outside) tcp interface www 10.1.1.15 www netmask 255.255.255.255
static (inside,outside) tcp interface https 10.1.1.15 https netmask 255.255.255.255
static (inside,outside) tcp interface 8080 10.1.1.10 www netmask 255.255.255.255
static (inside,outside) tcp interface smtp 10.1.1.15 smtp netmask 255.255.255.255
static (inside,outside) tcp interface pop3 10.1.1.15 pop3 netmask 255.255.255.255
static (inside,outside) tcp interface 2525 10.1.1.15 2525 netmask 255.255.255.255
static (inside,outside) tcp interface 3389 10.1.1.20 3389 netmask 255.255.255.255
static (inside,outside) tcp interface ftp 10.1.1.20 ftp netmask 255.255.255.255
static (inside,outside) tcp interface pptp 10.1.1.15 pptp netmask 255.255.255.255
access-group 101 in interface outside
route outside 0.0.0.0 0.0.0.0 68.x.x.1 1
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 uauth 0:05:00 absolute
aaa-server TACACS+ protocol tacacs+
aaa-server RADIUS protocol radius
username andgroup password v86IGUyZAtJNWYja encrypted
aaa authentication ssh console LOCAL
http server enable
http 0.0.0.0 0.0.0.0 inside
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
telnet 0.0.0.0 0.0.0.0 inside
telnet timeout 5
ssh 0.0.0.0 0.0.0.0 inside
ssh 0.0.0.0 0.0.0.0 outside
ssh timeout 5
console timeout 0
 
!
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-map global_policy
 class inspection_default
  inspect ftp
  inspect h323 h225
  inspect h323 ras
  inspect rsh
  inspect rtsp
  inspect sqlnet
  inspect skinny
  inspect sunrpc
  inspect xdmcp
  inspect sip
  inspect netbios
  inspect tftp
  inspect http
  inspect pptp
  inspect dns preset_dns_map
!
service-policy global_policy global
prompt hostname context

Open in new window

0
Comment
Question by:andgroup
2 Comments
 
LVL 6

Assisted Solution

by:brasslan
brasslan earned 150 total points
ID: 20389556
I've got the same make/model of ASA and had the same problem...

In the acl I had to replace the outside IP address with 'interface'

ie..

access-list 101 extended permit tcp any host 68.x.x.215 eq 2525
needs to say
access-list 101 extended permit tcp any host interface eq 2525

I think that should fix traffic coming in for 68.x.x.215, but I don't know what to tell you for traffic coming in on 68.x.x.214 since I've only got one IP address available to me.
0
 
LVL 32

Accepted Solution

by:
rsivanandan earned 350 total points
ID: 20390126
All your access-lists needs to be changed to the following; So do this while connected from inside or on console;

no access-list 101

access-list 101 extended permit icmp any any echo-reply
access-list 101 extended permit icmp any any time-exceeded
access-list 101 extended permit tcp any interface outside eq https
access-list 101 extended permit tcp any interface outside eq 8080
access-list 101 extended permit tcp any interface outside eq www
access-list 101 extended permit tcp any interface outside eq smtp
access-list 101 extended permit tcp any interface outside eq pop3
access-list 101 extended permit tcp any interface outside eq 2525
access-list 101 extended permit tcp any interface outside eq pptp

The second ip address is not used anywhere in your config so I have removed that from the access-list as well.

Cheers,
Rajesh
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Connectivity issues after power outage 5 58
EIGRP Bandwidth 9 39
Grant drive/folder change permissions to VPN user 6 29
Cisco Switch VLAN voice and Data 2 40
Tired of waiting for your show or movie to load?  Are buffering issues a constant problem with your internet connection?  Check this article out to see if these simple adjustments are the solution for you.
Use of TCL script on Cisco devices:  - create file and merge it with running configuration to apply configuration changes
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question