|
楼主 |
发表于 2005-9-14 09:23:47
|
显示全部楼层
新手必读---安全模式
Safe Mode Description
关于安全模式的说明
先说一下自己遇到的事,昨天有朋友在qq群里面叫,自己远程设置防火墙,然后自己也进不去了,ping也ping不通了,呵呵,而且远程调试的那个ros是网吧的还比较远,看来安全模式真的是有用的,我一直都不怎么用,但是对新手来说还真的有用,所以我今天就来讲一下安全模式的使用,其实非常的简单
It is possible to change router configuration in a way that will make it not accessible except from
local console. Usually this is done by accident, but there is no way to undo last change when
connection to router is already cut. Safe mode can be used to minimize such risk.
Safe mode is entered by pressing [Ctrl]+[X]. To quit safe mode, press [Ctrl]+[X] again.
[admin@MikroTik] ip firewall rule input> [Ctrl]+[X]
[Safe Mode taken]
[admin@MikroTik] ip firewall rule input
Message Safe Mode taken is displayed and prompt changes to reflect that session is now in safe
mode. All configuration changes that are made (also from other login sessions), while router is in
safe mode, are automatically undone if safe mode session terminates abnormally. You can see all
such changes that will be automatically undone tagged with an F flag in system history:
[admin@MikroTik] ip firewall rule input add
[admin@MikroTik] ip firewall rule input /system history print
Flags: U - undoable, R - redoable, F - floating-undo
ACTION BY POLICY
F rule added admin write
[admin@MikroTik] ip firewall rule input
Now, if telnet connection is cut, then after a while (TCP timeout is 9 minutes) all changes that were
made while in safe mode will be undone. Exiting session by [Ctrl]+[D]emphasis> also undoes all
safe mode changes, while /quit does not.
If another user tries to enter safe mode, he's given following message:
[admin@MikroTik] >
Hijacking Safe Mode from someone - unroll/release/don't take it [u/r/d]:
[u] - undoes all safe mode changes, and puts the current session in safe mode.
[d] - leaves everything as-is.
[r] - keeps all current safe mode changes, and puts current session in a safe mode. Previous
owner of safe mode is notified about this:
[admin@MikroTik] ip firewall rule input
[Safe mode released by another user]
If too many changes are made while in safe mode, and there's no room in history to hold them all
(currently history keeps up to 100 most recent actions), then session is automatically put out of the
Page 23 of 568
Copyright 1999-2005, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.
Other trademarks and registred trademarks mentioned herein are properties of their respective owners.
safe mode, no changes are automatically undone. Thus, it is best to change configuration in small
steps, while in safe mode. Pressing [Ctrl]+[X] twice is an easy way to empty safe mode action list.
上面的我都不翻译了,直接说方法,当你不清楚设置的时候你进到命令行界面的时候,在/下,按一下 [Ctrl]+[X],记住是同时按下,那么你就进入了安全模式了,当你也可以在其他的比如/interface 下面按 [Ctrl]+[X]也可以进入安全模式,当你进入安全模式的时候所有的设置在你退出安全模式的时候将全部还原,这样哪怕你修改了所有的设置,而且是错的,当你退出safe模式的时候都还原了,直接关闭掉远程终端也算是退出了/quit也算是退出了,[Ctrl]+[D]同样也算
当第二个同等权限用户登陆的时候,会出现如下信息
Hijacking Safe Mode from someone - unroll/release/don't take it [u/r/d]:
我这里说一下后面的三个参数,
[u] - undoes all safe mode changes, and puts the current session in safe mode.
取消所有的修改,并且让当前会话进入到安全模式,也就是说你上一个用户做的修改不管他有没 退出安全模式都让他的改动取消并且让他退出安全模式而让自己的会话进入安全模式
[d] - leaves everything as-is.
放弃进入安全模式
[r] - keeps all current safe mode changes, and puts current session in a safe mode. Previous
保存前者的改动,并且让当前会话进入安全模式,记住,前面的用户的改动被永久保存了,你后面进入的用户退出安全模式前面的用户修改的也不会还原了,也就是说这样可以让修改被保存下来
[[i] 本帖最后由 情灭缘尽 于 2005-9-14 09:38 AM 编辑 [/i]] |
|