Jump to content

Question

Posted (edited)

@Le ecureuil Добрый день,

Заметил что правила замножаются не смотря на использование проверки в скрипте:

[ "$table" != "nat" ] && exit 0

Также об этом упомянуто здесь:

Cудя по логу хук дергается многократно:

Jan 07 16:03:43ndm IpSec::IpSecNetfilter: start reloading netfilter configuration...
Jan 07 16:03:43root Appling DNS redirects
Jan 07 16:03:43root Appling DNS redirects
Jan 07 16:03:43ndm IpSec::IpSecNetfilter: netfilter configuration reloading is done.
Jan 07 16:03:43root Appling DNS redirects
Jan 07 16:03:44root Core::Syslog: last message repeated 5 times.

Посмотрите пожалуйста.

Edited by r13

6 answers to this question

Recommended Posts

  • 0
Posted (edited)
4 минуты назад, Le ecureuil сказал:

Советую сперва попробовать сделать свои скрипты идемпотентными, а затем вот так:

 

Это я уже сделал теперь у меня все ок. Вопрос только по кучке вызовов. Или надо фиксить, или в документацию добавить предостережение какое нибудь. 

Edited by r13
  • 0
Posted

Написал предостережение

Заодно и о проблеме возможной: появилась поддержка IPv6 netfilter, потому теперь нужно фильтровать не только по $table, но и по $type! Подробнее на Wiki на GitHub.

  • Thanks 1

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

Important Information

This site uses cookies. By clicking "I accept" or continuing to browse the site, you authorize their use in accordance with the Privacy Policy.