LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-06-2009, 04:08 AM   #1
deepak_cucek
Member
 
Registered: Feb 2008
Posts: 36

Rep: Reputation: 16
Question how to configure the services that only accessable from particular IP address


Hi guys

am new to linux..........

my query is ,

1:in my SuSe 10 machine , i need to configure telnet(or ftp..) service is accesible from only particular IP address.

is there is any way to configure this in suse


plz help............
 
Old 05-06-2009, 04:19 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Run the service from xinetd and use the "only-from" option in the /etc/xinetd/telnet config file.

It would be better to use ssh instead of telnet.
 
Old 05-06-2009, 04:24 AM   #3
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Another way could be to use tcp wrappers to deny access to telnet from other addresses. But as advised, ssh is reliable and more secure.
 
Old 05-06-2009, 04:30 AM   #4
deepak_cucek
Member
 
Registered: Feb 2008
Posts: 36

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by jschiwal View Post
Run the service from xinetd and use the "only-from" option in the /etc/xinetd/telnet config file.

It would be better to use ssh instead of telnet.


suppose i need to restrict FTP , is there any other config file is there..

if we configure the IP in entry in the file "/etc/sysconfigg/Susefirewall2 " FW_TRUSTED_NETS

will it work in the same way ..?
 
Old 05-08-2009, 02:34 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Quote:
Originally Posted by linuxlover.chaitanya View Post
Another way could be to use tcp wrappers to deny access to telnet from other addresses. But as advised, ssh is reliable and more secure.
That is supposing that the telnet server is built with the libwrap library. I can't check because I don't have the telnet server installed and don't intend to. It isn't even on my dvd install disk that I can see.
 
Old 05-08-2009, 04:22 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Quote:
Originally Posted by deepak_cucek View Post
suppose i need to restrict FTP , is there any other config file is there..

if we configure the IP in entry in the file "/etc/sysconfigg/Susefirewall2 " FW_TRUSTED_NETS

will it work in the same way ..?
I do not use Suse so I do not know how SuSe Firewall works. But you can restrict the access to FTP by restricting ports 21 and 22.
 
Old 05-08-2009, 06:02 AM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
I think that that setting opens the port on an internal NIC but not an external one. It is generalized so it you change a NIC device from internal to external, the ports will close.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Configure Start Up Services? carlosinfl Debian 2 02-05-2008 01:11 PM
LXer: Install, Configure, Build, and Integrate Secure Directory Services with OpenLDA LXer Syndicated Linux News 0 10-15-2007 03:21 AM
Looking to configure linux as a Gateway/Firewall + Other Services but need advice! BadTim Linux - Networking 5 07-06-2007 03:31 PM
How can I configure iptables to allow portmap (rpc services) dirtgod Linux - General 1 12-16-2006 03:51 AM
Obtaining an IP Address Via Instant Messaging Services Permaximus Linux - Security 2 07-14-2005 09:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:55 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration