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

MyMemoWiki

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

提供: MyMemoWiki
ナビゲーションに移動 検索に移動

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

Fedora 10 | CentOS 初期設定 |

ポート 1158を許可する

確認

  1. # iptables -L
  2. Chain INPUT (policy ACCEPT)
  3. target prot opt source destination
  4. ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
  5. ACCEPT icmp -- anywhere anywhere
  6. ACCEPT all -- anywhere anywhere
  7. ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ftp
  8. ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
  9. ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:dbcontrol-oms
  10. ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ncube-lm
  11. ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:5560
  12. REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
  13.  
  14. Chain FORWARD (policy ACCEPT)
  15. target prot opt source destination
  16. REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
  17.  
  18. Chain OUTPUT (policy ACCEPT)
  19. target prot opt source destination

許可

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

保存と再起動

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