mirror of
https://github.com/snltty/linker.git
synced 2025-10-30 04:02:13 +08:00
非网关支持网对网
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user