LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to configure the services that only accessable from particular IP address (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-configure-the-services-that-only-accessable-from-particular-ip-address-724078/)

deepak_cucek 05-06-2009 04:08 AM

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............

jschiwal 05-06-2009 04:19 AM

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.

linuxlover.chaitanya 05-06-2009 04:24 AM

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.

deepak_cucek 05-06-2009 04:30 AM

Quote:

Originally Posted by jschiwal (Post 3531877)
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 ..?

jschiwal 05-08-2009 02:34 AM

Quote:

Originally Posted by linuxlover.chaitanya (Post 3531880)
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.

linuxlover.chaitanya 05-08-2009 04:22 AM

Quote:

Originally Posted by deepak_cucek (Post 3531885)
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.

jschiwal 05-08-2009 06:02 AM

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.


All times are GMT -5. The time now is 06:15 AM.