Find the answer to your Linux question:
Results 1 to 4 of 4
We have a Suse Linux server and the problem I have is the the server is trying to connect to a site (261.182.224.42) now and then. We cannot find out ...
  1. #1
    BKT
    BKT is offline
    Just Joined!
    Join Date
    May 2008
    Posts
    4

    Linux server connecting to a site using port 22

    We have a Suse Linux server and the problem I have is the the server is trying to connect to a site (261.182.224.42) now and then. We cannot find out where this is setup on the server. We really need to stop this as it brings the whole network down.

    Help.

    BKT

  2. #2
    Just Joined!
    Join Date
    Oct 2009
    Posts
    18
    ssh uses port 22 by default, this may not be good. You probably want to harden your ssh install. You could change the default port ssh uses. Also add
    ALL: 261.182.224.42
    to your
    /etc/hosts.deny
    file.
    You can also check the web address below it shows some different iptables rules you can set to harden ssh. There is a bunch of info on ssh available on this site and on the web just Google, ssh, iptables. You may also want to check a program called Denyhost. good luck


    ww.webhostingtalk.com/showthread.php?t=456571

  3. #3
    Linux Newbie
    Join Date
    Apr 2009
    Posts
    160
    Quote Originally Posted by highfructose327 View Post
    ssh uses port 22 by default, this may not be good. You probably want to harden your ssh install. You could change the default port ssh uses. Also add
    Code:
     /etc/hosts.deny
    to your file.
    You can also check the web address below it shows some different iptables rules you can set to harden ssh. There is a bunch of info on ssh available on this site and on the web just Google, ssh, iptables. You may also want to check a program called Denyhost. good luck


    ww.webhostingtalk.com/showthread.php?t=456571
    /etc/hosts.deny is for connecting. If I interpret the OP right, the server is trying to connect to that ip. I think you should determine why it's doing that and possibly run a rootkit too.

  4. #4
    Just Joined!
    Join Date
    Oct 2009
    Posts
    18
    mikesd thanks for the correction, on the hosts.deny. Could the OP pass a rule for iptables like
    iptables -A OUTPUT -d 261.182.224.42 -j DROP
    that would drop any connection to the ip while they figure out the problem? Just a thought.
    Last edited by highfructose327; 10-22-2009 at 02:31 AM. Reason: punctuation

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...