-
Notifications
You must be signed in to change notification settings - Fork 71
how the server handle the packet sent by client ? #14
Comments
Hi Jamlee, The missing piece is that the operating system on the server (a Linux feature called IPTables Masquerade) is modifying the packets for us if needed. Consider these two scenarios, where the VPN network has a netmask of Client on the VPN (with address
Client on the VPN (with address
Does that help? |
yeah, it is really really helpul to me. cloud i tranlate your 你好, Jamlee。 这里错过的一点是 考虑下面两个场景,前提是 vpn 的网段是 192.168.69.1-255, 子网掩码为 255.255.255.0: VPN 的客户端(地址 192.168.69.3)发送了 ip packet 到 另外一个 vpn 客户端 (地址 192.168.69.8):
VPN 的客户端(地址 192.168.69.3)发送了 ip packet 到地址
|
Yes thankyou! I can link to this from the readme, or feel free to submit a PR. Thanks again! |
Hi, budy. i have read source code, somewhere i could not understand. ^_^.
why does not the
raw packet
sent by client need modified ?for example, changing source ip etc.
Is the non-modify
raw packet
sent to tun0 directly always routed back correctly ?The text was updated successfully, but these errors were encountered: