トップ 差分 一覧 ping ソース 検索 ヘルプ PDF RSS ログイン

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



目次



記事一覧

キーワード

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

[Fedora 10][CentOS 初期設定]

 ポート 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  ]



YAGI Hiroto (piroto@a-net.email.ne.jp)
twitter http://twitter.com/pppiroto

Copyright© 矢木 浩人 All Rights Reserved.