LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-18-2008, 10:28 PM   #1
twlilinux
Member
 
Registered: Jan 2006
Distribution: debian
Posts: 63

Rep: Reputation: 15
how to set up dummy port as honey pot


how would you set up a dummy ssh port 22 that looks like a real ssh port? My real ssh port is hidden and I don't want hackers to search for it, so I'm thinking about setting up a dummy port 22. How would I do that? Thanks in advance.

-------
My favorite websites:
Buy and sell class notes, old exams, papers, lab reports, admission essays.
Ask and answer Linux questions.
Read free books without walking to the library.

Last edited by twlilinux; 08-15-2008 at 03:39 PM.
 
Old 06-18-2008, 11:31 PM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Well, you can make a copy of OpenSSH, then throw out all the useful stuff. Set up OpenSSL to always reject the connections.

Another option is to simply listen on that port with a maximum queue of "0" - I think that's valid and refuses all connections. If I'm mistaken then "0" means "max permissible". In this instance the "connection refused" message at the remote end is suitably vague - there could be any number of reasons for it. Of course someone who actually looks at the packets will see that there is never any SSL traffic and might suspect that there isn't even an SSH server there.

I'm not sure a dummy port would help you in the least; the script kiddies' toys poke at ports until they find something; of course in that case 'snort' might help you out.
 
Old 06-19-2008, 02:52 AM   #3
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 769

Rep: Reputation: 242Reputation: 242Reputation: 242
A few ideas come to mind.

1. Use an iptables TARPIT on connections to tcp/22

2. If you use xinetd, set it as a sensor port. That will at least block them from another other service they might look at:

service ssh
{
flags = SENSOR
type = INTERNAL
socket_type = stream
wait = no
user = nobody
deny_time = 45
}

Then the real one would need a 'secret-ssh' added to /etc/services on the port you want it to be hidden on:

service secret-ssh
{
instances = 10
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/sshd
server_args = -i
}

3. You could write a little script to just echo out some OpenSSH type text when the port is hit. Stick it in inetd/xinetd at the right place.


I moved my ssh port years ago, and never once had it messed with since, so I wouldn't worry a whole lot about someone going looking for it once the usual place turns up fake/empty. Most ssh-scanning is done by automated scripts/tools, as far as I can tell.

Last edited by jayjwa; 06-19-2008 at 02:54 AM. Reason: spelling errors
 
  


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
how to deploy honey pots vinaymudgil007 Linux - Security 3 08-19-2008 09:15 PM
LXer: Honey, I shrunk the desktop LXer Syndicated Linux News 0 02-11-2008 03:00 PM
LXer: "Honey, I've shrunk your Linux computer!'' LXer Syndicated Linux News 0 05-06-2007 12:01 PM
Set up dummy soundcard on fc3 linuxnwb Linux - Hardware 4 06-18-2006 09:09 AM
Tiny Honey Pot mufy Linux - Security 0 03-08-2005 02:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:55 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