LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-01-2005, 06:30 AM   #1
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700

Rep: Reputation: 31
sshd restrict connections


Hello ! On my PC I run only one Server , SSHD . It's already listening on a different port than the default one (port 58) , I've configured SSHD to allow log-ins only from <username@ip> . I have another problem though . I would like that .. connections should be accepted on port 58 only if the connecting ip matches <special_IP> . Meaning , if you try to connect on port 58 (connect, not log in), your connection attempt should be refused as if the port would be closed , if your ip doesn't match <special_IP> that is . I remember doing it through /etc/login.access but for some reason all my attempt to do it again now fail :S . Does anyone know how to achieve what I mentioned earlier ? (preferably through /etc/login.access ..)
 
Old 07-01-2005, 07:57 AM   #2
Jeiku
Member
 
Registered: Jul 2005
Posts: 64

Rep: Reputation: 18
It would be better to use some kind of firewall rule (iptables/ipchains/ipfw) for that kind of thing.

I would add a rule to drop any incoming connections on port 58 unless the connection came from a specific IP address.

Are you able to change the firewall rules of the box? If so I can post a rule for you...
 
  


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
2000 MySQL connections, still "too many connections" newlinuxnewbie Linux - General 0 11-07-2005 01:03 PM
restrict kmenuedit tnuic Linux - Security 1 08-12-2005 12:37 PM
tc in restrict bandwidth reaky Linux - Networking 3 03-15-2004 12:00 PM
how to restrict vhosts ruleman Linux - Security 0 02-09-2004 03:01 AM
Enabling SSH in mandrake 9.2 - sshd vs. sshd-xinetd DogTags Linux - Newbie 7 11-25-2003 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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