Welcome to ISAserver.org

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

Publishing SSH Server

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [ISA Server 2004 General ] >> Server Publishing >> Publishing SSH Server Page: [1] 2   next >   >>
Login
Message << Older Topic   Newer Topic >>
Publishing SSH Server - 13.Jan.2006 5:24:37 PM   
gatorz

 

Posts: 17
Joined: 28.Feb.2004
Status: offline
I am running ISA2k4EE and am having a problem publishing an SSH Server.
I have created the protocol rule
Port 22
TCP
Inbound

and setup the the publishing rule.
When i try to ssh to the listener on the firewall
i get a Denied Connection by the [enterprise]default rule

any ideas.
Post #: 1
RE: Publishing SSH Server - 14.Jan.2006 6:09:09 PM   
tshinder

 

Posts: 47420
Joined: 10.Jan.2001
From: Texas
Status: online
Hi Gatorz,

Are any other protocols being used?

Is the Telnet server a SecureNAT client?

Thanks!
Tom

_____________________________

Thomas W Shinder, M.D.
Sr. Consultant/Technical Writer
Prowess Consulting http://www.prowessconsulting.com/
Blog: http://blogs.isaserver.org/shinder/

GET THE NEW ISA 2006 Book!: http://tinyurl.com/2gpoo8

(in reply to gatorz)
Post #: 2
RE: Publishing SSH Server - 16.Jan.2006 2:32:00 PM   
gatorz

 

Posts: 17
Joined: 28.Feb.2004
Status: offline
For this server there are no other protocols beside SSH
and its a SecureNat client.

Additional info
I have multiple Web Servers published which work fine. but for some reason i cant get any other protocol to publish. For testing purposes i tried the syslog protocal and received the same message in the logs.

(in reply to tshinder)
Post #: 3
RE: Publishing SSH Server - 17.Jan.2006 2:52:00 AM   
rennera

 

Posts: 6
Joined: 15.Dec.2005
Status: offline
I have the same setup...  I setup the SSH protocol as you did with port 22 Inbound.

I find a lot of times I have to restart the Firewall service to make it actually work... not sure why but that may help.  That worked for me...

(in reply to gatorz)
Post #: 4
RE: Publishing SSH Server - 23.Jan.2006 3:07:42 PM   
gatorz

 

Posts: 17
Joined: 28.Feb.2004
Status: offline
Restarting the services didnt work so I actually went ahead and bounced the box. I still have the same problem. I still get the same result Denied Connection by the [Enterprise] Default Rule. In addition the protocol labeled in the log files indicate an outbound protocol. I have double-checked the publishing rule and it is setup as port 22 inbound.

I am really puzzled and any help would be gladly appreciated.

(in reply to rennera)
Post #: 5
RE: Publishing SSH Server - 24.Jan.2006 11:18:35 PM   
Ibux

 

Posts: 5
Joined: 24.Jan.2006
Status: offline
 
Unless you've done this already:

You have to create an access rule for SSH as well.

Try "all networks (and local host)" on both "to" and "from", and then tighten if it works :-)


That said; I can't get SSH to work myself..

I've created
*the access rule
*the protocol rule
*the publishing rule

It seems as though I'm having a problem with the publishing rule; SSH-requests arrive at the ISA-server but aren't forwarded to my SSH-server.
I get no "denied connection" in the log.

Normal behaviour would be that

the SSH-request arrive at the ISA-server
the ISA-server establishes a connection between itself and the SSH-server
the SSH-requests are then forwarded to this connection

My problem seems to be that I don't get the connection established.

Any help og suggestions would be much appreciated.

(in reply to gatorz)
Post #: 6
RE: Publishing SSH Server - 25.Jan.2006 4:21:51 PM   
gatorz

 

Posts: 17
Joined: 28.Feb.2004
Status: offline
No dice on your suggestion.
I have noticed that if I change the network relation to NAT instead of Route the publishing rule works. But in my situation I cant have it this way because of the number of access rules i need to have.
Another oddity is that on ISA2k4 STD the server publishing rules work for rather the network realtion is NAT or route but on ISA2k4EE(which this is what i need it to work on) the server publishing rules only work with a NAT network relationship.

