Question

sftp using ssh and pix 515

Asked by: tljones00

Is sftp using ssh on port 22 supported by pix?  If it is I can't seem to pass the traffic on port 22 for sftpssh.  If it is not supported by pix what would be the best way to setup an sftp using ssh makeing sure that its secure and not wide open on the internet.

Thanks

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-11-06 at 08:27:03ID24878368
Topics

Cisco PIX Firewall

,

SSH / Telnet Software

,

Networking Hardware Firewalls

Participating Experts
1
Points
500
Comments
63

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. PIX 515 and SSH
    I am trying to figure out how to give access to outside vendors to inside servers through SSH. I have been able to coonct to the PIX using SSH but how do Iconfigure the PIX to allow outside clients to get to inside resouses using SSH?
  2. PIX 515 and SSH
    I am trying to figure out how to give access to outside vendors to inside servers through SSH. I have been able to coonct to the PIX using SSH but how do I configure the PIX to allow outside clients to get to inside resouses using SSH?
  3. SSH and PIX 515
    I am trying to figure out how to give access to outside vendors to inside servers through SSH. I have been able to coonct to the PIX using SSH but how do I configure the PIX to allow outside clients to get to inside resouses using SSH?
  4. PIX SSH
    I am having an issue with Cisco PIX and consistency in SSH. I have multiple 506E remote sites and a HQ 515E PIX. I support them from home at sometimes. I recently added a statement to all to allow SSH access. ssh myip mysubnet outside The HQ and a remote work, but one re...
  5. PIX and SSH and HTTPS
    If a pix firewall is open for ssh and https connections is that a serious security violation? (only specified ip addresses of course) Could a hacker get in easy? Makes it much easier to administer.
  6. SFTP through Cisco Pix on Non-standard port
    I configured an SFTP (openssh) server inside my network. It runs on port 3000 (for example). I setup an access-list on the PIX to allow traffic on port 3000 to my server, but my test laptop on another network gets "connection refused" when trying to connect on that ...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: jodylemoinePosted on 2009-11-06 at 08:37:32ID: 25760635

SFTP just uses an SSH connection for its transport, so there's no reason why you shouldn't be able to pass that inbound on the 515.  Have you configured your inbound access list to pass the traffic?

 

by: tljones00Posted on 2009-11-06 at 09:19:00ID: 25761033

here is what i have done so far i have a client that wants to send us an xml feed via sftp over ssh port 22.

I installed  sftp server software on my windows 2003 server that sits in the dmz of my network.  That server has 4 internal ip's.  I created an A record for my sftp hostname.  
I created the following rules.
permit outside in any tcp to dmz 30.30.30.73 ssh
created a static translation for the internal 30.30.30.73 to my public a record for the sftp hostname
nothing working so far.

 

by: jodylemoinePosted on 2009-11-06 at 09:24:43ID: 25761080

Okay... the access-list should list the public IP address and not the internal IP address as it gets processed before NAT.

 

by: tljones00Posted on 2009-11-06 at 09:37:38ID: 25761173

so my rule should be

permit outside in any tcp to dmz public ip ssh?

 

by: jodylemoinePosted on 2009-11-06 at 09:40:37ID: 25761194

Exactly.

 

by: tljones00Posted on 2009-11-06 at 09:45:11ID: 25761239

when i put the rule in correct me if im wrong, but will with the public ip will i need to use all 255's in the subnet mask?

 

by: jodylemoinePosted on 2009-11-06 at 09:47:05ID: 25761258

If you're just forwarding the single address, then 255.255.255.255 is the correct mask for the static statement.

 

by: tljones00Posted on 2009-11-06 at 09:55:34ID: 25761335

my pix ask if i want to add the host/network.  
I say yes and it ask about a static route?  it says the following:  The pix does not know how to route packets for this host/network.  Please specify the next hop gateway.  If your pix relies on a dynamic routing protocol like RIP to learn routing for this host/netowrk, please leave the following option unchecked and go to the next page.  Im not sure what i do for this?

 

by: jodylemoinePosted on 2009-11-06 at 09:57:20ID: 25761347

It sounds like your configuration is a bit incomplete if the PIX doesn't know about its own IP address ranges.  Can you post a scrubbed copy (no usernames, passwords or other sensitive data) of your configuration and the version of the PIX software you're running?

 

by: tljones00Posted on 2009-11-06 at 09:58:47ID: 25761362

yes give me about 30 minutes to an hour and i will post it.

 

by: tljones00Posted on 2009-11-06 at 10:28:55ID: 25761669

pix version 6.3(3)

fixup protocol dns maximum-length 512
fixup protocol ftp 21
fixup protocol h323 h225 1720
fixup protocol h323 ras 1718-1719
fixup protocol http 80
fixup protocol rsh 514
fixup protocol rtsp 554
fixup protocol sip 5060
fixup protocol sip udp 5060
fixup protocol skinny 2000
fixup protocol smtp 25
fixup protocol sqlnet 1521
fixup protocol tftp 69
names
name 30.30.30.50 fyitv06
name 30.30.30.51 fyitv06-1
name 30.30.30.52 fyitv
name 30.30.30.54 fyitv06-2
name 30.30.30.55 fyitv02
name 30.30.30.56 fyitv-2
name 30.30.30.57 fyitv-3
name 30.30.30.60 fyitv-1
name 30.30.30.65 fyitv06-3
name 30.30.30.70 fyitv07
name 30.30.30.75 fyitv08
name 30.30.30.85 fyicorp
name 30.30.30.80 fyi_ftp
name 30.30.30.71 fyiclient
name 30.30.30.96 fyi-orb2
name 30.30.30.72 vzftp
name 30.30.30.151 EGS_FTP
name 30.30.30.150 EGS_CORP
name 64.18.0.0 Postini
name 166.130.113.228 mmasse
access-list 101 permit ip 10.0.2.0 255.255.255.0 192.168.2.0 255.255.255.0
access-list 110 permit ip 10.0.2.0 255.255.255.0 192.168.2.0 255.255.255.0
access-list outsidein permit tcp any host 70.85.6.39 eq www
access-list outsidein permit tcp any host 70.85.6.38 eq ftp
access-list outsidein permit tcp any host 70.85.6.39 eq smtp
access-list outsidein permit tcp any host 70.85.6.39 eq pop3
access-list outsidein permit tcp any host 70.85.6.41 eq www
access-list outsidein permit tcp any host 70.85.6.42 eq www
access-list outsidein permit icmp any any
access-list outsidein permit tcp any host 70.85.6.45 eq https
access-list outsidein permit tcp any host 70.85.6.46 eq www
access-list outsidein permit tcp any host 70.85.6.41 eq 8000
access-list outsidein permit tcp any host 70.85.6.43 eq www
access-list outsidein permit tcp any host 70.85.6.43 eq pop3
access-list outsidein permit tcp any host 70.85.6.43 eq 8383
access-list outsidein permit tcp any host 70.85.6.43 eq ldap
access-list outsidein permit tcp any host 70.85.6.40 eq ftp
access-list outsidein permit tcp any host 67.18.70.224 eq www
access-list outsidein permit tcp any host 67.18.70.225 eq www
access-list outsidein permit tcp any host 67.18.70.226 eq www
access-list outsidein permit tcp any host 67.18.70.227 eq ftp
access-list outsidein permit tcp any host 69.93.108.104 eq www
access-list outsidein remark EGS_CORP/
access-list outsidein permit tcp any host 69.93.108.104 eq smtp
access-list outsidein remark EGS_CORP/
access-list outsidein permit tcp any host 69.93.108.104 eq pop3
access-list outsidein remark EGS_CORP/
access-list outsidein permit tcp any host 69.93.108.104 eq 8383
access-list outsidein remark EGS_CORP/
access-list outsidein permit tcp any host 69.93.108.104 eq ldap
access-list outsidein remark EGS_FTP
access-list outsidein permit tcp any host 69.93.108.105 eq ftp
access-list outsidein permit tcp any host 69.93.108.106 eq www
access-list outsidein permit tcp host 69.199.30.18 host 70.85.6.43 eq smtp
access-list outsidein permit tcp host 166.130.112.127 host 70.85.6.43 eq smtp
access-list outsidein permit tcp Postini 255.255.240.0 host 70.85.6.43 eq smtp
access-list outsidein permit tcp host mmasse host 70.85.6.43 eq smtp
access-list outsidein remark SFTP
access-list outsidein permit tcp any host 67.18.70.228 eq ssh
access-list outsidein permit tcp any host 67.18.70.228 eq ftp
access-list outsidein remark FTPSSL
access-list outsidein permit tcp any host 67.18.70.228 eq 990
access-list outsidein permit tcp any host 67.18.70.228 range 5000 5100
access-list fromDMZ permit icmp any any
access-list fromDMZ permit tcp host fyitv06 10.0.2.0 255.255.255.0 eq 1433
access-list fromDMZ permit udp host fyitv06 10.0.2.0 255.255.255.0 eq 1434
access-list fromDMZ permit tcp 30.30.30.0 255.255.255.0 any eq www
access-list fromDMZ permit tcp 30.30.30.0 255.255.255.0 any eq domain
access-list fromDMZ permit udp 30.30.30.0 255.255.255.0 any eq domain
access-list fromDMZ permit tcp 30.30.30.0 255.255.255.0 any eq smtp
access-list fromDMZ permit tcp host fyitv06-2 10.0.2.0 255.255.255.0 eq 1433
access-list fromDMZ permit udp host fyitv06-2 10.0.2.0 255.255.255.0 eq 1434
access-list fromDMZ permit tcp host fyitv-2 10.0.2.0 255.255.255.0 eq 1433
access-list fromDMZ permit udp host fyitv-2 10.0.2.0 255.255.255.0 eq 1434
access-list fromDMZ permit tcp host fyitv-3 10.0.2.0 255.255.255.0 eq 1433
access-list fromDMZ permit udp host fyitv-3 10.0.2.0 255.255.255.0 eq 1434
access-list fromDMZ permit tcp 30.30.30.0 255.255.255.0 any eq ftp
access-list fromDMZ permit tcp host fyitv07 10.0.2.0 255.255.255.0 eq 1433
access-list fromDMZ permit udp host fyitv07 10.0.2.0 255.255.255.0 eq 1434
access-list fromDMZ permit tcp host fyiclient 10.0.2.0 255.255.255.0 eq 1433
access-list fromDMZ permit udp host fyiclient 10.0.2.0 255.255.255.0 eq 1434
access-list fromDMZ permit tcp host fyi-orb2 10.0.2.0 255.255.255.0 eq 1433
access-list fromDMZ permit udp host fyi-orb2 10.0.2.0 255.255.255.0 eq 1434
access-list capture permit ip host fyitv06-3 host 72.16.229.91
access-list capture permit ip host 72.16.229.91 host fyitv06-3
pager lines 24
logging on
mtu outside 1500
mtu inside 1500
mtu dmz 1500
ip address outside 70.85.6.36 255.255.255.240
ip address inside 10.0.2.1 255.255.255.0
ip address dmz 30.30.30.1 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
ip local pool vpnpool 192.168.2.1-192.168.2.50
pdm location 10.0.5.0 255.255.255.128 outside
pdm location 192.168.2.0 255.255.255.0 outside
pdm location 192.168.5.0 255.255.255.0 outside
pdm location 192.168.2.0 255.255.255.0 inside
pdm location 192.168.2.0 255.255.255.192 outside
pdm location 10.0.0.0 255.0.0.0 inside
pdm location 10.0.2.17 255.255.255.255 inside
pdm location fyitv06 255.255.255.255 dmz
pdm location 30.30.30.0 255.255.255.0 inside
pdm location 10.0.2.11 255.255.255.255 inside
pdm location fyitv06-1 255.255.255.255 dmz
pdm location 70.85.6.37 255.255.255.255 outside
pdm location fyitv 255.255.255.255 dmz
pdm location 30.30.30.53 255.255.255.255 dmz
pdm location fyitv06-2 255.255.255.255 dmz
pdm location fyitv02 255.255.255.255 dmz
pdm location fyitv-2 255.255.255.255 dmz
pdm location fyitv-3 255.255.255.255 dmz
pdm location 65.115.138.0 255.255.255.0 outside
pdm location 65.115.138.0 255.255.255.224 outside
pdm location 69.15.64.59 255.255.255.255 outside
pdm location 66.207.120.227 255.255.255.255 outside
pdm location fyitv06-3 255.255.255.255 dmz
pdm location fyitv07 255.255.255.255 dmz
pdm location fyi_ftp 255.255.255.255 dmz
pdm location fyitv08 255.255.255.255 dmz
pdm location fyicorp 255.255.255.255 dmz
pdm location 30.30.30.82 255.255.255.255 dmz
pdm location fyiclient 255.255.255.255 dmz
pdm location 30.30.30.91 255.255.255.255 dmz
pdm location 30.30.30.95 255.255.255.255 dmz
pdm location fyi-orb2 255.255.255.255 dmz
pdm location 30.30.30.97 255.255.255.255 dmz
pdm location xxxxx 255.255.255.255 dmz
pdm location EGS_CORP 255.255.255.255 dmz
pdm location EGS_FTP 255.255.255.255 dmz
pdm location 30.30.30.152 255.255.255.255 dmz
pdm location Postini 255.255.240.0 outside
pdm location 72.16.229.91 255.255.255.255 outside
pdm location 166.130.112.127 255.255.255.255 outside
pdm location mmasse 255.255.255.255 outside
pdm location 69.199.30.18 255.255.255.255 outside
pdm location 30.30.30.73 255.255.255.255 dmz
pdm logging informational 100
pdm history enable
arp timeout 14400
global (outside) 10 70.85.6.37
nat (inside) 0 access-list 101
nat (inside) 10 10.0.2.0 255.255.255.0 0 0
static (inside,dmz) 10.0.2.0 10.0.2.0 netmask 255.255.255.0 0 0
static (dmz,outside) 70.85.6.39 fyitv06 netmask 255.255.255.255 0 0
static (dmz,outside) 70.85.6.38 fyitv06-1 netmask 255.255.255.255 0 0
static (dmz,outside) 70.85.6.42 fyitv06-2 netmask 255.255.255.255 0 0
static (dmz,outside) 70.85.6.45 fyitv06-3 netmask 255.255.255.255 0 0
static (dmz,outside) 70.85.6.46 fyitv07 netmask 255.255.255.255 0 0
static (dmz,outside) 70.85.6.41 fyitv-3 netmask 255.255.255.255 0 0
static (dmz,outside) 70.85.6.43 fyicorp dns netmask 255.255.255.255 0 0
static (dmz,outside) 70.85.6.40 fyi_ftp dns netmask 255.255.255.255 0 0
static (dmz,outside) 67.18.70.224 fyiclient dns netmask 255.255.255.255 0 0
static (dmz,outside) 67.18.70.225 fyi-orb2 dns netmask 255.255.255.255 0 0
static (dmz,outside) 67.18.70.226 30.30.30.97 dns netmask 255.255.255.255 0 0
static (dmz,outside) 67.18.70.227 xxxxx dns netmask 255.255.255.255 0 0
static (dmz,outside) 69.93.108.105 EGS_FTP dns netmask 255.255.255.255 0 0
static (dmz,outside) 69.93.108.104 EGS_CORP dns netmask 255.255.255.255 0 0
static (dmz,outside) 69.93.108.106 30.30.30.152 dns netmask 255.255.255.255 0 0
static (dmz,outside) 67.18.70.228 30.30.30.73 dns netmask 255.255.255.255 0 0
access-group outsidein in interface outside
access-group fromDMZ in interface dmz
route outside 0.0.0.0 0.0.0.0 70.85.6.33 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h225 1:00:00
timeout h323 0:05:00 mgcp 0:05:00 sip 0:30:00 sip_media 0:02:00
timeout uauth 0:05:00 absolute
aaa-server TACACS+ protocol tacacs+
aaa-server RADIUS protocol radius
aaa-server LOCAL protocol local
http server enable
http 10.0.2.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server community public
no snmp-server enable traps
floodguard enable
sysopt connection permit-ipsec
crypto ipsec transform-set ESP-DES-MD5 esp-des esp-md5-hmac
crypto ipsec transform-set myset esp-des esp-md5-hmac
crypto dynamic-map outside_dyn_map 20 set transform-set ESP-DES-MD5
crypto dynamic-map dynmap 10 set transform-set myset
crypto map mymap 10 ipsec-isakmp dynamic dynmap
crypto map mymap interface outside
isakmp enable outside
isakmp identity address
isakmp keepalive 60 60
isakmp nat-traversal 20
isakmp policy 10 authentication pre-share
isakmp policy 10 encryption des
isakmp policy 10 hash md5
isakmp policy 10 group 2
isakmp policy 10 lifetime 86400
vpngroup FYI address-pool vpnpool
vpngroup FYI dns-server 10.0.2.1
vpngroup FYI split-tunnel 110
vpngroup FYI idle-time 1800

