CentOS 6 ファイアウォール設定スクリプトの修正
[root@mail1 ~]# sh iptables.sh
iptables: ファイアウォールルールを消去中: [ OK ]
iptables: チェインをポリシー ACCEPT へ設定中filter [ OK ]
iptables: モジュールを取り外し中: [ OK ]
Using intrapositioned negation (`--option ! this`) is deprecated in favor of extrapositioned (`! --option this`).
Using intrapositioned negation (`--option ! this`) is deprecated in favor of extrapositioned (`! --option this`).
Using intrapositioned negation (`--option ! this`) is deprecated in favor of extrapositioned (`! --option this`).
Using intrapositioned negation (`--option ! this`) is deprecated in favor of extrapositioned (`! --option this`).
iptables: ファイアウォールのルールを /etc/sysconfig/iptable[ OK ]中:
iptables: ファイアウォールルールを適用中: [ OK ]
! --optionのように修正
iptables -A INPUT -s ! $LOCALNET => iptables -A INPUT ! -s $LOCALNET
[root@mail1 ~]# sh iptables.sh
iptables: ファイアウォールルールを消去中: [ OK ]
iptables: チェインをポリシー ACCEPT へ設定中filter [ OK ]
iptables: モジュールを取り外し中: [ OK ]
iptables: ファイアウォールのルールを /etc/sysconfig/iptable[ OK ]中:
iptables: ファイアウォールルールを適用中: [ OK ]
CentOS 6.2あたりかな?この修正が必要になったのは