Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-18-2003, 07:13 PM
|
#1
|
LQ Newbie
Registered: Apr 2003
Distribution: Mandrake 9.1
Posts: 3
Rep:
|
How to hide server -220 messages
Ok I'm gona run some FTP and SSH server in my Linux box and I want to hide the server -220 welcome messages from some banned IPs when they are scanning my servers. The non banned users can use the server and see the -220 message if they scan me.
I'm currently running GuildFTPd in w2k and it can hide the -220 welcome message from banned IPs. Here's some picture how the IP mask is working.
http://www.agreathost.net/kmk/ipmask.jpg
So I want to hide also the OpenSSHd -220 welcome message from banned IPs. Can this be done in someway ? Maybe some firewall, batch or plugin in OpenSSHd ?
Last edited by ximar; 04-19-2003 at 05:58 AM.
|
|
|
04-18-2003, 11:45 PM
|
#2
|
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658
Rep:
|
I'm kind of confused on exactly what you want to do, but you can put the banned ip addresses in /etc/hosts.deny. Then they won't even be able to connect to your FTP/SSH server at all, instead of just not getting a banner. To do that just open the hosts.deny in a text editor (vi or whatever) and put in a line like this:
ftpd: xxx.xxx.xxx.xxx yyy.yyy.yyy.yyy
sshd: xxx.xxx.xxx.xxx yyy.yyy.yyy.yyy
Last edited by Capt_Caveman; 04-18-2003 at 11:47 PM.
|
|
|
04-19-2003, 06:04 AM
|
#3
|
LQ Newbie
Registered: Apr 2003
Distribution: Mandrake 9.1
Posts: 3
Original Poster
Rep:
|
Well if you have some server running could you ban my IP so that I could test that is your method the thing that I'm searching for.
My NAT IP: 193.65.112.51
My LAN IP: 172.25.2.149
ICQ, PM or email me the IP so that I could scan your server for a test...
|
|
|
04-19-2003, 11:00 AM
|
#4
|
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658
Rep:
|
Errrrr, you want me to give you my ip, so that you can scan my linux box. I think I'll pass. But you can try it locally. Just put in the ip of one of your internal hosts in hosts.deny and then try to connect. You should get a connection refused reply. You'll also get a message in your log file stating that the banned ip tried to access that service. If you want to stealth that port or something, you can use iptables but it is a little more work and can be a pain if you have a bunch of addresses you want to ban. If you are just trying to ban someone then hosts.deny is the way to go.
|
|
|
04-19-2003, 11:41 AM
|
#5
|
LQ Newbie
Registered: Apr 2003
Distribution: Mandrake 9.1
Posts: 3
Original Poster
Rep:
|
Ok I have to test that in locally when I have cable connection to my Linux box...
|
|
|
All times are GMT -5. The time now is 04:41 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|