vpngroup VPN_GROUP_NAME split-tunnel 110
vpngroup VPN_GROUP_NAME idle-time 1800
telnet 10.0.2.17 255.255.255.255 inside
telnet timeout 5
ssh timeout 5
console timeout 0
dhcpd address 10.0.2.10-10.0.2.100 inside
dhcpd dns 10.0.2.1 216.234.234.30
dhcpd lease 3600
dhcpd ping_timeout 750

 

by: jodylemoinePosted on 2009-11-06 at 10:55:30ID: 25761930

Try this on for size:

access-list fromDMZ permit tcp host 30.30.30.73 eq ssh any

Your NAT is full IP NAT, so there's no problem there.  Your outsidein access list is permitting the inbound SSH/SFTP traffic, so that's all good.  Your fromDMZ access list isn't permitting reply traffic to return though.  The above access list entry should correct that for you.

 

by: tljones00Posted on 2009-11-06 at 12:25:34ID: 25762731

so should my rule be this?

what does the rule look like from the source host/network to the destination host network?

is it    permit source dmz 30.30.30.73 ssh to destination source outside interface 0.0.0.0 mask 0.0.0.0 any

 

by: jodylemoinePosted on 2009-11-06 at 12:28:47ID: 25762750

You're permitting traffic to enter the DMZ interface sourced from 30.30.30.73 port 22/tcp to any external IP address on any port.  I'm not sure what you're referring to when you're talking about rules outside of the context of the access list.

 

