Join the community today
Register Now

SSH port issue

Discussion in 'System Administration' started by amin, Nov 16, 2015.

  1. amin

    amin Member

    38
    6
    8
    Oct 11, 2014
    Ratings:
    +7
    Local Time:
    6:49 AM
    Katest
    Latest
    Hi,
    I used cenminmod to change the ssh port to 999 and it worked for a week but recently I have to stop the iptables to connect via ssh.
    This happened to me on other vps too.
    Even I used the Ip which used for installation (so already in the allow list) but no success.

    And the log:

    Nov 16 05:19:01 XXX kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=00:50:56:be:39:0a:00:17:5a:79:d2:56:08:00 SRC=XXXXXXXXXXXX DST=XXXXXXXXXXXX LEN=48 TOS=0x00 PREC=0x00 TTL=105 ID=1573 DF PROTO=TCP SPT=15809 DPT=999 WINDOW=8192 RES=0x00 SYN URGP=0
     
  2. eva2000

    eva2000 Administrator Staff Member

    35,102
    7,751
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,952
    Local Time:
    12:19 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    what's output for command below

    Code:
    grep 'TCP_IN =' /etc/csf/csf.conf
    also what centos version, vps ? xen ? kvm ? openvz ?

    web host ?
     
    Last edited: Nov 16, 2015
  3. rdan

    rdan Premium Member Premium Member

    4,228
    1,029
    113
    May 25, 2014
    Ratings:
    +1,470
    Local Time:
    10:19 AM
    Mainline
    10.2
    I highly suspect this happen on CentOS 7.
     
..