LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-03-2013, 05:29 AM   #1
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
Question SENSOR in Xinetd Services


Hello All,

This is my scenario.
Quote:
192.168.1.10 | box1 | CentOS 5.8 64 Bit
192.168.1.20 | box2 | CentOS 5.8 64 Bit
I have read here that we can use SENSOR option to block the IP for some defined time of the machine which tries to access the service for all other Xinetd services.

This is what I have done till now, used SENSOR option in /etc/xinetd.d/telnet.
Code:
# default: on
# description: The telnet server serves telnet sessions; it uses \
#	unencrypted username/password pairs for authentication.
service telnet
{
flags = SENSOR
type = INTERNAL
socket_type = stream
wait = no
user = nobody
deny_time = 45
}
Now, when I try to access the telnet from 192.168.1.10, below lines gets logged in /var/log/messages
Code:
root@box2:~# tail -f /var/log/messages
Mar  3 16:37:51 box2 xinetd[4548]: 4548 {process_sensor} Adding 192.168.1.10 to the global_no_access list for 45 minutes
Mar  3 16:37:51 box2 xinetd[4548]: FAIL: telnet address from=192.168.1.10
Ideally, all other xinetd services should be blocked for 45 minutes, but when I try to use rysnc I am able to use it
Code:
root@box1:~# rsync -e ssh -avz 192.168.1.20:/usr/games /usr -n
root@192.168.1.20's password: 
receiving incremental file list
games/
games/testfile

sent 18 bytes  received 68 bytes  34.40 bytes/sec
total size is 0  speedup is 0.00 (DRY RUN)
root@box1:~#
Please let me know how to tackle this, have I missed anything.
 
Old 03-04-2013, 06:48 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,910

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
no, it will only lock the telnet port (or service), nothing else. If you want to lock out a given host you may try a firewall
 
  


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
Which services to run from xinetd ? hondo Linux - Server 2 03-19-2007 03:54 PM
How do I know, which services within xinetd are running saneax Linux - Newbie 4 08-11-2004 07:47 AM
xinetd /etc/services iftiuk Linux - Networking 7 04-17-2004 12:36 AM
xinetd, ftp, and other services jimi_j Linux - Software 0 03-09-2004 05:37 PM
start services without xinetd penguinview Linux - Newbie 3 09-27-2003 12:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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