by: tljones00Posted on 2009-11-06 at 12:33:58ID: 25762794

forgive me as the firewall is not my specialty but in the gui of the pix im permitting the access from the source network which is the dmz from 30.30.30.73 on tcp port 22 to the destination source.  The destination source should be the outside interface?  or Inside or DMZ  I guess that is what im asking kind of like reversing the orignal permit rule right?  Or i could be a bit confused?  Sorry.  I really appricate you sticking with me on this throughout the day.

 

by: jodylemoinePosted on 2009-11-06 at 12:39:51ID: 25762837

Okay, I'm clued in now.  I haven't touched a PIX GUI in a number of years, so I don't really have a point of reference there.  Essentially, you're allowing replies to the traffic to travel from the DMZ to the outside, so you're permitting based on the source address rather than the destination.  So, taking a guess at the terminology that the GUI is using, your initial source will be 30.30.30.73 22/tcp and your destination source will be any address and port on the outside interface...  so that covers it.

 

by: tljones00Posted on 2009-11-06 at 13:13:16ID: 25763108

i put the rule in and tried to connect to using winscp with no luck

 

by: jodylemoinePosted on 2009-11-06 at 13:18:45ID: 25763146

If you do a "netstat -an" on the Windows machine at 30.30.30.73, do you get the following anywhere in the output?

