默认分类

windows 使用N2n打开流量转发 并使用系统 ip转发 nat流量伪装

一、开启 Windows 系统 IP 转发

`reg add "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters" /v IPEnableRouter /t REG_DWORD /d 1 /f
Get-NetIPInterface
Set-NetIPInterface -InterfaceAlias "你的n2n网卡名" -Forwarding Enabled
Set-NetIPInterface -InterfaceAlias "你的外网网卡名" -Forwarding Enabled

`

二、做 NAT / 流量伪装

New-NetNat -Name "n2nNat" -InternalIPInterfaceAddressPrefix "10.10.10.0/24"

三,n2n 配置文件加上-r 参数允许转发

回复

This is just a placeholder img.