| ページ一覧 | ブログ | twitter |  書式 | 書式(表) |

MyMemoWiki

Fedora 10 ファイヤーウォールの設定

提供: MyMemoWiki
2020年2月15日 (土) 08:02時点におけるPiroto (トーク | 投稿記録)による版
ナビゲーションに移動 検索に移動

Fedora10 ファイヤーウォールの設定

[[Fedora 10][CentOS 初期設定]]

  • Fedora Core 6 ファイヤーウォールの設定

ポート 1158を許可する

確認

# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED 
ACCEPT     icmp --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ftp 
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh 
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:dbcontrol-oms 
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ncube-lm 
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:5560 
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         

許可

# iptables -I INPUT 9 -m state --state NEW -p tcp --dport 1158 -j ACCEPT

保存と再起動

# service iptables save
iptables: ファイアウォールのルールを /etc/sysconfig/iptable[  OK  ]中: 
# service iptables restart
iptables: ファイアウォールルールを消去中:                  [  OK  ]
iptables: チェインをポリシー ACCEPT へ設定中filter         [  OK  ]
iptables: モジュールを取り外し中:                          [  OK  ]
iptables: ファイアウォールルールを適用中:                  [  OK  ]
iptables: 追加のモジュールを読み込み中:nf_conntrack_ftp    [  OK  ]