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:
    12:22 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

    30,932
    6,911
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,407
    Local Time:
    6:52 AM
    Nginx 1.13.x
    MariaDB 5.5
    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. RoldanLT

    RoldanLT Well-Known Member

    3,975
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    4:52 AM
    1.11
    10.2
    I highly suspect this happen on CentOS 7.