Niwi 大佬有话说 :
听说这里大佬多 debian10 扶墙 下无法联网
本帖最后由 Niwi 于 2020-1-31 18:35 编辑
说下基本情况:
1、家里联通公网 ip 下路由器 upnp 暴露出一台私有服务器 centos7 搭建了 softether v pn server,win10 client 下、安卓 IOS 通过 L2TP ipsec 可以正常上网。
2、我租房处一台 arm64 的贝壳云 debian10 系统,运行 softether v pn client 连接 v pn 可以正常连接,可以 ping 通网关但是不能通过它上网。
debian10 下
ip addr:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 92:8e:65:ae:c5:5e brd ff:ff:ff:ff:ff:ff
inet 192.168.22.28/24 brd 192.168.22.255 scope global dynamic eth0
valid_lft 6551sec preferred_lft 6551sec
inet6 fe80::6df1:356e:3501:2473/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: 扶墙_cuddns: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq state UNKNOWN group default qlen 1000
link/ether 5e:d4:70:4b:6a:20 brd ff:ff:ff:ff:ff:ff
inet 192.168.123.33/24 brd 192.168.123.255 scope global dynamic 扶墙_cuddns
valid_lft 59178sec preferred_lft 59178sec
ip route:
default via 192.168.22.1 dev eth0 proto dhcp metric 100
default via 192.168.22.1 dev eth0 proto dhcp src 192.168.22.28 metric 1024
default via 192.168.123.1 dev 扶墙_cuddns proto dhcp src 192.168.123.33 metric 1024
169.254.0.0/16 dev 扶墙_cuddns scope link metric 1000
192.168.22.0/24 dev eth0 proto kernel scope link src 192.168.22.28
192.168.22.0/24 dev eth0 proto kernel scope link src 192.168.22.28 metric 100
192.168.22.1 dev eth0 proto dhcp scope link src 192.168.22.28 metric 1024
192.168.123.0/24 dev 扶墙_cuddns proto kernel scope link src 192.168.123.33
192.168.123.1 dev 扶墙_cuddns proto dhcp scope link src 192.168.123.33 metric 1024
ping -I 192.168.123.33 192.168.123.1
PING 192.168.123.1 (192.168.123.1) from 192.168.123.33 : 56(84) bytes of data.
64 bytes from 192.168.123.1: icmp_seq=1 ttl=64 time=48.3 ms
64 bytes from 192.168.123.1: icmp_seq=2 ttl=64 time=25.7 ms
64 bytes from 192.168.123.1: icmp_seq=3 ttl=64 time=25.1 ms
64 bytes from 192.168.123.1: icmp_seq=4 ttl=64 time=26.1 ms
— 192.168.123.1 ping statistics —
4 packets transmitted, 4 received, 0% packet loss, time 7ms
rtt min/avg/max/mdev = 25.063/31.286/48.264/9.811 ms
ping 主机下其他主机也是不通的,感觉是路由表的问题,这块我不太熟悉,附网卡配置
cat /etc/systemd/network/20-扶墙_cudddns.network
Name=扶墙_cuddns
DHCP=yes
IPForward=yes
Niwi 大佬有话说 :
注:我不希望修改默认网卡,我只需要指定 interface 的方式使用