Join the community today
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:
    1:40 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

    33,642
    7,447
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,447
    Local Time:
    7:10 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

    4,157
    1,007
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,421
    Local Time:
    5:10 AM
    1.11
    10.2
    I highly suspect this happen on CentOS 7.
     
..