Telnet through outside PIX interface?

Unanswered Question
Oct 19th, 2008
User Badges:

I have PIX 501 separating my two internal networks.

I am located on network A ( outside PIX interface. Server which I need to access is on network B ( PIX interface.

Here is part of PIX config:

ip address outside

ip address inside


static (inside,outside) tcp interface ftp SERVER ftp netmask

access-list FromOutside permit ip any any

This allows me to ftp from network A to SERVER on network B.

How can I allow telnet (23) to SERVER from network A?

When I replace static to:

static (inside,outside) tcp interface telnet SERVER telnet netmask

then telnet is working but ftp is not.

How to make both ftp and telnet to work?

Here is log entries while I am trying to telnet from network A to SERVER ( on network B:

Rec'd packet not an IPSEC packet. (ip) dest_addr=, src_addr=, prot= tcp

I would appreciate help

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
ray_stone Sun, 10/19/2008 - 22:10
User Badges:


The reason is that either you have mapped only FTP access or telnet access in the static entry.

Delete static nat nd use the following commands

static (inside,outside) interface SERVER netmask

hope, it helps

zbigniewkozyra Mon, 10/20/2008 - 04:15
User Badges:

Yes, it helped when I entered

static (inside,outside) interface SERVER netmask

but right now I cannot ssh to the outside interface of the PIX. Outside interface is(


ssh to - OK

ftp to - OK

telnet to - NOT OK


ftp to - OK

telnet to - OK

ssh to - NOT OK

I will have to remove command I entered beause I need from time to time make changes on this PIX and I cannot access it anymore. Since it is located in remote location I need to have ssh access to it. I will ask someone from this location to reload the PIX so I will have an access to it again but then telnet will not work anymore.

Any suggestion?

Farrukh Haroon Sun, 10/19/2008 - 23:07
User Badges:
  • Red, 2250 points or more

Why are you 'replacing' the static?

Just enter both at once:

static (inside,outside) tcp interface ftp SERVER ftp netmask

static (inside,outside) tcp interface telnet SERVER telnet netmask



zbigniewkozyra Mon, 10/20/2008 - 03:56
User Badges:

I tried and PIX doesn't accept two static to the same interface, one for ftp and one for telnet.

You can have only one or other

ray_stone Mon, 10/20/2008 - 04:06
User Badges:

Try to put only one command what I posted earlier then check its responding or not.

zbigniewkozyra Mon, 10/20/2008 - 04:23
User Badges:

I did the following:

no static (inside,outside) tcp interface ftp SERVER ftp netmask

static (inside,outside) interface SERVER netmask

now ftp and telnet are working but I lost ssh access to the PIX as described in previous post

Farrukh Haroon Mon, 10/20/2008 - 04:51
User Badges:
  • Red, 2250 points or more

Are you running 6.x code?

I know that this works on 7.x for sure...

The ASA will give you a 'warning' but it *will be* there when you do a 'show run static'.



zbigniewkozyra Mon, 10/20/2008 - 05:08
User Badges:

Yes, I run 6.3(4)

static (inside,outside) interface SERVER netmask allowing telnet what I needed but cutting my access to PIX through ssh.

Any other way to allow telnet and ftp but still be able to ssh to PIX?

Can I somehow manually map ftp and telnet?

ray_stone Mon, 10/20/2008 - 06:21
User Badges:

Hi, As i think, it must be connect via SSH. I would advice you while you try to connect PIX through SSH and then check the logs nd see why it's blocking the SSH connection.

Please post your logs.

Hope it will help


This Discussion