Comments (1)
tun2socks the vNIC is not active (not the preferred network, or not connected to the internet).
-
Physical NIC is not connected to the internet.
-
TAP-diver handle is CloseHandle.
-
tun2socks Implement has problems, such as magic changes based on LwIP, but many things are not done well.
-
tun2socks recv-packet loop stops.
-
No valid physical outbound IPv4/6 route exists.
For example:
Physical-NIC, 192.168.0.7 255.255.255.0 192.168.0.1
tunsocks-vNIC,10.0.0.1 255.255.255.0 10.0.0.0(TAP-Windows Gateway)tun2socks server-IP (TCP/IP),172.16.43.55 tun2socks server-IP(UDP/IP),172.16.43.77
So,IPv4 routes need to be configured(Physical hosted network)
route add 172.16.43.55 mask 255.255.255.255 192.168.0.1
route add 172.16.43.77 mask 255.255.255.255 192.168.0.1And,tun2socks TAP/TUN vNIC route table configuration
route add 0.0.0.0 mask 0.0.0.0 10.0.0.0
route add 0.0.0.0 mask 128.0.0.0 10.0.0.0
route add 128.0.0.0 mask 128.0.0.0 10.0.0.0Delete the "physical hosted network" routing table
route delete 0.0.0.0 mask 0.0.0.0 192.168.0.1
route delete 0.0.0.0 mask 128.0.0.0 192.168.0.1 [if exists, delete]
route delete 128.0.0.0 mask 128.0.0.0 192.168.0.1 [if exists, delete] -
TAP/TUN driver sets from "Down" to "Up" state, which will cause network switching, but will not cause "physical hosting NIC" to lose network.
-
Based on VEthernet development, we recommend using .NET/FCL NetworkInterface API to track the network, followed by the PInvoke MIB_2 interface.
-
[Common failures]vNIC and Physical-NIC IPv4/6 route table control, resulting in loss of Internet issues.
Check system IPv4 route table:
route PRINT -4
Check system IPv6 route table:
route PRINT -6
Added 1: NIC cannot be tracked by traffic, only the NIC device is deleted or converted to a "Down" state.
Added 2: TAP-Windows drivers do not support power optimization management.
from vethernet.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vethernet.