我在 Windows 7 上的目標:
- 用於將無線連接的用戶橋接或路由到 OpenVPN Tap 網路。
- 任何控制台或 RDC 登入使用者都可以正常(非 VPN)存取網際網路。
- 系統啟動時,所有組件均無頭自動啟動。
我可以手動設定 OpenVPN Tap 適配器以與無線網路 3(MS 虛擬 Wifi 微型連接埠)共享,但共享不是持久的 - 重新啟動後需要另一個手動共享設定。沒有 W7 補丁可以修復此問題。
無線託管網路是透過以下方式建立的:
netsh wlan set hostednetwork mode=allow "ssid=MySSID" "key=MyKey" keyUsage=persistent
netsh wlan start hostednetwork
第二個 netsh 不是持久的 - 重新啟動後,託管網路不會啟動。我可以在啟動 VPN 的腳本中解決這個問題。
在超級用戶上我發現“如何將 win 7 電腦設定為路由器?」。
從 SuperUser 關於兩個 NIC 之間路由的帖子來看,似乎需要兩個路由。我仍然對如何建造這兩條路線感到困惑。我還要求控制台和 RDC 用戶具有非 VPN 網路存取權限。我希望所有這些都在一個網路卡上。
以下是有關介面和路線的資訊供參考:
Hosted network settings
-----------------------
Mode : Allowed
SSID name : "MySSID"
Max number of clients : 10
Authentication : WPA2-Personal
Cipher : CCMP
Hosted network status
---------------------
Status : Started
BSSID : 98:48:27:66:28:d5
Radio type : 802.11n
Channel : 10
Number of clients : 0
Configuration for interface "Wireless Network Connection 3" MS Virtual Wifi Miniport
DHCP enabled: No
InterfaceMetric: 10
Statically Configured DNS Servers: 103.86.96.100
103.86.99.100
Register with which suffix: Primary only
Statically Configured WINS Servers: None
Configuration for interface "Wireless Network Connection 2" TP-Link Wireless USB
DHCP enabled: Yes
InterfaceMetric: 5
DNS servers configured through DHCP: None
Register with which suffix: Primary only
WINS servers configured through DHCP: None
Configuration for interface "OpenVPN TAP-Windows6"
DHCP enabled: Yes
InterfaceMetric: 10
DNS servers configured through DHCP: 103.86.96.100
103.86.99.100
Register with which suffix: Primary only
WINS servers configured through DHCP: None
Configuration for interface "OpenVPN Wintun"
DHCP enabled: No
InterfaceMetric: 5
Statically Configured DNS Servers: None
Register with which suffix: Primary only
Statically Configured WINS Servers: None
Configuration for interface "Local Area Connection"
DHCP enabled: Yes
IP Address: 192.168.0.112
Subnet Prefix: 192.168.0.0/24 (mask 255.255.255.0)
Default Gateway: 192.168.0.1
Gateway Metric: 20
InterfaceMetric: 20
DNS servers configured through DHCP: 192.168.0.1
Register with which suffix: Primary only
WINS servers configured through DHCP: None
Configuration for interface "Local Area Connection 2" Not Used
DHCP enabled: Yes
InterfaceMetric: 5
Register with which suffix: Primary only
WINS servers configured through DHCP: None
Configuration for interface "Loopback Pseudo-Interface 1"
DHCP enabled: No
IP Address: 127.0.0.1
Subnet Prefix: 127.0.0.0/8 (mask 255.0.0.0)
InterfaceMetric: 50
Statically Configured DNS Servers: None
Register with which suffix: Primary only
Statically Configured WINS Servers: None
===========================================================================
Interface List
23...34 e8 94 f8 85 94 ......TP-Link Gigabit PCI Express Adapter
18...98 48 27 66 28 d5 ......Microsoft Virtual WiFi Miniport Adapter
16...98 48 27 66 28 d5 ......TP-Link Wireless USB Adapter
15...00 ff c6 01 bf 5f ......TAP-Windows Adapter V9
14...........................Wintun Userspace Tunnel
11...44 8a 5b 25 f8 05 ......Realtek PCIe GbE Family Controller
1...........................Software Loopback Interface 1
13...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
21...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter
===========================================================================
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.112 40
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
192.168.0.0 255.255.255.0 On-link 192.168.0.112 276
192.168.0.112 255.255.255.255 On-link 192.168.0.112 276
192.168.0.255 255.255.255.255 On-link 192.168.0.112 276
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 192.168.0.112 276
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 192.168.0.112 276
===========================================================================
Persistent Routes:
None
IPv6 Route Table
===========================================================================
Active Routes:
If Metric Network Destination Gateway
1 306 ::1/128 On-link
11 266 fe80::/64 On-link
11 266 fe80::d055:7ea9:674e:5cc7/128
On-link
1 306 ff00::/8 On-link
11 266 ff00::/8 On-link
===========================================================================
Persistent Routes:
None
答案1
我決定走一個完全不同的方向。
但要如何刪除這個發佈的問題呢?我找不到任何選擇。