cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2333
Views
0
Helpful
4
Replies

Problem accessing and downloading FTP on VPN

Ratatapaa
Level 1
Level 1

Ok

Here is my situation  we connect to Cisco ASA 5505 on IPSEC VPN  the cisco fowards the demand to the our Juniper router.  what ever we do on VPN works #1 exept FTP

Below me is the Cisco config (with personal data removed).

problem in the company is that the IP adressing as been butched imo

We have 6 clients

1.0

2.0

3.0

4.0

5.0

6.0

Since most home routers use 0.0 1.0 or 2.0 most of our clients cant connect to the VPN  so my boss configured our Juniper to translate the IP

So to access 2.0 we do 202.0

So exemple to access in RDP a server in 192.168.2.220  we write in windows RDP 192.168.202.220 and the Juniper converts the data to 2.220 and all works fine

EXEPT  FTP.

The FTP server is at 192.168.2.19

So if i write in IE or Firefox (ps file zilla doesnt work)

ftp://192.168.2.19  I get the Folder listing. but when i click on any folder or file i get a time out error.

while if i do ftp://192.168.202.19  i dont even get the initial listing.

If i look in the Juniper i can see the data entering

So the problem seems to be  when returning from the juniper or the cisco.

Also the FTP server is 3rd party so when i called the company to see if it's active or passive.  They said  It's both.

I'm guessing the problem comes from the Juniper but still taking a chance

ASA Version 8.2(1)
!
terminal width 250
hostname router
enable password encrypted
passwd encrypted
names
!
interface Vlan1
nameif inside
security-level 100
ip address 192.168.192.2 255.255.255.252
!
interface Vlan2
nameif outside
security-level 0
ip address x.x.x.x 255.255.255.248
!
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
!
ftp mode passive
object-group service grp_outside_in tcp
description Ports require for internal forwarding
port-object eq smtp
port-object eq ssh
access-list inside-out extended permit ip any any
access-list inside-out extended permit icmp any any
access-list no_nat extended permit ip 192.168.0.0 255.255.0.0 10.250.128.0 255.255.255.0
access-list split-tunnel extended permit ip 192.168.0.0 255.255.0.0 10.250.128.0 255.255.255.0
access-list 101 extended permit ip 10.250.128.0 255.255.255.0 192.168.201.0 255.255.255.0
access-list 101 extended permit ip 10.250.128.0 255.255.255.0 host 192.168.202.19
access-list 102 extended permit ip 10.250.128.0 255.255.255.0 192.168.202.0 255.255.255.0
access-list 102 extended permit ip 10.250.128.0 255.255.255.0 192.168.2.0 255.255.255.0
access-list 103 extended permit ip 10.250.128.0 255.255.255.0 host 192.168.202.19
access-list 103 extended permit ip 10.250.128.0 255.255.255.0 192.168.203.0 255.255.255.0
access-list 104 extended permit ip 10.250.128.0 255.255.255.0 192.168.204.0 255.255.255.0
access-list 104 extended permit ip 10.250.128.0 255.255.255.0 host 192.168.202.19
access-list 105 extended permit ip 10.250.128.0 255.255.255.0 host 192.168.202.19
access-list 105 extended permit ip 10.250.128.0 255.255.255.0 192.168.205.0 255.255.255.0
access-list 106 extended permit ip 10.250.128.0 255.255.255.0 192.168.206.0 255.255.255.0
access-list 106 extended permit ip 10.250.128.0 255.255.255.0 192.168.202.0 255.255.255.0
access-list 114 extended permit ip 10.250.128.0 255.255.255.0 192.168.214.0 255.255.255.0
access-list 114 extended permit ip 10.250.128.0 255.255.255.0 192.168.201.0 255.255.255.0
access-list 114 extended permit ip 10.250.128.0 255.255.255.0 192.168.202.0 255.255.255.0
access-list 114 extended permit ip 10.250.128.0 255.255.255.0 192.168.203.0 255.255.255.0
access-list 114 extended permit ip 10.250.128.0 255.255.255.0 192.168.204.0 255.255.255.0
access-list 114 extended permit ip 10.250.128.0 255.255.255.0 192.168.205.0 255.255.255.0
access-list 114 extended permit ip 10.250.128.0 255.255.255.0 192.168.206.0 255.255.255.0
access-list 200 extended permit ip 10.250.128.0 255.255.255.0 192.168.203.0 255.255.255.0
access-list 200 extended permit ip 10.250.128.0 255.255.255.0 192.168.204.0 255.255.255.0
access-list 200 extended permit ip 10.250.128.0 255.255.255.0 192.168.205.0 255.255.255.0
access-list 200 extended permit ip 10.250.128.0 255.255.255.0 host 192.168.202.19
access-list 400 extended permit ip 10.250.128.0 255.255.255.0 192.168.201.0 255.255.255.0
access-list 400 extended permit ip 10.250.128.0 255.255.255.0 192.168.202.0 255.255.255.0
access-list 400 extended permit ip 10.250.128.0 255.255.255.0 192.168.203.0 255.255.255.0
access-list 400 extended permit ip 10.250.128.0 255.255.255.0 192.168.204.0 255.255.255.0
access-list 400 extended permit ip 10.250.128.0 255.255.255.0 192.168.205.0 255.255.255.0
access-list 400 extended permit ip 10.250.128.0 255.255.255.0 192.168.206.0 255.255.255.0
access-list 400 extended permit ip 10.250.128.0 255.255.255.0 192.168.214.0 255.255.255.0
access-list 201 extended permit ip 10.250.128.0 255.255.255.0 192.168.201.0 255.255.255.0
access-list 201 extended permit ip 10.250.128.0 255.255.255.0 192.168.202.0 255.255.255.0
access-list 201 extended permit ip 10.250.128.0 255.255.255.0 192.168.206.0 255.255.255.0
access-list 500 extended permit tcp 10.250.128.0 255.255.255.0 192.168.202.0 255.255.255.0 eq ftp
access-list 500 extended permit tcp 10.250.128.0 255.255.255.0 192.168.202.0 255.255.255.0 eq ftp-data
access-list 500 extended permit tcp 10.250.128.0 255.255.255.0 192.168.202.0 255.255.255.0 gt 1024

