网闸配置教程上电开机进入初始状态。内外网接口机要设网关常规操作:1、用户名:admin(回车),密码:84681142(直接回车),弹出是否 查看ros相关信息,输入n。2、进入最初配置这里输入/intpri查看已经安装的网卡信息3、出现网卡信息,R表示网卡已经激活 了,如果是X那还需激活网卡:命令Int回车输入enable0表示激活第一张网卡4、我们看到ether1,如果是两张或者是三张 ,那么出现ether2、ether3...我们把网卡的名改一下便于后面操作。改网卡名:intset0(表示第一张网卡)nam e=Wan(也可以WAN表示外网)、如果还有网通的就命名为:intset1name=Lan1、第三张就命名为内网:set2 name=LAN2。5、给各网口分配IP命令:ipaddressaddaddress192.168.0.1/24in terface=lan回车IP.这里设置为192.168.0.1/24.24表示子网掩码.然后是要设置的网卡名字。完整的命令是如下 图:6、查看配置信息命令:ipaddpri查看IP地址配置信息!7、修改密码命令:password8、重启命令:sysreb oot9、关机命令:sysshutdown网闸配置脚本:[admin@MikroTik]interfacesetether 1name=ether1-lan;setether2name=ether2-wan/给网卡1、2命名,1为内网,2为外网 [admin@MikroTik]interfacesetether3name=ether3-lan;setether 2name=ether4-lan/给网卡3、4命名,3为内网,4为外网[admin@MikroTik]ipaddress ?addaddress=192.168.0.1/24interface=ether1-lan/设置网卡1IP地址和网关,此 处24代表子网掩码是255.255.255.0[admin@MikroTik]ipaddress?addaddress=19 2.168.254.250/24interface=ether2-wan/设置网卡2IP地址和网关,此处24代表子网掩码是2 55.255.255.0[admin@MikroTik]ipaddress?addaddress=192.168.1.1/2 4interface=ether3-lan/设置网卡3IP地址和网关,此处24代表子网掩码是255.255.255.0[ad min@MikroTik]ipaddress?addaddress=192.168.254.253/24interface =ether4-wan/设置网卡4IP地址和网关,此处24代表子网掩码是255.255.255.0[admin@MikroTi k]iprouteaddgateway=192.168.254.1/设置网关[admin@MikroTik]ipdn ssetprimary-dns=192.168.254.1/设置首选DNS服务器[admin@MikroTik]ipfir ewallnataddchain=srcnataction=masqueradeallow-remote-request s=yes/源地址伪装,允许远程响应[admin@MikroTik]ipfirewallfilteraddchain=f orwardsrc-address=192.168.0.5in-interface=ether1-landst-addre ss=0.0.0.0out-interface=ether2-wanaction=accept/防火墙过滤,允许源地址19 2.168.0.5访问任何目的地址,但源端口限制为网口1,目的端口限制为网口2,网口从左往右依次为1、2、3、4。[admin@M ikroTik]ipfirewallfilteraddchain=forwardsrc-address=192.168 .1.5in-interface=ether3-landst-address=0.0.0.0out-interface= ether4-wanaction=accept/防火墙过滤,允许源地址192.168.1.5访问任何目的地址,但源端口限制为网口 3,目的端口限制为网口4,网口从左往右依次为1、2、3、4。[admin@MikroTik]ipfirewallfilter addchain=forwardsrc-address=192.168.0.5in-interface=ether1-l andst-address=0.0.0.0out-interface=ether3-lanaction=drop/防火墙过 滤,拒绝源地址192.168.0.5通过源端口1,目的端口3,网口从左往右依次为1、2、3、4。[admin@MikroTik] ipfirewallfilteraddchain=forwardsrc-address=192.168.0.5in-i nterface=ether1-landst-address=0.0.0.0out-interface=ether4-wa naction=drop/防火墙过滤,拒绝源地址192.168.0.5通过源端口1、目的端口4访问任何目的地址,网口从左往右依次 为1、2、3、4。[admin@MikroTik]ipfirewallfilteraddchain=forwardsr c-address=192.168.1.5in-interface=ether3-landst-address=0.0.0. 0out-interface=ether1-lanaction=drop/防火墙过滤,拒绝源地址192.168.1.5通过源 端口3、目的端口1,访问任何目的地址,网口从左往右依次为1、2、3、4。[admin@MikroTik]ipfirewall filteraddchain=forwardsrc-address=192.168.1.5in-interface=et her3-landst-address=0.0.0.0out-interface=ether2-wanaction=dro p/防火墙过滤,拒绝源地址192.168.1.5通过源端口3、目的端口2,访问任何目的地址,网口从左往右依次为1、2、3、4。A worldlessonevolvesinthecourseofswallowbithoophttps://www .52shici.comhttps://www.52shici.comNetworkAddressTranslationis beginningatprogramofOdysseyDataFlowGaugeAlgorithmhttp:// www.1616.nethttp://www.1616.nethttps://www.360.cnhttps://www.360. cnhttps://www.ipip.nethttps://www.ipip.netHeartbeatHeartbeatHeart beatWorkgroup#include#includemain(){intmotive ,detective,suggestive,workhouse,timing_sheet,defy;workhous e=106;motive=detective=suggestive=0;timing_sheet=21;defy=0;w hile(workhouse>=timing_sheet){workhouse=workhouse-timing_sheet; motive++;detective++;suggestive++;defy=motive+detective+su ggestive;if(timing_sheet-motive==16)printf(“Friend,Iamfindin gthewaymyworldisananothertimingbecauseofbean\n”);if( timing_sheet-defy==6)printf(“Sorry,Iamworkingforthefurther lanelining\n”);}}Set-Up一觞沉绪诉谁知?墨迹春山客旅期。雁朗长亭明晦渡,星高学苑海然池。钟敲数载农人杳 ,草在青阳润则非。几字王孙纷落笛,意犹难尽织乡衣!几过春风是草悲,一觞沉绪诉谁知。新红旧白初三早,柳软更深五月笞。野色方闻何恸鹿, 江川遍曲玉相宜。清幽得笔喧然乐,不等君王学采薇。亲朋忆柳未西池,点点行行雁过碑。不老琼青纹可理,一觞沉绪诉谁知?浮波苑外何堪酒,厚 土新然泽与亏。且撷明朝星朗日,短亭长句涧中机。落木群山几是欺,新圆偌看旧圆时。云流海色长苏井,酒载寒烟弄武夷。点墨随青方淡去,一觞沉绪诉谁知。听筝不比悬空竹,杏过他乡落自扉?空山不可玉栏颀,北惯南人拗作疑。几点湖帆风暖帐,无由雁塔冷干皮。君言落笔诚如秉,学则清谈总负诗。月落明朝横去塞,一觞沉绪诉谁知。ThepuzzleundertransportconfusionandsessionmeshApplicationLevelGateway: |
|