天天看点

hillstone防火墙整理的入门命令

支持 命令自动补全 命令缩写 ?号提示/列出当前模式可用的命令 上下查找历史命令 快捷键参考手册

接口模式下:

manage telnet

manage ssh

show interface e0/0 //查看接口信息

命令模式:

hillstone#

在命令模式输入 configure 进入全局模式

全局配置模式:

hillstone(config)#

子模块配置模式:

hillstone(config-if-eth0/0)#

退回到上一级模式:exit 从任何模式退回到执行模式:end

常见命令语法错误信息:

unrecognized command 命令错误、未被接受 ['rekeɡnaiz]

incomplete command 命令不完整

ambiguous command 参数不完整

设置连接超时:

configure->ssh/console/telnet timeout 1-60 分钟 默认10分钟

恢复默认设置超时时间:configure->no ssh timeout

设置主机名:configure->hostname nq

添加管理员admin:

hillstone(config)# admin user admin //添加admin用户并自动进入用户配置模式

hillstone(config-admin)# ?

access configure admin’s allowed login access

password configure password of administrator

privilege configure privilege of the administrator

-

clear reset functions

debug debugging functions

delete delete a file

end exit from configure mode

exec perform command operation

exit exit from admin configuration mode

help cli help

no negate a command or reset to default

ping test network connectivity

rollback rollback to previous saved configuration

save save configuration

show show running system information

terminal configure terminal line parameters

traceroute trace route to destination

undebug negate debugging functions

unset back to the default configuration

hillstone(config-admin)#

hillstone(config-admin)# privilege rxw //设置完全权限

hillstone(config-admin)# password admin123 //设置密码

hillstone(config-admin)# access https //添加用户以后是无法登陆的,必须为用户添加可登陆类型的权限,否则会提示密码错误。

hillstone(config-admin)# show admin user //查看系统中的用户

========================================================

username privilege console telnet ssh http https

——————————————————–

hillstone rxw y y y y y

admin rx - - - - -

hillstone(config)# no admin user admin //全局模式下删除用户

hillstone(config)# show admin user hillstone //查看用户具体信息

============================================

admin : hillstone

privilege: rxw

access : console telnet ssh http https

password : 52/rxu0vp8f9jq2alm9l7tqym

hillstone(config)# show admin host //查看可信主机配置(访问设备的地址段)

=========================================================================

ip range login type

————————————————————————-

0.0.0.0/0 telnet ssh http https

hillstone(config)# admin host {a,b,c,d a,b,c,d | any } {http | https | ssh | telnet | any }

hillstone(config)# ssh port ? //设置ssh端口

<1-65535> ssh service port(22: default, or <1-65535>)

hillstone(config)# ssh port

hillstone(config)# show ssh //查看设置ssh的信息 或者是show http

ssh server options:

=============================================================

ssh idle timeout is: 20 minute(s)

ssh server listen port is: 57891

ssh server accept connection interval: 2

hillstone(config)# http port ? //设置http端口

<1-65535> http port (1-65535)

hillstone(config)# https po

hillstone(config)# https port ? //设置https端口

<1-65535> https port (1-65535)

hillstone(config)# https port

hillstone(config)# show http //查看http /https信息

http server options:

web(http/https) idle timeout is: 10 minute(s)

http port is: 65499

https port is: 65498

https trust domain is: trust_domain_default

指定https方式访问时使用的pki信任域,当https启动时,https服务器将使用指定的pki信任域中的证书,默认使用trust_domain_default

在登陆https时无法打开,选用http登陆,修改此项试试。