==Fedora10 [[Fedora]]10 ファイヤーウォールの設定==
[[Fedora 10]] | [[CentOS 初期設定]] |
*[[Fedora Core 6 ファイヤーウォールの設定]]
===ポート 1158を許可する===
====確認====
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED[[R]]ELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ncube-lm
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:5560
REJECT [[R]]EJECT all -- anywhere anywhere reject-with icmp-host-prohibited
Chain FORWARD FO[[R]]WA[[R]]D (policy ACCEPT)
target prot opt source destination
REJECT [[R]]EJECT all -- anywhere anywhere reject-with icmp-host-prohibited
Chain OUTPUT (policy ACCEPT)
# iptables -I INPUT 9 -m state --state NEW -p tcp --dport 1158 -j ACCEPT
====保存と再起動====
# service ser[[vi]]ce iptables save
iptables: ファイアウォールのルールを /etc/sysconfig/iptable[ OK ]中:
# service ser[[vi]]ce iptables restart
iptables: ファイアウォールルールを消去中: [ OK ]
iptables: チェインをポリシー ACCEPT へ設定中filter [ OK ]