iptables
第 2 版(2008-10-05 12:20:42 · !! (^ ..O ^ ) !! SHINYA)を表示しています。 最新版に戻る
Linuxでサーバを要塞化するためのコマンド(設定ファイル)
サービス停止(stop)
/etc/rc.d/init.d/iptables stop
#許可するport 拒否するportを設定
# tcp30000ポートを許可する例
iptables -A INPUT -p tcp --dport 30000 -j ACCEPT
# tcp135,137ポートを拒否する例
iptables -A INPUT -s ! $LOCALNET -p tcp -m multiport --dports 135,137 -j DROP
not found save
/etc/rc.d/init.d/iptables save
not found iptables
service start
/etc/rc.d/init.d/iptables start
履歴
- 第 2 版!! (^ ..O ^ ) !! SHINYA2008-10-05 12:20:42
- 第 1 版!! (^ ..O ^ ) !! SHINYA2008-06-05 23:47:28
タグ
この単語を含む記事
- iptables 設定2008-06-02
他の人の「iptables」
- 西小倉パンデイロの「iptables」西小倉事典Linux標準 http://oxynotes.com/?p=6361> iptablesはLinuxのKernel 2.4移行で標準インストールされています。…2014-03-28
- akkun_choiの「iptables」akkun_choi pediaiptables -nL で現在の状態 /etc/rc.d/init.d/iptables [start|stop|save] 設定ファイル /etc/sysc…2009-06-20