Has anybody ran across this?

(in reply to Ibux)
Post #: 7
RE: Publishing SSH Server - 25.Jan.2006 6:23:18 PM   
TitusHoc

 

Posts: 114
Joined: 17.Nov.2004
From: Canada - Toronto
Status: offline
Hi Gatorz,

You mentioned:
“Another oddity is that on ISA2k4 STD the server publishing rules work for rather the network relation is NAT or route but on ISA2k4EE(which this is what i need it to work on) the server publishing rules only work with a NAT network relationship.”

THAT IS WRONG
On both ISA 2k4 SE and EE the server publishing will not work if the relation between External and Internal is Route

The rule is not valid for web publishing- the web publishing will work

Titus

(in reply to gatorz)
Post #: 8
RE: Publishing SSH Server - 25.Jan.2006 9:10:02 PM   
spouseele

 

Posts: 12782
Joined: 1.Jun.2001
From: Belgium
Status: offline
Hey guys,

check out https://blogs.technet.com/isablog/archive/2006/01/16/AccessPolicyRulesVsServerPublishingRules.aspx.

HTH,
Stefaan

(in reply to TitusHoc)
Post #: 9
RE: Publishing SSH Server - 25.Jan.2006 9:55:56 PM   
TitusHoc

 

Posts: 114
Joined: 17.Nov.2004
From: Canada - Toronto
Status: offline
Come on guys let’s be realistic here
Stefan, on that link is mentioned:
 
Server publishing rules publishing a server in B to clients in A work if the address relationships is ROUTE A/B or if it is NAT BàA.”
 
And after that:
 
Yes, you read that last point right: server publishing rules can operate when the address relationship is ROUTE. It works as you’d expect: the client connects to the server’s actual address (and not the publishing address on the ISA Server machine, although that might also work in some cases).”
 
Now let’s talk about a case where we have Route relation between network B (external - public) and network A (internal - private)
 
I WANT TO SEE HOW AN EXTERNAL CLIENT (WITH A PUBLIC IP ADDRESS) WILL BE ABLE TO CONNECT TO A SERVER THAT SI HAVING PRIVATE IP ADDRESS
 
And yes this can work when the server behind ISA is having public IP address – but how may configuration I having public addresses internal?
 
Titus

(in reply to gatorz)
Post #: 10
RE: Publishing SSH Server - 25.Jan.2006 10:08:06 PM   
spouseele

 

Posts: 12782
Joined: 1.Jun.2001
From: Belgium
Status: offline
Hi Titus,

why are you still thinking in the black/white networking model of ISA 2000?

What if you have a public DMZ, or another private DMZ who needs to talk to another private segment, or ... ?

HTH,
Stefaan

< Message edited by spouseele -- 25.Jan.2006 10:10:46 PM >

(in reply to TitusHoc)
Post #: 11
RE: Publishing SSH Server - 25.Jan.2006 10:39:26 PM   
Ibux

 

Posts: 5
Joined: 24.Jan.2006
Status: offline
A realistic scenario:


The ISA-server has two NIC's - 192.168.1.4 and 192.168.1.5.

192.168.1.4 is connected to the internet
192.168.1.5 is connected to the internal LAN

The SSH-server has the address 192.168.1.8


How, in your opinion, should this be configured on the ISA-server? I've spent hours and hours on this, and I just can't figure it out :(
It seems as though the SSH-requests are dropped at the ISA-server (since it obviously isn't running an SSH daemon) instead of being forwarded to the SSH-server.

That said - I also have http running on the same box as SSH - and that's published and working just fine..

(in reply to spouseele)
Post #: 12
RE: Publishing SSH Server - 25.Jan.2006 10:49:28 PM   
spouseele

 

Posts: 12782
Joined: 1.Jun.2001
From: Belgium
Status: offline
Hi Ibux,

quote:

The ISA-server has two NIC's - 192.168.1.4 and 192.168.1.5.

192.168.1.4 is connected to the internet
192.168.1.5 is connected to the internal LAN 


Sorry, but this is a unsupported configuration! Each NIC in an ISA server must belong to a different network ID (subnet).

HTH,
Stefaan

< Message edited by spouseele -- 25.Jan.2006 10:50:46 PM >

(in reply to Ibux)
Post #: 13
RE: Publishing SSH Server - 25.Jan.2006 11:04:49 PM   
Ibux

 

Posts: 5
Joined: 24.Jan.2006
Status: offline
Hi Stefaan,

My bad, I was trying to simplify.

192.168.1.4 is connected to an ISP-router.

The ISP-router has two adresses

xxx.xxx.xxx.xxx - internet
192.168.1.1 is connected to 192.168.1.4 (ISA-server)


So basically all traffic arrives at the ISP-router and is then forwarded to the ISA-server NIC 192.168.1.4.
Legal traffic is sent to 192.168.1.5 and passed on to the LAN.

But how to set up SSH..?

(in reply to spouseele)
Post #: 14
RE: Publishing SSH Server - 26.Jan.2006 12:06:17 AM   
spouseele

 

Posts: 12782
Joined: 1.Jun.2001
From: Belgium
Status: offline
Hi Ibux,

but if I understand you correctly the following is still true, right?

quote:

ISA External interface = 192.168.1.4
ISA Internal interface = 192.168.1.5


If that's the case, it will never work!

HTH,
Stefaan

(in reply to Ibux)
Post #: 15
RE: Publishing SSH Server - 26.Jan.2006 9:53:08 AM   
Ibux

 

Posts: 5
Joined: 24.Jan.2006
Status: offline
Hi Stefaan,

Yes, the configuration

quote:


ISA External interface = 192.168.1.4
ISA Internal interface = 192.168.1.5


is true. More spesific:


ISA External interface:
IP 192.168.1.4
Subnet 255.255.255.0
Default gw 192.168.1.1

ISA Internal interface:
IP 192.168.1.5
Subnet 255.255.255.0
Default gw is set up without any value


I've got a webserver on the inside (192.168.1.8 - same as SSH-server), which is accessible from the Internet using a publish rule, so that's working.


But you mean this won't work for SSH?

(in reply to spouseele)
Post #: 16
RE: Publishing SSH Server - 26.Jan.2006 10:19:14 AM   
spouseele

 

Posts: 12782
Joined: 1.Jun.2001
From: Belgium
Status: offline
Hi Ibux,

you have an unsupported configuration. As a consequence only some web proxy related functions will work. Therefore, fix your basic networking setup first and then your server publishing rule will start to work.

HTH,
Stefaan

(in reply to Ibux)
Post #: 17
RE: Publishing SSH Server - 26.Jan.2006 2:05:53 PM   
Ibux

 

Posts: 5
Joined: 24.Jan.2006
Status: offline
Hi Stefaan,

you're absolutely right :)

I've changed my network setup and now it's all working like a charm :)

Thanks a bunch!

(in reply to spouseele)
Post #: 18
RE: Publishing SSH Server - 26.Jan.2006 3:40:59 PM   
gatorz

 

Posts: 17
Joined: 28.Feb.2004
Status: offline
Stefaan
thanks for the link on Access Policy Rules vs. Server Publishing Rules
After reading that article I got it working using a Route relationship.


(in reply to spouseele)
Post #: 19
RE: Publishing SSH Server - 26.Jan.2006 10:44:09 PM   
rfleites

 

Posts: 13
Joined: 9.Jun.2005
From: Miami, FL
Status: offline
Gatorz, I am having the same issue. How did you get it to work. I read the article, but can't make any sense out of it.

(in reply to gatorz)
Post #: 20

Page:   [1] 2   next >   >> << Older Topic    Newer Topic >>
All Forums >> [ISA Server 2004 General ] >> Server Publishing >> Publishing SSH Server Page: [1] 2   next >   >>
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts