我正在尝试使用softether vpn级联连接桥接两个网络。我想在两个子网之间建立第3层桥。到目前为止,我已经能够做到以下几点:
- 在家庭网络中创建一个VpnServer
- 使用VpnClient从远程位置创建级联连接。
- 使用softether在两个子网之间创建第3层交换机
- 从家庭网络访问远程计算机。 家庭网络有192.168.1.0/24 远程网络使用secureNat和192.168.30.0/24。
IP地址:
- 主路由器:192.168.1.1
- softether服务器:192.168.1.24
- 第3层交换机:192.168.1.248和192.168.30.248
- 远程计算机:192.168.30.1
两端都配置了静态路由,我可以在家里从笔记本电脑访问计算机, 但 我无法从服务器访问它。
alex@leptuncraft:~$ ifconfig
enp3s0 Link encap:Ethernet HWaddr fc:aa:14:1e:ff:18
inet addr:192.168.1.24 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::feaa:14ff:fe1e:ff18/64 Scope:Link
inet6 addr: 2a02:2f0a:4010:9f00:feaa:14ff:fe1e:ff18/64 Scope:Global
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:76823 errors:0 dropped:0 overruns:0 frame:0
TX packets:85884 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:29918914 (29.9 MB) TX bytes:29758121 (29.7 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1557 errors:0 dropped:0 overruns:0 frame:0
TX packets:1557 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:207047 (207.0 KB) TX bytes:207047 (207.0 KB)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.8.0.1 P-t-P:10.8.0.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:2870 (2.8 KB)
alex@leptuncraft:~$ ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
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: enp3s0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether fc:aa:14:1e:ff:18 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.24/24 brd 192.168.1.255 scope global enp3s0
valid_lft forever preferred_lft forever
inet6 2a02:2f0a:4010:9f00:feaa:14ff:fe1e:ff18/64 scope global mngtmpaddr dynamic
valid_lft 597sec preferred_lft 597sec
inet6 fe80::feaa:14ff:fe1e:ff18/64 scope link
valid_lft forever preferred_lft forever
3: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 100
link/none
inet 10.8.0.1 peer 10.8.0.2/32 scope global tun0
valid_lft forever preferred_lft forever
alex@leptuncraft:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default router.asus.com 0.0.0.0 UG 0 0 0 enp3s0
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
10.8.0.2 * 255.255.255.255 UH 0 0 0 tun0
192.168.1.0 * 255.255.255.0 U 0 0 0 enp3s0
192.168.30.0 192.168.1.248 255.255.255.0 UG 0 0 0 enp3s0
alex@leptuncraft:~$ ping 192.168.1.248
PING 192.168.1.248 (192.168.1.248) 56(84) bytes of data.
From 192.168.1.24 icmp_seq=1 Destination Host Unreachable
From 192.168.1.24 icmp_seq=2 Destination Host Unreachable
From 192.168.1.24 icmp_seq=3 Destination Host Unreachable
有人可以帮忙吗? 提前致谢。