Solved

VPN Change ASA5500

Posted on 2007-04-04
7
408 Views
Last Modified: 2010-04-09
OK the config below works fine all clients behind the ASA can FTP to the FTP server at the other end. (TargetFTPServer)
Now it needs to be changed so that only 192.168.1.34 can get out to the target FTP server over FTP and the Target FTP server can only get back in to 192.168.1.34 via FTP.

The VPN was set up specifically to allow trafic without checking ACLS but I dont see a "sysopt connection permit-ipsec" command (im guessing thats not a valid command on PIXv7?)

I know this has to come out "access-list outbound extended permit ip any any "

But is it just a matter of changing

access-list outside_20_cryptomap extended permit ip 192.168.1.0 255.255.255.0 host TargetFTPServer
access-list inside_nat0_outbound extended permit ip 192.168.1.0 255.255.255.0 host TargetFTPServer

to

access-list outside_20_cryptomap extended permit tcp 192.168.1.0 255.255.255.0 host TargetFTPServer eq ftp
access-list inside_nat0_outbound extended permit tcp 192.168.1.0 255.255.255.0 host TargetFTPServer eq tfp


-----------------------------------------------------------------------------------------------------------------------------------------------
: Saved
: Written by enable_15 at 07:04:49.016 UTC Tue Apr 3 2007
!
ASA Version 7.2(2)
!
hostname ciscoasa
domain-name default.domain.invalid
enable password XXXXXXXXXXXXXXXX encrypted
names
name 10.1.0.1 TargetFTPServer
name 456.456.456.456 TargetVPNConcentrator
!
interface Vlan1
 nameif inside
 security-level 100
 ip address 192.168.1.243 255.255.255.0
!
interface Vlan2
 nameif outside
 security-level 0
 ip address 123.123.123.123 255.255.255.240
!
interface Vlan3
 no forward interface Vlan1
 nameif dmz
 security-level 50
 no ip address
!
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 ZXXXXXXXXXXXXXXXXXX encrypted
ftp mode passive
dns server-group DefaultDNS
 domain-name default.domain.invalid
access-list outbound extended permit ip any any
access-list inbound extended permit icmp any any echo-reply
access-list inbound extended permit icmp any any time-exceeded
access-list inbound extended permit icmp any any unreachable
access-list outside_20_cryptomap extended permit ip 192.168.1.0 255.255.255.0 host TargetFTPServer
access-list inside_nat0_outbound extended permit ip 192.168.1.0 255.255.255.0 host TargetFTPServer
pager lines 24
logging asdm informational
mtu outside 1500
mtu inside 1500
mtu dmz 1500
icmp unreachable rate-limit 1 burst-size 1
asdm image disk0:/asdm-522.bin
no asdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list inside_nat0_outbound
nat (inside) 1 0.0.0.0 0.0.0.0
access-group outbound in interface inside
route outside 0.0.0.0 0.0.0.0 62.255.170.174 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
http server enable
http 192.168.1.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 transform-set ESP-3DES-SHA esp-3des esp-sha-hmac
crypto map outside_map 20 match address outside_20_cryptomap
crypto map outside_map 20 set pfs
crypto map outside_map 20 set peer TargetVPNConcentrator
crypto map outside_map 20 set transform-set ESP-3DES-SHA
crypto map outside_map interface outside
crypto isakmp enable outside
crypto isakmp policy 10
 authentication pre-share
 encryption 3des
 hash sha
 group 2
 lifetime 86400
tunnel-group 456.456.456.456 type ipsec-l2l
tunnel-group 456.456.456.456 ipsec-attributes
 pre-shared-key XXXXXXXXXXXXXXXXXXXXXXX
telnet 192.168.1.0 255.255.255.0 inside
telnet timeout 5
ssh timeout 5
console timeout 0
dhcpd auto_config outside
!
dhcpd address 192.168.1.244-192.168.1.254 inside
!

!
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 rsh
  inspect rtsp
  inspect esmtp
  inspect sqlnet
  inspect skinny
  inspect sunrpc
  inspect xdmcp
  inspect sip
  inspect netbios
  inspect tftp
!
service-policy global_policy global
prompt hostname context
Cryptochecksum:9525e007b49c75b4969465063f37e85a
: end
0
Comment
Question by:Pete Long
  • 4
  • 3
7 Comments
 
LVL 32

Expert Comment

by:rsivanandan
Comment Utility
Yes, the sysopt command is not there in 7.x

You could control that by changing the acl to as below (note that both entries you have made in the question are the same :-))

access-list outside_20_cryptomap extended permit tcp host 192.168.1.34 host TargetFTPServer eq ftp
access-list inside_nat0_outbound extended permit tcp host 192.168.1.3 host TargetFTPServer eq tfp

Cheers,
Rajesh
0
 
LVL 57

Author Comment

by:Pete Long
Comment Utility
Hi Rajesh

Yeah I tried that - and nothing :( I added ftp and ftp-data - still nothing, it works with IP but try and lock it down it fails.

Do you think it could be an active passive FTP problem and the FTP server is talking back on strange port numbers?
0
 
LVL 32

Accepted Solution

by:
rsivanandan earned 500 total points
Comment Utility
Can you try with the following instead;

access-list outside_20_cryptomap extended permit tcp 192.168.1.0 255.255.255.0 host TargetFTPServer eq ftp
access-list inside_nat0_outbound extended permit tcp host 192.168.1.3 host TargetFTPServer eq tfp

Active/Passive should not be a problem, isn't the ftp fixup enabled on the ASA ?

Cheers,
Rajesh
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 57

Author Comment

by:Pete Long
Comment Utility
Think I might have tried that hang on...

I'll give it a shot

>>Active/Passive should not be a problem, isn't the ftp fixup enabled on the ASA

  ftp mode passive
and
  inspect ftp

is in the config?
0
 
LVL 57

Author Comment

by:Pete Long
Comment Utility
nope no, joy as soon as I introduce "eq ftp" the thing stops working.

0
 
LVL 57

Author Comment

by:Pete Long
Comment Utility
ah Well - the client is happy to leave it as it is, with IP open - so I'll close this one down, still perplexing though =/
0
 
LVL 32

Expert Comment

by:rsivanandan
Comment Utility
:-) Thats strange.

Cheers,
Rajesh
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Quality of Service (QoS) options are nearly endless when it comes to networks today. This article is merely one example of how it can be handled in a hub-n-spoke design using a 3-tier configuration.
I recently attended Cisco Live! in Las Vegas, a conference that boasted over 28,000 techies in attendance, and a week of hands-on learning hosted by a solid partner with which Concerto goes to market.  Every year, Cisco displays cutting-edge technol…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now