Question Locked

Cisco ASA Config

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hello,

To you Cisco gurus out there. I am trying to set up a Cisco ASA 5510 to allow a specific outside IP to access a Linux box on the inside via ssh. I have set up an access list and only have one real IP to use for them to come inside from the outside. I think I may be setting this up wrong so please if you would enlighten me. I would greatly appreciate it.

4 replies

by synner

static (inside,outside) tcp interface 22 22 netmask 255.255.255.255 0 0

by ccarter8

Thanks for the help SYNner, I tried what you sugested and it didn't work. I may be doing something wrong. I had them enter the internal ip without the <>. Was that correct? Also I am not fairly certain I have the correct ACL info entered in. I am posting a running config that maybe you can look at and see how its set up.

Begin Config file:
Result of the command: "show config"

: Saved
: Written by enable_15 at 16:40:00.249 EDT Thu May 29 2008
!
ASA Version 7.2(1)
!
hostname TRPD1
domain-name trpd1
enable password lLLydIx20TuV2mmY encrypted
names
!
interface Ethernet0/0
nameif outside
security-level 0
ip address dhcp setroute
!
interface Ethernet0/1
speed 100
duplex full
nameif inside
security-level 100
ip address 192.168.0.1 255.255.255.0
!
interface Ethernet0/2
shutdown
no nameif
no security-level
no ip address
!
interface Management0/0
nameif management
security-level 100
ip address 192.168.1.1 255.255.255.0
management-only
!
passwd 55xoMtn1WMC/pIoV encrypted
ftp mode passive
clock timezone EST -5
clock summer-time EDT recurring
dns domain-lookup outside
dns domain-lookup inside
dns server-group DNS
dns server-group DefaultDNS
name-server 192.168.0.1
name-server 208.67.222.222
name-server 4.2.2.4
domain-name trpd1
same-security-traffic permit intra-interface
access-list outside_access_in extended permit tcp any eq www interface inside
access-list L3_Com remark L-3 Camera SSH to Server
access-list L3_Com extended permit tcp host 64.45.231.89 eq ssh host 192.168.0.244 eq ssh log debugging
access-list L3_Com remark Mike From Home
access-list L3_Com extended permit tcp host 67.177.119.190 eq ssh host 192.168.0.1 eq ssh log
access-list L3_Com remark L-3 Camera SSH to Server
access-list L3_Com extended permit tcp host 75.43.60.230 host 192.168.0.244 eq ssh log debugging
access-list inside_authentication extended permit tcp host 192.168.0.124 host 192.168.0.1
access-list l3in extended permit tcp host 75.43.60.230 host 192.168.0.244 eq ssh
access-list outside_access_in_1 remark l3in
access-list outside_access_in_1 extended permit tcp host 75.43.60.230 eq ssh host 192.168.0.244 eq ssh log
pager lines 24
logging enable
logging asdm informational
mtu outside 1500
mtu inside 1500
mtu management 1500
icmp permit any inside
asdm image disk0:/asdm521.bin
asdm history enable
arp timeout 14400
nat-control
global (outside) 101 interface
global (inside) 1 interface
nat (inside) 101 0.0.0.0 0.0.0.0
static (outside,inside) tcp 192.168.0.244 ssh 75.43.60.230 ssh netmask 255.255.255.255
static (inside,outside) tcp interface ssh 192.168.0.244 ssh netmask 255.255.255.255
access-group outside_access_in_1 in interface outside
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
username trpdadmin password kIIdY+Ul8TjLK9cmW2Em3w== nt-encrypted privilege 5
aaa authentication match inside_authentication inside LOCAL
http server enable
http 192.168.0.65 255.255.255.255 inside
http 192.168.1.0 255.255.255.0 management
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
telnet timeout 5
ssh 64.45.231.89 255.255.255.255 outside
ssh 192.168.0.124 255.255.255.255 inside
ssh timeout 5
console timeout 0
dhcpd dns 208.67.222.222 4.2.2.4 interface inside
dhcpd domain trpd interface inside
!
dhcpd address 192.168.1.2-192.168.1.254 management
dhcpd enable management
!
!
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 sqlnet
inspect skinny
inspect sunrpc
inspect xdmcp
inspect sip
inspect netbios
inspect tftp
!
service-policy global_policy global
ntp server 128.101.101.101 source outside prefer
prompt hostname context
Cryptochecksum:cad08e8f599da60b2e5ed24a4a415c12

by synner

Get rid of everything except the interface configuration.

Add the following lines:

global (outside) 1 interface
nat (inside) 1 0.0.0.0 0.0.0.0
static (inside,outside) tcp interface ssh 192.168.0.244 ssh netmask 255.255.255.255

access-list 101 permit tcp 75.43.60.230 eq ssh any eq ssh

access-group 101 in interface outside

I'm doing this from memory as I'm not sitting in front of my pix.

When you need to SSH to your inside server at 192.168.0.244, you must ssh to the outside IP address of your pix. It will forward the traffic to the server.

This discussion is closed to new replies.