Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Jul 25, 2013 4:22 am 
Offline
Senior Member

Joined: Wed May 13, 2009 1:32 pm
Posts: 737
Location: Italy
I suggest to all suggestor to understand what the problem is:
- I can't bind SSH to 80 and 443 because my linode runs a webserver
- I don't have another linux machine where bind ssh to 80 or 443
- I don't need an ajax console because I need ssh to tunneling


Top
   
PostPosted: Thu Jul 25, 2013 4:27 am 
Offline
Senior Member

Joined: Mon Sep 12, 2011 3:29 am
Posts: 63
ICQ: 1081190
Website: http://kyhwana.org
AOL: kyhwana
Location: New Zealand
sblantipodi wrote:
I suggest to all suggestor to understand what the problem is:
- I can't bind SSH to 80 and 443 because my linode runs a webserver


Use sslh, you can bind it to port 443 and it will forward to https/ssh depending on what you use to connect to it.


Top
   
PostPosted: Thu Jul 25, 2013 4:56 am 
Offline
Senior Member

Joined: Wed May 13, 2009 1:32 pm
Posts: 737
Location: Italy
I finded that I can open port 21.
I switched my SSH to pot 21, now I can connect to SSH without any problems from my corporate network.

The problem is that as soon as I try to tunnel something on my SSH the SSH connection is closed.
Does it depends on my linode or the corporate firewall?

Thanks.


Top
   
PostPosted: Thu Jul 25, 2013 5:17 am 
Offline
Senior Member

Joined: Wed May 13, 2009 1:32 pm
Posts: 737
Location: Italy
kyhwana wrote:
sblantipodi wrote:
I suggest to all suggestor to understand what the problem is:
- I can't bind SSH to 80 and 443 because my linode runs a webserver


Use sslh, you can bind it to port 443 and it will forward to https/ssh depending on what you use to connect to it.


this is a great finding, I installed it on my linode, but how use this software now?
I cannot find a guide.


Top
   
PostPosted: Thu Jul 25, 2013 5:26 am 
Offline
Senior Member

Joined: Mon Sep 12, 2011 3:29 am
Posts: 63
ICQ: 1081190
Website: http://kyhwana.org
AOL: kyhwana
Location: New Zealand
sblantipodi wrote:
kyhwana wrote:
sblantipodi wrote:
I suggest to all suggestor to understand what the problem is:
- I can't bind SSH to 80 and 443 because my linode runs a webserver


Use sslh, you can bind it to port 443 and it will forward to https/ssh depending on what you use to connect to it.


this is a great finding, I installed it on my linode, but how use this software now?
I cannot find a guide.


Read the readme/website.


Top
   
PostPosted: Thu Jul 25, 2013 6:03 am 
Offline
Senior Member

Joined: Wed May 13, 2009 1:32 pm
Posts: 737
Location: Italy
kyhwana wrote:
Read the readme/website.


Readme doesn't help at all...


Top
   
PostPosted: Thu Jul 25, 2013 6:30 am 
Offline
Senior Member

Joined: Wed May 13, 2009 1:32 pm
Posts: 737
Location: Italy
I'm thinking on a solution that needs no additional software.
I change my 443 SSL port to 8443, and I switch my SSH port to 443.

How can I redirect all https traffic to 8443 using apache?


Top
   
PostPosted: Thu Jul 25, 2013 6:37 am 
Offline
Senior Member

Joined: Wed May 13, 2009 1:32 pm
Posts: 737
Location: Italy
I configured SSLH, started it correctly.
I switched the SSL port to 8443, I configured the sslh file,
ports 443 is opened my sslh, when I try to connect to SSH using 443, my server says, connection refused (tryed also with iptables off)

any idea?


Top
   
PostPosted: Thu Jul 25, 2013 6:39 am 
Offline
Senior Member

Joined: Mon Sep 12, 2011 3:29 am
Posts: 63
ICQ: 1081190
Website: http://kyhwana.org
AOL: kyhwana
Location: New Zealand
sblantipodi wrote:
I configured SSLH, started it correctly.
I switched the SSL port to 8443, I configured the sslh file,
ports 443 is opened my sslh, when I try to connect to SSH using 443, my server says, connection refused (tryed also with iptables off)

any idea?

Are you sure sslh is actually running and listening on your external/publioc interface?
(Paste "sudo netstat -plant")


Top
   
PostPosted: Thu Jul 25, 2013 7:43 am 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
deleted


Last edited by zunzun on Sun Aug 04, 2013 8:23 pm, edited 1 time in total.

Top
   
PostPosted: Thu Jul 25, 2013 8:01 am 
Offline
Senior Member

Joined: Wed May 13, 2009 1:32 pm
Posts: 737
Location: Italy
Hi, my SSH is configured on port 4888.
If I connect from a normal internet connection I can ssh 4888 without problem.

Now I told SSLH to listen on 443 and to redirect the SSH traffic to 4888.
If I SSH 443, I get connection refused also from a normal internet connection.


Top
   
PostPosted: Thu Jul 25, 2013 8:15 am 
Offline
Senior Member

Joined: Wed May 13, 2009 1:32 pm
Posts: 737
Location: Italy
I'm quite sure that SSLH is working ok since it redirect my HTTPS traffic to port 8443 correctly.
It also redirect the ssh traffic correctly to the ssh port port SSH reject this redirection,
probably I need to configure ssh.
any idea?


Top
   
PostPosted: Thu Jul 25, 2013 8:21 am 
Offline
Senior Member

Joined: Wed May 13, 2009 1:32 pm
Posts: 737
Location: Italy
Ok, I finded the arcane.
In my ssh_config file I had:
ListenAddress mylinodepublicip

with this configuration I was not able to use sslh correctly.

Now I changed to
ListenAddress 127.0.0.1

and now it works like a charm.

I have SSL running on 8443, SSH on 4888, SSLH on 443 that redirects corretly SSH and HTTPS traffic to the correct port.

Is there a security issues in this way of managing things?
Is there a security issues with
ListenAddress 127.0.0.1
???


Top
   
PostPosted: Thu Jul 25, 2013 1:02 pm 
Offline
Senior Member
User avatar

Joined: Thu Jun 16, 2011 8:24 am
Posts: 412
Location: Cyberspace
I cannot think of any security issue with using 127.0.0.1, or really any IP address you have direct access to on the machine running ssh. However, you can safely run ssh on your Linode without a ListenAddress (just place a # in front of it). ListenAddress is meant primarily for machines with multiple IP addresses where it's more desirable to use only one or two.

_________________
Kris the Piki Geeker


Top
   
PostPosted: Thu Jul 25, 2013 1:44 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
Maybe his employer's IT Dept puts those port blocks on their outbound network because they, you know, expect their workers to . . . . work, and not manage their hobbies on company time.

//just saying//

_________________
Either provide enough details for people to help, or sit back and listen to the crickets chirp.
Security thru obscurity is a myth - and really really annoying.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group