Jump to content
  • 0

Сделайте переадресацию портов по расписанию


VirtuoozX

Question

3 answers to this question

Recommended Posts

  • 0

@Virtuooz “Vip” Som можно настроить через консоль.

Создаем правило для 23го порта, открываем его "в интернет":

ip static tcp ISP 23 192.168.1.1

Создаем нужное расписание:

schedule portmapping
action start 00 18 *
action stop 00 23 *
exit

где:

action start - Действие начала.
stop - Действие конца.
min - Целое число Минуты.
hour - Целое число Часы.
dow - Дни недели, разделенные запятыми. 0 и 7 означают воскресенье. * означает ежедневно.

Привязываем расписание к правилу:

ip static rule 0 schedule portmapping

Сохраняемся:

system configuration save

В консоли выглядит так:

(config)> ip static tcp ISP 23 192.168.4.1
Network::StaticNat: Static NAT rule has been added.
(config)> schedule portmapping
Core::Schedule::Manager: Created schedule "portmapping".
(config-sched)> action start 00 18 *
Core::Schedule::Manager: Updated schedule "portmapping".
(config-sched)> action stop 00 23 *
Core::Schedule::Manager: Updated schedule "portmapping".
(config-sched)> exit
Core::Configurator: Done.
(config)> ip static rule 0 schedule portmapping
Network::StaticNat: Static NAT rule schedule applied.
(config)> system configuration save
Core::ConfigurationSaver: Saving configuration...

В WebUI выглядит так:

https://cloud.mail.ru/public/6fZV/kwyjXf1wv

Edited by enpa
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...