Jump to content
Калькуляторы

Народ плиз хелп!!!

Ситуация такая : имеется директория /var/tmp/inet в которой есть файлы пустышки с именами типа inet-1.2.3.4, inet-5.6.7.8 и тд, которые постоянно меняются.

треба скрипт который в соответствии с этими названиями будет добавлять (в случае наличия файла) или удалять (в случае отсутствия) правила в ipfw, те если файл есть то allow all from any to ip_из_имени, для всех остальных ийпишников deny?

данный скрипт будет пускаться каждую минуту кроном

Share this post


Link to post
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.

Guest
Reply to this topic...

×   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.