Proto  Local Address          Foreign Address        State
TCP    0.0.0.0:22             0.0.0.0:0              LISTENING

                                              
1:
2:

Select allOpen in new window

 

by: tljones00Posted on 2009-11-06 at 13:50:42ID: 25763385

yeah i do see that when i run the command

 

by: tljones00Posted on 2009-11-06 at 14:00:27ID: 25763464

i do get an network error that says connection refused

 

by: jodylemoinePosted on 2009-11-06 at 20:01:28ID: 25764932

Are you able to connect to 22/tcp on 30.30.30.73 from another machine on the DMZ?

The interesting thing that we're seeing here is that the PIX is configured to drop any traffic that doesn't meet its admission requirements.  So, if we opens up a port that is not permitted by the PIX (28/tcp, for example) then the PIX drops it with no notification to the client, producing an effect like the following:

$ telnet 67.18.70.228 28
Trying 67.18.70.228...
(which eventually times out)

If we try connecting to the SSH port (22/tcp) which *has* been permitted by the PIX, then we get this:

$ telnet 67.18.70.228 22
Trying 67.18.70.228...
telnet: connect to address 67.18.70.228: Connection refused
telnet: Unable to connect to remote host

In this situation *something* along the way has sent a TCP RST back to the client.  The PIX isn't configured to do this, so the best assumption is that it's reaching the Windows machine at 30.30.30.73 and the Windows box is closing the session.  Is there a separate separate firewall running on the Windows box?  Is the SFTP server configured to only permit connections from certain IP addresses?

