Want more timely Centmin Mod News Updates?
Become a Member

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:
    7:34 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

    55,245
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    2:04 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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 Well-Known Member

    5,451
    1,411
    113
    May 25, 2014
    Ratings:
    +2,205
    Local Time:
    12:04 PM
    Mainline
    10.2
    I highly suspect this happen on CentOS 7.