pager lines 34
logging enable
logging timestamp
logging buffered debugging
logging trap debugging
logging asdm informational
mtu inside 1500
mtu outside 1500
ip local pool mobilepool 10.250.128.100-10.250.128.130 mask 255.255.255.0
icmp unreachable rate-limit 1 burst-size 1
asdm image disk0:/asdm-621.bin
no asdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list no_nat
nat (inside) 1 0.0.0.0 0.0.0.0
route outside 0.0.0.0 0.0.0.0 x.x.x.x 1
route inside 192.168.2.0 255.255.255.0 192.168.192.1 1
route inside 192.168.201.0 255.255.255.0 192.168.192.1 1
route inside 192.168.202.0 255.255.255.0 192.168.192.1 1
route inside 192.168.203.0 255.255.255.0 192.168.192.1 1
route inside 192.168.204.0 255.255.255.0 192.168.192.1 1
route inside 192.168.205.0 255.255.255.0 192.168.192.1 1
route inside 192.168.206.0 255.255.255.0 192.168.192.1 1
route inside 192.168.214.0 255.255.255.0 192.168.192.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 sip-provisional-media 0:02:00 uauth 0:05:00 absolute
timeout tcp-proxy-reassembly 0:01:00
dynamic-access-policy-record DfltAccessPolicy
aaa authentication ssh console LOCAL
http server enable
http 192.168.2.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 mobileset esp-3des esp-md5-hmac
crypto ipsec security-association lifetime seconds 28800
crypto ipsec security-association lifetime kilobytes 4608000
crypto dynamic-map dyn1 1 set transform-set mobileset
crypto dynamic-map dyn1 1 set reverse-route
crypto map mobilemap 1 ipsec-isakmp dynamic dyn1
crypto map mobilemap interface outside
crypto isakmp enable outside
crypto isakmp policy 1
authentication pre-share
encryption 3des
hash sha
group 2
lifetime 86400
telnet timeout 5
ssh 192.168.2.0 255.255.255.0 inside
ssh 192.168.192.0 255.255.224.0 inside
ssh 10.0.128.0 255.255.255.0 inside
ssh timeout 5
ssh version 2
console timeout 0
dhcpd auto_config outside
!

threat-detection basic-threat
threat-detection statistics access-list
no threat-detection statistics tcp-intercept
webvpn
group-policy mobilegroup internal
group-policy mobile_policy internal
group-policy mobile_policy attributes
split-tunnel-policy tunnelspecified
split-tunnel-network-list value split-tunnel

(User section with the access list restriction)

tunnel-group mobilegroup type remote-access
tunnel-group mobilegroup general-attributes
address-pool mobilepool
default-group-policy mobile_policy
tunnel-group mobilegroup ipsec-attributes
pre-shared-key
!
class-map global-class
match default-inspection-traffic
class-map inspection
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:4d936450878b9803a1fdde1c7f0fd807
: end

1 Accepted Solution

Accepted Solutions

Marvin Rhoads
Hall of Fame
Hall of Fame

I've seen Juniper's Application Layer Gateway (ALG) give a problem with FTP flows. Check to see if it is enabled and flip it on (or off) and try your ftp again.

For ScreenOS 6+ (Netscreen firewall), the command is "get alg". For ScreenOS 5.4 or lower it's a hidden command "get nat registry vector | i FTP"

For JunOS (SRX Firewall) it's "show security alg status"

View solution in original post

4 Replies 4

Marvin Rhoads
Hall of Fame
Hall of Fame

I've seen Juniper's Application Layer Gateway (ALG) give a problem with FTP flows. Check to see if it is enabled and flip it on (or off) and try your ftp again.

For ScreenOS 6+ (Netscreen firewall), the command is "get alg". For ScreenOS 5.4 or lower it's a hidden command "get nat registry vector | i FTP"

For JunOS (SRX Firewall) it's "show security alg status"

That might have done it, i will check with the client tomorrow and tell you

You sir is a god.

It works and i Thank you very much

I'm happy that fixed it for you and your client. Thanks for the rating.