Fuzzy |
01-09-2017 05:53 PM |
Quote:
Originally Posted by wayner
(Post 598378)
What if I changed my VPN subnet to 192.168.0.X and mask to 255.255.254.0 and changed the mask on the SageTV server as well. Would they then be on the same subnet?
I guess it doesn't really matter, I was just wondering how it made that determination.
|
This would prevent the routing from working correctly between the subnets, because the 192.168.0.x client would think it's on the same subnet as the 192.168.1.x server, so it would not even try to route through anything.
The only way to make a VPN truly on the same subnet is to have the VPN sit below the TCP/IP level. OpenVPN does this via a TAP interface instead of TUN. The easiest way to understand the different, is that TUN connects the two sides of the VPN tunnel through a virtual TCP/IP router. TAP connects the two sides of the VPN tunnel through a virtual ethernet switch. Both sides of the TAP tunnel would then reside on the same IP subnet (192.168.1.x).
|