I think we're getting close to getting to the bottom of the problem, but I'm inclined to think that we need to look beyond the PIX at this point.

 

by: tljones00Posted on 2009-11-07 at 06:25:00ID: 25766419

i will be going to the office in just a bit to work on this.  what is funny is that i have port 21 open to the ip and when i try and use that port it fails as well.

 

by: tljones00Posted on 2009-11-07 at 07:40:06ID: 25766619

no there is no other firewall im using sysax sftp server software on the windows 2003 server

 

by: jodylemoinePosted on 2009-11-07 at 07:41:46ID: 25766627

When you get to the office, let me know if you can connect to 21/tcp and 22/tcp from another host on the DMZ.  This is looking pretty strange.

 

by: tljones00Posted on 2009-11-07 at 08:15:41ID: 25766809

ok im setup working from home for the time being so we can test a few things.  

 

by: tljones00Posted on 2009-11-07 at 08:22:39ID: 25766842

ok so from another  dmz server i can telnet to 30.30.30.73 port 22 and it responds with ssh 2.0 sysaxssh 1.0

if i try port 21 it responds from filezilla server which i have also setup as i was testing various clients and configurations.  I read that filezilla did not support sftp ssh so i installed sysax server

 

by: jodylemoinePosted on 2009-11-07 at 08:37:29ID: 25766907

Personally, I use FreeFTPd...  which supports both.

Okay, let's compare a working set of DMZ entries with what we have.  Your POP3 service is working just fine:

name 30.30.30.150 EGS_CORP
access-list outsidein permit tcp any host 69.93.108.104 eq pop3
static (dmz,outside) 69.93.108.104 EGS_CORP dns netmask 255.255.255.255 0 0

If I telnet to 69.93.108.104 on 110/tcp, the POP3 server answers perfectly.

Now we look at the DMZ entry for FTP/SFTP and here's what we have:

access-list outsidein permit tcp any host 67.18.70.228 eq ssh
access-list outsidein permit tcp any host 67.18.70.228 eq ftp
static (dmz,outside) 67.18.70.228 30.30.30.73 dns netmask 255.255.255.255 0 0

