Skip to content

Commit

Permalink
add ipv6 to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
trudyhood committed Sep 27, 2021
1 parent 476429f commit 347a098
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 15 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# v2.0.272
# Upcomming
* Feature: IPv6 Support

# v2.0.272
* Feature: Block all IPv6 Global Unicast to prevent leak
* Fix: Android: Vpn Connection keeps open after disconnecting
* Fix: Android: Crash in android 5.1
Expand Down
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ It is available for Windows and Android. iOS client is not ready yet!

## Client Features
* Easy Installation; Just install and press connect
* Undetectable on private IP
* Undetectable on private IPs
* Fast
* Split Tunneling by Apps & Countries
* IPv6 Support*

## Server Features
* No Network configuration or knowledge is required
Expand All @@ -27,9 +28,14 @@ It is available for Windows and Android. iOS client is not ready yet!
* Highly Customizable
* Easily Embed into your .NET app
* Extendable User Management via REST API
* Component based via Nuget packages
* Component-based via Nuget packages
* Just open the solution with Visual Studio and build

### IPv6 Support
VpnHood supports IPv6, but in Windows, you need to be already on the IPv6 network, so all your network traffic will be tunneled through VpnHood.
In Windows, you will not have access to IPv6 sites if your network is not already configured to use IPv6.
In Android, however, you will get an Ipv6 address and access to all IPv6 sites regardless of your network configuration.

## FAQ & Documents
Please check our [Wiki](https://github.com/vpnhood/VpnHood/wiki) to see VpnHood documents.

Expand All @@ -39,7 +45,7 @@ Please check our [Wiki](https://github.com/vpnhood/VpnHood/wiki) to see VpnHood
* [More...](https://github.com/vpnhood/VpnHood/wiki)

## Support
You are always Welcome!
You are always welcome!
* Feel free to start a new discussion [GitHub discussions](https://github.com/vpnhood/VpnHood/discussions).
* Report bugs or request features in [GitHub issues](https://github.com/vpnhood/VpnHood/issues).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="VpnHood.Client">
<Version>2.0.271</Version>
<Version>2.0.272</Version>
</PackageReference>
<PackageReference Include="VpnHood.Client.Device.Android">
<Version>2.0.271</Version>
<Version>2.0.272</Version>
</PackageReference>
<PackageReference Include="Xamarin.Essentials" Version="1.7.0" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="VpnHood.Client" Version="2.0.271" />
<PackageReference Include="VpnHood.Client.Device.WinDivert" Version="2.0.271" />
<PackageReference Include="VpnHood.Client" Version="2.0.272" />
<PackageReference Include="VpnHood.Client.Device.WinDivert" Version="2.0.272" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion VpnHood.Client.App.Win/VpnHood.Client.App.Win.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

<ItemGroup>
<PackageReference Include=" " Version="1.0.664.37" />
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.961.33" />
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.992.28" />
</ItemGroup>

<ItemGroup>
Expand Down
3 changes: 1 addition & 2 deletions VpnHood.Client.Device.WinDivert/WinDivertPacketCapture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ public void StartCapture()

// add outbound; filter loopback
var filter = $"(ip or ipv6) and outbound and !loopback and (udp.DstPort==53 or ({phraseX}))";
//todo
//var filter = $"(ip or ipv6) and outbound and !loopback and (protocol!=6 or tcp.DstPort!=3389) and (protocol!=6 or tcp.SrcPort!=3389) and (udp.DstPort==53 or ({phraseX}))";
// filter = $"(ip or ipv6) and outbound and !loopback and (protocol!=6 or tcp.DstPort!=3389) and (protocol!=6 or tcp.SrcPort!=3389) and (udp.DstPort==53 or ({phraseX}))";
filter = filter.Replace("ipv6.DstAddr>=::", "ipv6"); // WinDivert bug
try
{
Expand Down
4 changes: 1 addition & 3 deletions VpnHood.Client/VpnHoodClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ private void ConfigPacketFilter(IPEndPoint hostEndPoint)

if (ExcludeLocalNetwork)
{
//todo
excludeNetworks.AddRange(IpNetwork.LocalNetworksV4);
excludeNetworks.AddRange(IpNetwork.LocalNetworksV6);
}
Expand Down Expand Up @@ -330,8 +329,7 @@ private void PacketCapture_OnPacketReceivedFromInbound(object sender, Device.Pac
tunnelPackets.Add(ipPacket);
}
// passthru packet if IsSendToOutboundSupported is supported
else if (!isInRange && _packetCapture.CanSendPacketToOutbound) //todo
//else if (_packetCapture.CanSendPacketToOutbound)
else if (!isInRange && _packetCapture.CanSendPacketToOutbound)
{
passthruPackets.Add(ipPacket);
}
Expand Down
4 changes: 3 additions & 1 deletion VpnHood.Tunneling/PacketUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ private static IPPacket CreateUnreachableReplyV6(IPPacket ipPacket, IcmpV6Type i
var buffer = new byte[headerSize + icmpDataLen];
Array.Copy(BitConverter.GetBytes(reserved), 0, buffer, 4, 4);
Array.Copy(ipPacket.Bytes, 0, buffer, headerSize, icmpDataLen);
var icmpPacket = new IcmpV6Packet(new ByteArraySegment(new byte[headerSize])) //todo: PacketDotNet bug

// PacketDotNet doesn't support IcmpV6Packet properly
var icmpPacket = new IcmpV6Packet(new ByteArraySegment(new byte[headerSize]))
{
Type = icmpV6Type,
Code = code,
Expand Down

0 comments on commit 347a098

Please sign in to comment.