LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-27-2007, 04:46 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Rep: Reputation: 255Reputation: 255Reputation: 255
sshd listening on 80


How to increase security with a SSHd listening to either port 80 or 8080 ? Is this listening to 80 Secured or Mad ?

Would sshd listening to 8080 guaranteing less troubles?

(fail2ban is a solution mb for the sshd to port 80)

Greetings
 
Old 05-27-2007, 04:57 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You could change it to a different high number port (> 1024). Ports 80 & 8080 are common and likely to be scanned.
 
Old 05-27-2007, 05:49 AM   #3
edenCC
Member
 
Registered: May 2006
Location: China
Distribution: Debian
Posts: 198
Blog Entries: 1

Rep: Reputation: 32
why not listen to an unknown port like 50891?
this will surely guarante less trouble if the port is not found by malices.
 
Old 05-27-2007, 06:29 AM   #4
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by edenCC
why not listen to an unknown port like 50891?
this will surely guarante less trouble if the port is not found by malices.
the problem is that the concerned pc is behind a firewall and the only open ports are 80 or https 8080, so that the server listening has no other choices of 80 or 8080

is there any possibilities with No-ip from :
PC1_80 => no ip sthg => to sshd listening to 78988 of pc_2

Regards
 
Old 05-27-2007, 06:37 AM   #5
mechdave
Member
 
Registered: Apr 2007
Location: Adelaide, Australia
Distribution: Ubuntu 8.10 and 7.10 server
Posts: 95

Rep: Reputation: 15
Port 80 is the http port and port 8080 is a web proxy port. I am not sure you can use these ports in a firewall as the firewall might see any other traffic except http or proxy traffic as a possible intrusion attempt and therefore drop all the packets.
 
Old 05-27-2007, 08:02 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by Xeratul
the problem is that the concerned pc is behind a firewall and the only open ports are 80 or https 8080, so that the server listening has no other choices of 80 or 8080

is there any possibilities with No-ip from :
PC1_80 => no ip sthg => to sshd listening to 78988 of pc_2

Regards
There shouldn't be any problems with that ... browser pointing at
your public IP will barf, but that won't bother you much. Of course
you can (can you?) just tell the firewall to forward incoming
requests on 80 and/or 8080 to 22 ...

If this isn't the answer I didn't understand the question :}



Cheers,
Tink
 
Old 05-28-2007, 02:16 AM   #7
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by Tinkster
There shouldn't be any problems with that ... browser pointing at
your public IP will barf, but that won't bother you much. Of course
you can (can you?) just tell the firewall to forward incoming
requests on 80 and/or 8080 to 22 ...

If this isn't the answer I didn't understand the question :}



Cheers,
Tink
I made this explanation:
I d rather have the Example 2 working for SSH ... somehow ...

[img=http://img503.imageshack.us/img503/5374/firewallbypassdy9.th.jpg]

http://img503.imageshack.us/img503/5...passdy9.th.jpg



http://img503.imageshack.us/my.php?i...lbypassdy9.jpg


Thnaks

Last edited by Xeratul; 05-28-2007 at 02:20 AM.
 
Old 05-28-2007, 01:00 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Are you expecting to be able to use several ports via 80?
That ain't happening, I don't think.


Cheers,
Tink
 
Old 05-28-2007, 02:29 PM   #9
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by Tinkster
Are you expecting to be able to use several ports via 80?
That ain't happening, I don't think.


Cheers,
Tink
I dont know if I understood well but via Proxy / or intermediate PC, that might be fine.
That s the way is doign skype traversal via 80
80 <=> 80

I dont know if I understood well.

Good Evening
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC4-Starting sshd: Privilege separation user sshd does not exist FAILED kiranherekar Fedora 5 12-29-2005 02:22 PM
Why is inetd listening? Vincent_Vega Linux - Security 8 09-17-2004 12:38 PM
Enabling SSH in mandrake 9.2 - sshd vs. sshd-xinetd DogTags Linux - Newbie 7 11-25-2003 12:17 PM
is syslog listening? cuss Linux - Security 4 12-19-2002 11:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration