命令行下建立VPN

分类:安全 | 2011-08-30 | 撸过 113 次
0人扯谈
@echo off
rem preparation

sc config sharedaccess start= disabled
net stop SharedAccess
sc config remoteaccess start= auto
net start RemoteAccess
net start lanmanserver
net start RemoteRegistry

rem build vpn

netsh ras set user vpnuser permit
netsh ras ip add range 10.10.1.1 10.10.10.10
netsh ras ip set addrassign pool
netsh routing ip nat install
netsh routing ip nat add interface 本地连接 full
netsh routing ip nat add interface 内部 private

netsh routing ip igmp install
netsh routing ip igmp add interface 内部 igmpprototype=IGMPRTRV3 ifenabled=enable

robustvar=2 startupquerycount=2 startupqueryinterval=31 genqueryinterval=125

genqueryresptime=10 lastmemquerycount=2 lastmemqueryinterval=1000 accnonrtralertpkts=YES
netsh routing ip igmp add interface name="本地连接" igmpprototype=IGMPPROXY ifenabled=enable

隐藏部分日志

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RemoteAccess\Parameters]
"LoggingFlags"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RasMan\Parameters]
"ProhibitIPsec"=dword:00000001
本站内容均为原创,转载请务必保留署名与链接!
命令行下建立VPN:https://www.webshell.cc/1070.html
标签:

相关日志