Other than the aliasing, the configurations are identical.  When I attempt to connect via telnet to 21/tcp, it completes the connection but immediately closes it again.  When I attempt to connect via telnet to 22/tcp, it actively refuses the connection.

Are you sure you don't have any sort of software firewall running on Windows or IP restrictions on FileZilla and the SSH server?

 

by: tljones00Posted on 2009-11-07 at 08:59:58ID: 25767065

i have on the software sysax the server listing on 30.30.30.73 only, i also have 30.30.30.73 set and turned on for PASV transfers.

 

by: jodylemoinePosted on 2009-11-07 at 09:08:05ID: 25767090

I ran a TCP stack fingerprint on 67.18.70.228 22/tcp and it claims that the device responding is Microsoft Windows Server 2003 SP1, so it's definitely the Windows server that's refusing connections and not the PIX.

 

by: tljones00Posted on 2009-11-07 at 09:10:05ID: 25767100

ok i looked and the servers firewall is off

 

by: jodylemoinePosted on 2009-11-07 at 09:14:52ID: 25767113

Wait a minute...  PASV transfers?  SFTP doesn't have a concept of active and passive transfers.  Are you sure that's not an FTPS server?

 

by: tljones00Posted on 2009-11-07 at 09:18:43ID: 25767128

i turned them off just in case just now

 

by: jodylemoinePosted on 2009-11-07 at 09:32:45ID: 25767174

I just took a look at the Sysax product description.  Are you running the free version?  If so, that's going to limit our troubleshooting as it only allows a single connection and will drop me if you're connected as well.  Just as a test, let's turn off Sysax and give FreeFTPd a try.  I know it allows multiple connections and is a simple setup.

 

by: tljones00Posted on 2009-11-07 at 09:37:45ID: 25767187

ok downloaded freeftpd do you want to walk me through the settings for freeftpd

 

by: jodylemoinePosted on 2009-11-07 at 09:38:26ID: 25767190

Default settings should be fine for testing.

 

by: tljones00Posted on 2009-11-07 at 09:42:43ID: 25767201

it wants me generate a certificate before i can start the server

 

by: jodylemoinePosted on 2009-11-07 at 09:48:07ID: 25767221

That's fine.  Normal for SSH-related protocols.

 

by: tljones00Posted on 2009-11-07 at 09:53:36ID: 25767250

ok created key and the sftp server is running

 

by: jodylemoinePosted on 2009-11-07 at 09:55:07ID: 25767255

Running on port 22/tcp?

 

by: tljones00Posted on 2009-11-07 at 09:56:57ID: 25767267

yes listing on 30.30.30.73 port 22

 

by: jodylemoinePosted on 2009-11-07 at 10:00:15ID: 25767279

Okay, it's not application-related.  Windows is still refusing the connection at the stack level.

 

by: tljones00Posted on 2009-11-07 at 10:04:26ID: 25767300

not what else i can do with the server to sllow the connection as windows firewalll is off.

 

by: jodylemoinePosted on 2009-11-07 at 10:12:09ID: 25767328

Now we're starting to get a bit out of my realm.  I specialize in the Cisco hardware, but we only have one Windows machine here and it's only used for occasional testing.  My Windows troubleshooting skills are beyond rusty.

Taking a slightly different tack, are you able to connect to the Internet from the 30.30.30.73 server?  If so, what IP does it register as?  Try http://www.whatismyip.com as a test.

 

by: jodylemoinePosted on 2009-11-07 at 10:16:11ID: 25767354

Interesting note.  If I connect to 67.18.70.227 on 21/tcp instead of 67.18.70.228, I get the following:

220 Hello, I'm freeFTPd 1.0

Are you using freeFTPd elsewhere or have we got a possible mixup in destinations?

 

by: tljones00Posted on 2009-11-07 at 10:16:49ID: 25767356

70.85.6.46

 

by: tljones00Posted on 2009-11-07 at 10:18:59ID: 25767363

let me look at my netsolutions dns information .

