我有一个完美运行的 Ubuntu 12.04 系统。我看到了来自 DEFCON 的 YouTube 视频,其中一个人正在讨论攻击家用路由器。在对家庭路由器安全性的 Internet 搜索中,我找到了 2011 年关于加强 SOHO 路由器的 CERT 论文。一个技巧是减少 LAN 上的 IP 数量并使用静态 IP。
我进入了我的 12.04 机器。我在路由器上设置了静态 IP 地址 192.168.1.7,但无法访问 Internet。局域网仍然有效。当我启动到 Windows 7 时,Windows 7 可以访问 Internet。当我在 Ubuntu 中返回 DCHP 时,重新启动并再次检查我是否可以访问 LAN 但无法访问 Internet - 与 DHCP 不同的 IP [192.168.1.11]。
我从 CD 完全重新安装了 Ubuntu - 同样的问题。
我在 askubuntu 上进行了搜索,发现了 2 个以前的帖子
Wired Internet doesn't work on ubuntu 12.04 from April 29
internet access problem in 12.04 from April 28
Run Code Online (Sandbox Code Playgroud)
我尝试了这些东西,但它们不起作用。
任何解决此问题的想法、策略和策略将不胜感激。
以下是一些可能有用的诊断方法:
ifconfig …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用 Crossover for Linux 进行 LAN 游戏,但是我的计算机永远不会被网络中的其他玩家找到,它本身也找不到其他玩家。
(我尝试了 2 个游戏,中土之战 2 和纪元 1602。)
有没有实现Wine 的局域网访问的通用方法?
我上次在使用ASUS Q87M-E 主板和 Intel I217LM 以太网控制器的机器上安装 Ubuntu 12.04未能检测到以太网卡。唯一显示的东西
ifconfig -a
Run Code Online (Sandbox Code Playgroud)
是回环。我仔细检查了 BIOS,控制器应该在线。
$ rfkill list all
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
$ lspci
00:00.0 Host bridge: Intel Corporation Haswell DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Haswell PCI Express x16 Controller (rev 06)
00:02.0 VGA compatible controller: Intel Corporation Haswell Integrated Graphics Controller (rev 06)
00:03.0 Audio device: Intel Corporation Haswell HD Audio Controller (rev 06)
00:14.0 USB controller: Intel Corporation …Run Code Online (Sandbox Code Playgroud) 在全新安装的 Ubuntu 14.04 (machine1) 上,我的 openssh-server 具有完全默认的配置。
当从 LAN 上的 machine2 使用空的 ~/.ssh 连接时,我从服务器获得以下调试输出(作为 /usr/sbin/sshd -p 22 -D -d -e 运行):http://pastebin .com/WeHGzsUM和相关位可能是:
debug1: permanently_set_uid: 118/65534 [preauth]
debug1: list_hostkey_types: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ssh-ed25519 [preauth]
debug1: SSH2_MSG_KEXINIT sent [preauth]
Read from socket failed: Connection reset by peer [preauth]
debug1: do_cleanup [preauth]
...
Run Code Online (Sandbox Code Playgroud)
当从 machine2 使用在许多服务器上工作的普通 ~/.ssh 连接时,我在 machine1 上得到以下调试输出: http: //pastebin.com/uxKfAYSL
在这两种情况下,在 machine2 上,客户端报告:http://pastebin.com/dTp4mNne,在我看来,直到最后一行都是正常的:
ssh_exchange_identification: read: Connection reset by peer
Run Code Online (Sandbox Code Playgroud)
在服务器和客户端上,ssh客户端是版本:
OpenSSH_6.6p1 Ubuntu-2ubuntu1, OpenSSL 1.0.1 14 Mar 2012
Run Code Online (Sandbox Code Playgroud)
服务器有版本:
OpenSSH_6.6.1p1 Ubuntu-2ubuntu2, …Run Code Online (Sandbox Code Playgroud) 我刚刚在我的 Ubuntu 盒子中添加了第二个 1TB 硬盘,当我运行blkid. 但是我怎么办
我可以阻止 LAN 上的特定 MAC 地址与我联系吗?
我知道我可以从路由器或交换机做到这一点。
但我想了解在 Ubuntu(Linux) 命令中是否可行。
我在我的系统上安装了 Ubuntu 14.04,我将它作为我办公室的服务器,有 15 名员工在工作。我的系统中有 2 个 LAN 卡:
现在,我如何配置我的两个 LAN 卡,因为我想阻止某些站点并对网络进行一些限制。
我最近买了一台新的 HP 笔记本电脑(Pavilion 15-ec2003np),但是当我安装 ubuntu(已经尝试过 20.04、20.10、Pop!_OS 20.04、20.10)时,它说找不到网络适配器,我只能通过互联网电缆。已经搜索了驱动程序,但我似乎找不到正确的驱动程序。笔记本电脑有一个 Realtek 8852 网络适配器。
有没有其他人遇到过同样的问题?
先感谢您。
编辑:重新安装 Ubuntu 21.04 并运行一些命令来获取一些信息。另外,我从 ubuntu 网站进行了网络故障排除(我唯一没有尝试的是使用 Windows 驱动程序),但仍然没有成功。以下是以下命令的结果:
lsusb:
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 13d3:56c9 IMC Networks HP TrueVision HD Camera
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0bda:2852 Realtek Semiconductor Corp. Bluetooth Radio
Bus 001 Device …Run Code Online (Sandbox Code Playgroud) 我有一个 raspberry pi 1 B+ 和 My Kubuntu 18.04。现在我需要将它们连接到同一网络。我使用以太网(不是交叉电缆)电缆直接连接
这些是我的设置
如图所示,我清楚地看到我没有提供任何 IP 地址或子网信息。
但连接建立后,10.42.0.x(在我的例子中10.42.0.1和10.42.0.226)是 IP 地址。
我的问题是,
这个IP是否硬编码到网络管理器中?我的要求是,
我需要我的 IP 地址位于 192.168.xx 范围内。
sudo arp-scan --interface=eth0 --localnet
Run Code Online (Sandbox Code Playgroud)
我知道上面的命令工作正常,但它输出所有内容,如 MAC 地址等。但我只需要找到 IP 地址。是否可以 ?