雏鹰部落

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 5762|回复: 14

[讨论/求助] IPsec的傻瓜教程 (荐)

[复制链接]
发表于 2003-7-22 03:30:10 | 显示全部楼层 |阅读模式
先来筛选器<br><br>(针对只做服务器的主机)<br>1.如图,双击小电脑的图标。<br><img border=0 src=http://www.spoto.net/bbs/images/upfile/20037222524.JPG onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300"><br>2.届时会出现这个窗口。点“属性”<br><img border=0 src=http://www.spoto.net/bbs/images/upfile/200372225712.JPG onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300"><br>3.双击那个INTERNET 协议(TCP/IP)<br><img border=0 src=http://www.spoto.net/bbs/images/upfile/200372225731.JPG onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300"><br>4.点那个高级<br><img border=0 src=http://www.spoto.net/bbs/images/upfile/20037223016.JPG onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300"><br>5.选到“选项”这一项。看到“TCP/IP筛选”了吗?双击!<br><img border=0 src=http://www.spoto.net/bbs/images/upfile/20037223038.JPG onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300"><br>6.出来一个这样的窗口!好了,把那个“启用TCP/IP(所有适配器)”的勾勾起来。接着TCP端口、UDP端口、IP协议全部选择“只允许”,最后在TCP端口栏里添加端口:80,其他全空着。<br><img border=0 src=http://www.spoto.net/bbs/images/upfile/20037223220.JPG onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300"><br>解释:80是WWW服务开的,人家要访问的你服务器,就要通过80端口。如果你的服务器是FTP服务器的话,就把80改成21就OK了。如果有DNS解析域名的话,你还要加多个53端口(TCP/UDP)——也就是说你提供什么服务就在TCP里开什么端口(什么服务对应什么端口,这里我不说那么详细了,你自己去网上查)。注意:UDP栏为空,就是丢弃所有UDP包的意思。他的UDP包进不来,你的UDP包也出不去;IP协议为空,可以关掉PING响应。当然,人家PING不到你,你也休想PING人家!——这个筛选器是镜像的(双向有效)。<br>7.关闭PING响应可以骗过很多款扫描器,如XSCAN、SUPERSCAN等,但如果人家选择“PING不到照样扫”之类的选项,你还是逃不掉的呵呵……丢弃数据包的方法虽然会导致很多功能丧失,但不过有个好处就是:就算他利用你的80端口把你溢出了,他也一样没办法连到你主机上拿到权限。最后别忘了重启生效!<br><img border=0 src=http://www.spoto.net/bbs/images/upfile/2003722339.JPG onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300"><br><br>个人电脑(注意:WIN98用户没有此功能)<br><br>如果个人电脑按照那样设置的话——呵呵,你也别看网页了,别玩网络游戏了,QQ也免了……这时候我们就要求助于“IP安全策略”。<br>打开运行,输入mmc,回车!(注意:WIN98用户没有此功能,请改装WIN2000或更高!)<br><img border=0 src=http://www.spoto.net/bbs/images/upfile/20037223634.JPG onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300"><br>在出现的控制台1窗口里点“文件”,然后选择“添加/删除管理单元”<br><img border=0 src=http://www.spoto.net/bbs/images/upfile/20037223655.JPG onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300"><br>出现一个这样的窗口。选择添加。<br><img border=0 src=http://www.spoto.net/bbs/images/upfile/20037223101.JPG onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300"><br>选择那个“IP安全管理”,然后点击“添加”。<br><img border=0 src=http://www.spoto.net/bbs/images/upfile/200372231018.JPG onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300"><br>弹出这样一个窗口。本地计算机的那个不要改,直接按完成。它会退回到上一个画面,这个时候不要再添加了,按关闭就可以了<br><img border=0 src=http://www.spoto.net/bbs/images/upfile/200372231057.JPG onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300"><br>出现这个画面后按确定就OK了。我们继续……<br><img border=0 src=http://www.spoto.net/bbs/images/upfile/200372231113.JPG onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300"><br>在右边的窗口里点一下右键,然后选择“创建IP安全策略”<br><img border=0 src=http://www.spoto.net/bbs/images/upfile/200372231133.JPG onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300"><br>这时候会进一个向导。唉,向导个啥……名称随便填,描述也随便描述,只要到最后你还记得哪个是你添加的就可以了……<br>下一步……<br><img border=0 src=http://www.spoto.net/bbs/images/upfile/200372231432.JPG onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300"><br>别选那个“激活默认响应规则”<br>下一步……<br><img border=0 src=http://www.spoto.net/bbs/images/upfile/200372231452.JPG onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300"><br>完成!开始编辑属性!<br><img border=0 src=http://www.spoto.net/bbs/images/upfile/20037223157.JPG onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300"><br>在这个画面点击“添加”<br><img border=0 src=http://www.spoto.net/bbs/images/upfile/200372231533.JPG onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300"><br>还是点“添加”(呵呵,那个“ALL IN 1”是我已经编好的规则)<br><img border=0 src=http://www.spoto.net/bbs/images/upfile/200372231549.JPG onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300"><br>写好名称和描述。然后再点“添加”——呵呵,不要怕麻烦……<br><img border=0 src=http://www.spoto.net/bbs/images/upfile/200372231857.JPG onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300"><br>出现了这个窗口!原地址选择“任何IP地址”,目标地址选择“我的IP地址”<br>至于那个镜像,就是双向有效的意思——人家进不来,你也出不去。建议“黑人”朋友们不要勾起来,其他不“黑”的就勾了吧。<br>然后点顶上的那个“协议”<br><img border=0 src=http://www.spoto.net/bbs/images/upfile/200372231923.JPG onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300"><br><br>在协议这一项,如果没有基本的网络知识,设置起来比较麻烦……因为65535个端口里,每个端口对应的服务都有它们相应的协议——比如80端口对WWW服务,协议TCP等等……(具体请参照SKY提供的PORT图)<br><img border=0 src=http://www.spoto.net/bbs/images/upfile/20037223203.JPG onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300"><br>对端口协议比较了解的朋友在这里可以自由设置;不了解的朋友,我在这里提供一点参考。<br>1.        类型选择TCP,端口那里,上面一行选择“从任意端口”,下面一行选择“到此端口”,然后添上445。<br>2.        类型选择UDP,端口那里,上面一行选择“从任意端口”,下面一行选择“到此端口”,然后添上445。<br>解释:445这个端口是共享(net share服务)用的,它有TCP和UDP两种协议。如果你想和别人共享什么东西的话,那就不要定义这条规则了。<br>3.        类型选择TCP,端口那里,上面一行选择“从任意端口”,下面一行选择“到此端口”,然后添上139。<br>4.        屏蔽其他的端口方法大概也是如此,我现在把我在本机上定义的规则贴出来出来,你们自己看住添就行了<br><img border=0 src=http://www.spoto.net/bbs/images/upfile/200372232235.JPG onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300"><br>注解:那个17300端口我也不知道是什么东西,以前防火墙拦截到的信息里看的,估计不是什么好东西——屏蔽了!那个1080是Wingate什么来的,也是从防火墙上看到的——一起屏蔽了。至于5188……呵呵,一个后门~~~我常用的后门。最后那个“屏蔽局网”,我马上会说,你们暂时不要写进去。如果你还知道什么木马后门使用的端口,就都添进去好了……(不要添太多了,除非你的机器很强)<br><br>屏蔽局网<br><br>在寻址栏里选择源地址为“一个特定的IP子网”,IP地址里添写你网关地址的子网号(前2个点里的数值),比如:我的网关地址是211.162.44.254,那我就填211.162.0.0;OUCNET的朋友就填10.10.0.0。接下来那个子网掩码就写255.255.0.0。目标地址依然是写“我的IP地址”,镜相千万不要勾,不然你就出不去了!呵呵,为什么?不要问我,问书去~~~~~~<br>协议就选择“任意”就OK了<br><img border=0 src=http://www.spoto.net/bbs/images/upfile/200372232258.JPG onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300"><br>全部确定出来以后回到这个窗口,选择那个“筛选器操作”<br><img border=0 src=http://www.spoto.net/bbs/images/upfile/200372232514.JPG onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300"><br>“添加”,然后在常规里写一个名字,比如叫做“DENY”<br><img border=0 src=http://www.spoto.net/bbs/images/upfile/200372232532.JPG onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300"><br>在“安全措施”栏里选择“阻止”!——确定!<br><img border=0 src=http://www.spoto.net/bbs/images/upfile/200372232547.JPG onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300"><br>最后把任务“指派”就OK了!!!<br><img border=0 src=http://www.spoto.net/bbs/images/upfile/20037223267.JPG onload="javascript:if(this.width>screen.width-300)this.width=screen.width-300">
 楼主| 发表于 2003-7-22 03:34:28 | 显示全部楼层
