# set system root-authentication ?
Possible completions:
+ apply-groups Groups from which to inherit configuration data
+ apply-groups-except Don't inherit configuration data from these groups
encrypted-password Encrypted password string
load-key-file File (URL) containing one or more ssh keys
plain-text-password Prompt for plain text password (autoencrypted)
> ssh-dsa Secure shell (ssh) DSA public key string
> ssh-rsa Secure shell (ssh) RSA public key string
#
这里需要强调的是,root密码只能用来console的配置和管理,如果需要使用远程管理博阿奎ssh或者telnet必须配置一个管理用户,因此我们使用如下命令来配置一个remote maintenance user
在下面的语句中,我们配置一个名字为admin的远程维护用户,在创建用户的时候可以选择用户所属的类,同时定义不同的权限。
set system login user admin class super-user authentication
plain-text-password
配置带外管理口
set interfaces fxp0 unit 0 family inet address address/prefix-length
配置业务接口
set interfaces ge-0/0/0 unit 0 family inet address address/prefix-length
set interfaces ge-0/0/1 unit 0 family inet address address/prefix-length
配置默认路由
set routing-options static route 0.0.0.0/0 next-hop gateway
配置zone并将interface绑定在zone上
set security zones security-zone trust interfaces ge-0/0/0
set security zones security-zone untrust interfaces ge-0/0/1
配置策略
我们在下面配置了一个让从trust到untrust都可以访问的,包括任何的程序。
set security policies from-zone trust to-zone untrust policy policy-name
match source-address any destination-address any application any
set security policies from-zone trust to-zone untrust policy policy-name
then permit