Начал разбираться с iptables.
Вопрос таков, куда прописать правила, чтобы при загрузки они были применены снова?
iptables (сохранение правил iptables)
Модератор: Модераторы разделов
-
- Сообщения: 197
- Статус: .......
- ОС: Debian/CentOS
Re: iptables
файлик так и называется iptables. По крайней мере в CentOS и в Debian так.
Хотя вот что написано в АрчВики:
Saving the rules
Now, the rules are ready and should be saved to your hard drive. First, we edit the configuration file /etc/conf.d/iptables:
# Configuration for iptables rules
IPTABLES=/usr/sbin/iptables
IPTABLES_CONF=/etc/iptables/iptables.rules
IPTABLES_FORWARD=0 # disable IP forwarding!!!
You can specify another filename than iptables.rules if you want.
Now, save the rules with the command
# /etc/rc.d/iptables save
and make sure your rules are loaded when you boot by editing /etc/rc.conf, iptables should be added preferably before 'network'.
DAEMONS=(... iptables network ...)
Хотя вот что написано в АрчВики:
Saving the rules
Now, the rules are ready and should be saved to your hard drive. First, we edit the configuration file /etc/conf.d/iptables:
# Configuration for iptables rules
IPTABLES=/usr/sbin/iptables
IPTABLES_CONF=/etc/iptables/iptables.rules
IPTABLES_FORWARD=0 # disable IP forwarding!!!
You can specify another filename than iptables.rules if you want.
Now, save the rules with the command
# /etc/rc.d/iptables save
and make sure your rules are loaded when you boot by editing /etc/rc.conf, iptables should be added preferably before 'network'.
DAEMONS=(... iptables network ...)
"Тот, у кого хватит храбрости и терпения всю жизнь вглядываться во мрак, первым увидит проблеск света"
-
- Сообщения: 729
- Статус: Самовлюблённый сноб
- ОС: archlinux i686-current
Re: iptables
http://wiki.archlinux.org/index.php/Firewalls
там ссылки есть. вопрос к Archlinux не относится на самом деле, он общий.
там ссылки есть. вопрос к Archlinux не относится на самом деле, он общий.
-
- Сообщения: 19
- ОС: Linux
Re: iptables
/etc/rc.d/iptables save
и запись в сервисы в /etc/rc.conf
у мну робит
и запись в сервисы в /etc/rc.conf
у мну робит
