设备是f100-c-g3,比如我映射了一台机器的8000端口为外网业务访问,请问这个8000端口能在防火墙上定时启用和关闭吗?如果可以web配置如何操作?感谢各位专家解答。
(0)
最佳答案
刚才在防火墙上测试了一下,可以实现,但是在web 页面没有这个功能
#
scheduler job shutdown-nat
command 1 system-view
command 2 interface GigabitEthernet 2/0/0
command 3 nat server protocol tcp global 175.11.1.1 18443 inside 10.10.10.253 443 disable //关闭映射
#
scheduler job undo-shutdown-nat
command 1 system-view
command 2 interface GigabitEthernet 2/0/0
command 3 nat server protocol tcp global 175.11.1.1 18443 inside 10.10.10.253 443 //开启映射
#
scheduler schedule nat
user-role network-operator
user-role network-admin
job shutdown-nat
time repeating at 18:20 //每天18:20 执行
#
scheduler schedule undo-nat
user-role network-operator
user-role network-admin
job undo-shutdown-nat
time repeating at 18:24 //每天18:24 执行
(2)
暂无评论
可以,配置定时任务
参考案例
配置关闭和开启接口的工作任务
# 创建名称为shutdown-GigabitEthernet1/0/1的工作任务并进入Job视图。
[Router] scheduler job shutdown-GigabitEthernet1/0/1
# 为Job分配命令,以进入系统视图。
[Router-job-shutdown-GigabitEthernet1/0/1] command 1 system-view
# 为Job分配命令,以进入GigabitEthernet1/0/1接口视图。
[Router-job-shutdown-GigabitEthernet1/0/1] command 2 interface gigabitethernet 1/0/1
# 为Job分配命令,以执行关闭GigabitEthernet1/0/1接口。
[Router-job-shutdown-GigabitEthernet1/0/1] command 3 shutdown
[Router-job-shutdown-GigabitEthernet1/0/1] quit
# 创建名称为shutdown-GigabitEthernet1/0/2的工作任务并进入Job视图。
[Router] scheduler job shutdown-GigabitEthernet1/0/2
# 为Job分配命令,以进入系统视图。
[Router-job-shutdown-GigabitEthernet1/0/2] command 1 system-view
# 为Job分配命令,以进入GigabitEthernet1/0/2接口视图。
[Router-job-shutdown-GigabitEthernet1/0/2] command 2 interface gigabitethernet 1/0/2
# 为Job分配命令,以执行关闭GigabitEthernet1/0/2接口。
[Router-job-shutdown-GigabitEthernet1/0/2] command 3 shutdown
[Router-job-shutdown-GigabitEthernet1/0/2] quit
# 创建名称为start-GigabitEthernet1/0/1的工作任务并进入Job视图。
[Router] scheduler job start-GigabitEthernet1/0/1
# 为Job分配命令,以进入系统视图。
[Router-job-start-GigabitEthernet1/0/1] command 1 system-view
# 为Job分配命令,以进入GigabitEthernet1/0/1接口视图。
[Router-job-start-GigabitEthernet1/0/1] command 2 interface gigabitethernet 1/0/1
# 为Job分配命令,以执行开启GigabitEthernet1/0/1接口。
[Router-job-start-GigabitEthernet1/0/1] command 3 undo shutdown
[Router-job-start-GigabitEthernet1/0/1] quit
# 创建名称为start-GigabitEthernet1/0/2的工作任务并进入Job视图。
[Router] scheduler job start-GigabitEthernet1/0/2
# 为Job分配命令,以进入系统视图。
[Router-job-start-GigabitEthernet1/0/2] command 1 system-view
# 为Job分配命令,以进入GigabitEthernet1/0/2接口视图。
[Router-job-start-GigabitEthernet1/0/2] command 2 interface gigabitethernet 1/0/2
# 为Job分配命令,以执行开启GigabitEthernet1/0/2接口。
[Router-job-start-GigabitEthernet1/0/2] command 3 undo shutdown
[Router-job-start-GigabitEthernet1/0/2] quit
(2) 配置定时执行任务
# 创建名为connect-host1/host2的Schedule,并进入Schedule视图。
[Router] scheduler schedule connect-host1/host2
# 为Schedule分配名为start-GigabitEthernet1/0/1的job。
[Router-schedule-connect-host1/host2] job start-GigabitEthernet1/0/1
# 为Schedule分配名为start-GigabitEthernet1/0/2的job。
[Router-schedule-connect-host1/host2] job start-GigabitEthernet1/0/2
# 为Schedule配置循环执行的时间,在星期一到星期五的上午8点开启GigabitEthernet1/0/1和GigabitEthernet1/0/2接口。
[Router-schedule-connect-host1/host2] time repeating at 08:00 week-day Mon Tue Wed Thu Fri
[Router-schedule-connect-host1/host2] quit
# 创建名为unconnect-host1/host2的Schedule,并进入Schedule视图。
[Router] scheduler schedule unconnect-host1/host2
# 为Schedule分配名为shutdown-GigabitEthernet1/0/1的job。
[Router-schedule-unconnect-host1/host2] job shutdown-GigabitEthernet1/0/1
# 为Schedule分配名为shutdown-GigabitEthernet1/0/2的job。
[Router-schedule-unconnect-host1/host2] job shutdown-GigabitEthernet1/0/2
# 为Schedule配置循环执行的时间,在星期一到星期五的下午18点关闭GigabitEthernet1/0/1和GigabitEthernet1/0/2接口。
[Router-schedule-unconnect-host1/host2] time repeating at 18:00 week-day Mon Tue Wed Thu Fri
[Router-schedule-unconnect-host1/host2] quit
(1)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论