小编Ske*_*eve的帖子

额外的 sshd 根实例

我已经通过 ssh 登录到运行 Centos 7 的服务器并执行以下命令:

[me@server ~]$ ps -ef --forest | grep ssh

root     476     1  0 Dec02 ?       00:00:00 /usr/sbin/sshd -D
root   12366   476  0 23:26 ?       00:00:00  \_ sshd: me[priv]
me     12368 12366  0 23:27 ?       00:00:00  |   \_ sshd: me@pts/0
me     12405 12369  0 23:27 pts/0   00:00:00  |           \_ grep --color=auto ssh
root   12401   476  0 23:27 ?       00:00:00  \_ sshd: root [priv]
sshd   12402 12401  0 23:27 ?       00:00:00      \_ sshd: root [net]
me     12399 …
Run Code Online (Sandbox Code Playgroud)

ssh ps

4
推荐指数
1
解决办法
5014
查看次数

iptables 不关闭端口 3000?

我想以只打开特定端口的方式在我的服务器上配置 iptables。不过,如果我在其上运行网络应用程序,我可以访问例如端口 3000。打开 3000 的原因可能是什么?

这是命令的输出 iptables -nv -L INPUT

 pkts bytes target     prot opt in     out     source               destination
    0     0 DROP       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp flags:0x3F/0x00
    0     0 DROP       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp flags:!0x17/0x02 state NEW
    0     0 DROP       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp flags:0x3F/0x3F
  670  302K ACCEPT     all  --  lo     *       0.0.0.0/0            0.0.0.0/0
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:80
  187  136K ACCEPT     tcp  --  * …
Run Code Online (Sandbox Code Playgroud)

security iptables port

2
推荐指数
2
解决办法
1040
查看次数

标签 统计

iptables ×1

port ×1

ps ×1

security ×1

ssh ×1