I also turned it on for port 21 while i was setting up freeftp just in case

 

by: tljones00Posted on 2009-11-07 at 10:22:57ID: 25767384

67.18.70.228 is the right one as i have the 67.18.70.227 setup and working for another client

 

by: jodylemoinePosted on 2009-11-07 at 10:23:40ID: 25767389

Okay... is that on the same box or are you using FreeFTPd on a different machine?

 

by: tljones00Posted on 2009-11-07 at 10:47:07ID: 25767510

should be same box however  227 should not be in use as iis is disabled on the server there is now ftp server running on that server as we speak.  Do you know how many ips you can set on the nic at a time?  Could that be the problem?

 

by: tljones00Posted on 2009-11-07 at 10:51:04ID: 25767529

sorry i had the freeftp server listing on all ip's that is why you got that response.  I had that for the port 21 and 22.  

 

by: jodylemoinePosted on 2009-11-07 at 10:52:22ID: 25767533

I don't know if there's a limit on how many IPs you can have on the NIC, but the interesting thing is that this works:

access-list outsidein permit tcp any host 67.18.70.227 eq ftp
static (dmz,outside) 67.18.70.227 x.x.x.x dns netmask 255.255.255.255 0 0

But this doesn't:

access-list outsidein permit tcp any host 67.18.70.228 eq ftp
static (dmz,outside) 67.18.70.228 30.30.30.73 dns netmask 255.255.255.255 0 0

 

by: jodylemoinePosted on 2009-11-07 at 10:54:36ID: 25767548

There wouldn't be another machine using 30.30.30.73 on the DMZ, would there?  Also, can you check to see that all of the IPs on that NIC are using the correct subnet masks?  I know I'm grasping at straws here, but I'm not seeing much else at this point.

 

by: tljones00Posted on 2009-11-07 at 10:56:36ID: 25767557

one thing i could do is change the a record ip for this hostname and use another public and see what happens.  Course i would have to modify the rule to reflect the internal private to public but that would be it.

 

by: jodylemoinePosted on 2009-11-07 at 10:57:46ID: 25767566

I don't think the problem is with the public as there's no reference to any other use of that IP.  There might be a problem with the private though.

 

by: tljones00Posted on 2009-11-07 at 11:02:27ID: 25767588

i will add another private ip to the server i will use 30.30.30.74

 

by: tljones00Posted on 2009-11-07 at 15:57:36ID: 25768708

took a break for a while to clear my mind of this.  I added another private ip to the server 30.30.30.74
when i go to modify the permit rule to allow access from outside in to tcp any to dmz 30.30.30.73 ssh to 30.30.30.74   I am presented with some different options for NAT.  These we not present before when i put the orginal rule in.  It ask if i want to nat dynamic or static

 

by: jodylemoinePosted on 2009-11-07 at 18:37:48ID: 25769202

That sounds like something you'd get out of PDM rather than the ASA itself.  If I were dealing directly with the ASA, I would say static, but I'm not quite sure what the PDM is asking.

 

by: tljones00Posted on 2009-11-08 at 06:21:53ID: 25770557

tell you what since I really appricate your continued help i would like to do some more testing and see if it has somthing to do with the private ip.  What would be your availability today?  Im in Texas which is central time zone.  

 

by: jodylemoinePosted on 2009-11-08 at 06:38:05ID: 25770597

I'm in Ontario (Eastern Time) but won't be near a computer today.  I'll try to advise from my mobile though.

 

by: tljones00Posted on 2009-11-08 at 08:33:11ID: 25770922

Do you think changing private ips may help?

 

by: jodylemoinePosted on 2009-11-08 at 08:35:22ID: 25770927

If there's a conflict, yes.

 

by: tljones00Posted on 2009-11-11 at 17:46:57ID: 25800952

Question is on hold pending action on my part. It is not abandoned.

 

by: tljones00Posted on 2009-11-12 at 12:51:01ID: 31651087

Thank you to the expert who helped me through several days worth of troubleshooting.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...