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.
|
|
02-03-2007, 03:14 AM
|
#1
|
Member
Registered: Feb 2004
Location: Gainesville, Fl
Distribution: Debian 6
Posts: 41
Rep:
|
securing telnet for lan use only
Ok, I been setting up my linux box (slackware 11) to be router/server for my home. I would like to take the monitor and keyboard off of it and have to running in a corner. My plain was to use samba and telnet to transfer files and access it if I need to change or to upgrade the system. I have samba responding to my network address of 192.168.1.0 only. Is there away to have telnet only take connection from my lan and not the internet?
My setup:
2 nic
1 Linsys AP (eth1)
1 DSL Modem (eth0)
|
|
|
02-03-2007, 03:36 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
uninstall telnet, use ssh instead. both telnet and ssh typically support tcpwrappers though, so you can control what can reach them via /etc/hosts.allow adn /etc/hosts.deny. additionally, you should have a generic firewall sitting infornt of all this anyway.
|
|
|
02-03-2007, 05:37 AM
|
#3
|
Member
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462
Rep:
|
As intimated by acid_kewpie you just configure your firewall only to allow connections to port 22(ssh) or port 23 (telnet) from within your lan subnet, and not from your external internet interface.
You should be blocking all incoming connections by default anyway from the net.?!
|
|
|
02-05-2007, 02:50 AM
|
#4
|
Member
Registered: Feb 2004
Location: Gainesville, Fl
Distribution: Debian 6
Posts: 41
Original Poster
Rep:
|
Ok, it sounds like the firewall is the key. do you know any good links on firewall scripting?
|
|
|
02-05-2007, 11:26 AM
|
#6
|
Member
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462
Rep:
|
I would also say iptables,but then that is all I have ever used!?!!
If you decide to use it spend some time reading the iptables howto.
Very powerful and very useful firewall.
Make sure you are dropping all incoming connections by default.
Just running the command above will be pointless if you have a fresh default iptables setup which lets everything through anyway.
Goodluck.
|
|
|
02-09-2007, 06:15 AM
|
#7
|
Member
Registered: Feb 2004
Location: Gainesville, Fl
Distribution: Debian 6
Posts: 41
Original Poster
Rep:
|
thanks
thank you for the help...
|
|
|
All times are GMT -5. The time now is 08:39 PM.
|
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
|
|