有没有办法让我在命令行上获取我的公共 (WAN) IP 地址?我在路由器(LAN 网络)后面,有一个由我的 ISP 分配的动态 IP 地址。
我已经看到使用外部网络服务(例如ifconfig.me)的解决方案,但我想知道我是否可以在没有外部服务的情况下做到这一点。
我试图在 Debian 中创建一个 USB 引导程序来安装我的新系统。我在 Debian 中找不到任何易于使用的工具。我尝试从 Debian 站点下载混合 ISO 映像,并使用Debian 站点中所述的dd 命令将其复制到 USB ,但它没有启动。
接下来,我在 Ubuntu 中使用了 Startup Disk Creator 工具,它的工作非常出色。Debian 中是否有类似的工具?我知道有 Unetbootin,但是安装起来很困难。
我陷入了一个奇怪的境地。我有一个 1Tb 的便携式 HD,里面装满了一些内容。它在 Windows 中使用,并且一如既往地充满了病毒。我尝试以 root 身份删除一些文件夹。但是返回了以下错误
rm -R RECYCLER/
rm: cannot remove `RECYCLER/S-1-5-21-1659004503-1644491937-725345543-1003/Dc39.pptx': Operation not permitted
rm: cannot remove `RECYCLER/S-1-5-21-1659004503-1644491937-725345543-1003/Dc58.docx': Operation not permitted
rm: cannot remove `RECYCLER/S-1-5-21-1659004503-1644491937-725345543-1003/Dc17.JPG': Operation not permitted
Run Code Online (Sandbox Code Playgroud)
ls -l 回来
Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf898cc8b
Device Boot Start End …Run Code Online (Sandbox Code Playgroud) 我可以使用lsmod或获取模块列表cat /proc/modules。这两种方法是否使用相同的机制来检索模块?我想知道这一点,因为我们可以用它来找到一些隐藏的恶意模块。
我有如下设置
我的问题是,当我知道ISP分配的IP时,如何从Internet访问IP为192.168.1.2的计算机
我的 Dlink 路由器有一个 NAT 字段,如下

我在 192.168.1.2 系统和路由器中启用了 SSH。当我填写 NAT 表中的条目并尝试连接到 192.168.1.2 系统时,它仍然仅连接到路由器
我给出的服务器名称值: 192.168.1.2 、协议 tcp 和所有其他端口值作为 ssh 端口 22。当我给出这样的值时,它显示路由器端口移动到 2222 的消息,但当我使用 nmap 检查时该端口未打开
debian ×2
command-line ×1
dynamic-ip ×1
installation ×1
internet ×1
ip ×1
linux ×1
linux-kernel ×1
nat ×1
networking ×1
openssh ×1
ssh ×1
usb ×1