wjl1019547485's recent timeline updates
wjl1019547485

wjl1019547485

V2EX member #567512, joined on 2021-12-31 16:30:19 +08:00
wjl1019547485's recent replies
参与一下,万一中了呢
Feb 12, 2025
Replied to a topic by Koril Linux Debian12 的网络用什么配置?
我是编辑 /etc/network/interfaces ,然后用 systemctl restart networking.service 重启网络
配置如下:
auto enp0s3
iface enp0s3 inet static
address 192.168.1.240/24
gateway 192.168.1.1
dns-nameservers 192.168.1.1 180.76.76.76
添加如下 iptables 规则成功解决,win10 为 192.168.1.32
# 假设路由器的 LAN 接口 IP 是 192.168.1.1
iptables -t nat -A POSTROUTING -d 192.168.1.32 -j SNAT --to-source 192.168.1.1
@digimoon 感谢回复,查了一下 snat ,我理解现在的配置是 snat ,然后 win10 收到的包的 src ip addr 其实是公网 IP ,这个包不在该 LAN 口的网段里,所以被丢弃了。这样理解对吗?
h12ssl-i 好像更新了,不能通通过这个方式了
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   919 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 22:01 · PVG 06:01 · LAX 15:01 · JFK 18:01
♥ Do have faith in what you're doing.