从我的《将入侵者打得有来无回头》里节选出来的——对该文有兴趣的可以去我执笠的地头上看——共3篇。<br>PS:因为部分学员反应不能理解(可能是我上课的时候讲得太快),所以特此抓图编制傻瓜教程!(累就一个字……)
 楼主| 发表于 2003-7-22 23:04:14 | 显示全部楼层
听不见
发表于 2003-7-22 22:41:46 | 显示全部楼层
papappapapapapapa <br>鼓掌一下!
发表于 2003-7-23 22:18:13 | 显示全部楼层
只可意会,不可~~~~
发表于 2003-7-23 22:19:04 | 显示全部楼层
好!!!<br>很好!!!<br>非常好!!!
 楼主| 发表于 2003-7-23 22:19:07 | 显示全部楼层
P传
发表于 2004-1-3 17:47:04 | 显示全部楼层
呵呵,很好的教程啊,适合我这些菜鸟!
发表于 2004-1-3 22:33:12 | 显示全部楼层
来来怎么不介绍一下自己啊。:)
 楼主| 发表于 2004-1-3 22:36:10 | 显示全部楼层
哦,这是从哪里翻出来的?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|熊猫同学技术论坛|小黑屋| 网络工程师论坛 ( 沪ICP备09076391 )

GMT+8, 2024-5-1 00:22 , Processed in 0.076046 second(s), 18 queries , Gzip On.

快速回复 返回顶部 返回列表