AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 606512
Accepted
lovespring
lovespring
Asked: 2015-04-08 13:38:23 +0800 CST2015-04-08 13:38:23 +0800 CST 2015-04-08 13:38:23 +0800 CST

为什么攻击的 ip 地址有一个字符串 'dia'

  • 772

这是来自的记录netstat –lnt | grep ^tcp:

tcp        0      0 xx.xxx.xx.72:ssh        106.49.174.61.dia:55983 ESTABLISHED

“x”被我隐藏了:)

我的问题是:

  • 为什么地址有一个“dia”?
  • 他已经通过 sshd 登录了我的 ubuntu 服务器了吗?
  • 如何禁止该地址?
networking
  • 1 1 个回答
  • 138 Views

1 个回答

  • Voted
  1. Best Answer
    2707974
    2015-04-08T23:05:56+08:002015-04-08T23:05:56+08:00

    这个ip地址106.49.174.61,属于CHINACACHE。

    xxx@xxx ~ $ whois 106.49.174.61
    % [whois.apnic.net]
    % Whois data copyright terms    http://www.apnic.net/db/dbcopyright.html
    
    % Information related to '106.48.0.0 - 106.49.255.255'
    
    inetnum:        106.48.0.0 - 106.49.255.255
    netname:        CHINACACHE
    descr:          Beijing Blue I.T Technologies Co.,Ltd.
    descr:          Galaxy Building,No.10 jiuxianqiao ,chaoyang
    descr:          District,beijing
    country:        CN
    admin-c:        YS1150-AP
    tech-c:         DC1032-AP
    mnt-by:         MAINT-CNNIC-AP
    mnt-lower:      MAINT-CNNIC-AP
    mnt-routes:     MAINT-CNNIC-AP
    mnt-irt:        IRT-CNNIC-CN
    status:         ALLOCATED PORTABLE
    changed:        [email protected] 20110322
    source:         APNIC
    
    irt:            IRT-CNNIC-CN
    address:        Beijing, China
    e-mail:         [email protected]
    abuse-mailbox:  [email protected]
    admin-c:        IP50-AP
    tech-c:         IP50-AP
    auth:           # Filtered
    remarks:        Please note that CNNIC is not an ISP and is not
    remarks:        empowered to investigate complaints of network abuse.
    remarks:        Please contact the tech-c or admin-c of the network.
    mnt-by:         MAINT-CNNIC-AP
    changed:        [email protected] 20110428
    source:         APNIC
    

    CHINACACHE 是 ISP,在大多数情况下,后缀dia表示D动态I p A地址。ISP 为 ISP 服务 [adsl、3g、wless ...] 的用户使用大型公共 IP 地址池。

    首先你必须断开这个ip。

    netstat -ntp会给你一个PID你可以杀死的进程女巫

    xxx@xxx ~ $ netstat -ntp
    (Not all processes could be identified, non-owned process info
     will not be shown, you would have to be root to see it all.)
    Active Internet connections (w/o servers)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp        0      0 127.0.0.1:53118         127.0.0.1:27117         ESTABLISHED -               
    tcp        0      0 xxx.xxx.xx.x:39049      xx.xxx.xx.xxx:443       ESTABLISHED 13261/chrome    
    tcp        0      0 xxx.xxx.xx.x:39048      xx.xxx.xx.xxx:443       ESTABLISHED 13261/chrome    
    

    例如,您可以从我的电脑女巫 im make 中看到两个进程chrome

    要终止进程也就是断开连接,您可以使用

    sudo kill -9 PID
    

    现在你必须防止不受欢迎的连接到你的电脑。启动防火墙。

    sudo ufw start
    

    当启动防火墙时,将禁止所有与 pc 的连接。如果您希望允许从网络范围内的特定 ip 进行访问,您可以使用此命令模板来进行管理。

    ufw [--dry-run] [delete] [insert NUM]  allow|deny|reject|limit  [in|out
           on INTERFACE] [log|log-all] [proto protocol] [from ADDRESS [port PORT]]
           [to ADDRESS [port PORT]]
    

    例子

    sudo ufw allow proto tcp from xxx.xxx.xx.x port 22 to yyy.yyy.yy.y port 22
    

    此规则允许从端口女巫的xxx.xxx.xxx.xxx地址访问您的电脑是为了yyy.yyy.yy.y22ssh

    sudo ufw allow proto tcp from xxx.xxx.xx.0/24 port 80 to xxx.xxx.xx.x port 80
    

    此规则允许xxx.xxx.xx.0具有网络掩码的子网通过端口aka流量255.255.255.0访问您的电脑80http

    • 4

相关问题

  • 如何设置 VLAN 转发?

  • 如何将主机 Ubuntu 上的 VPN (tun0) 网络适配器映射到 VirtualBox 来宾 Windows?

  • 如何限制下载/上传带宽?

  • 如何通过 Windows 网络共享文件?

  • 面板小程序以文本形式显示当前网络流量?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve