非网关支持网对网

This commit is contained in:
snltty
2024-08-21 15:55:29 +08:00
parent 2f1209fc0e
commit f6242db259

View File

@@ -140,6 +140,8 @@ namespace linker.tun
{
string defaultInterface = GetDefaultInterface();
Console.Write($"defaultInterface-{defaultInterface}-defaultInterface");
IPAddress network = NetworkHelper.ToNetworkIp(address, NetworkHelper.GetPrefixIP(prefixLength));
CommandHelper.Linux(string.Empty, new string[] {
$"sysctl -w net.ipv4.ip_forward=1",