内容へ移動
heavyhandの実験室
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
トレース:
linux:iptables:コマンド
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
====== iptables:コマンド ====== ===== 設定の参照 ===== <code sh> >iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination RH-Firewall-1-INPUT all -- anywhere anywhere Chain FORWARD (policy ACCEPT) target prot opt source destination RH-Firewall-1-INPUT all -- anywhere anywhere Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain RH-Firewall-1-INPUT (2 references) target prot opt source destination ACCEPT all -- anywhere anywhere ACCEPT icmp -- anywhere anywhere icmp any ACCEPT esp -- anywhere anywhere ACCEPT ah -- anywhere anywhere ACCEPT udp -- anywhere 224.0.0.251 udp dpt:mdns ACCEPT udp -- anywhere anywhere udp dpt:ipp ACCEPT tcp -- anywhere anywhere tcp dpt:ipp ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED 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:http REJECT all -- anywhere anywhere reject-with icmp-host-prohibited </code> ===== フィルタリング ===== ==== 特定のIPをフィルタリング ==== * IPアドレス 192.168.1.10 からの接続を拒否する。 <code bash> iptables -I INPUT -s 192.168.1.10 -j DROP </code> * IPアドレス 192.168.1.10 からのSSH(ポート22)による接続を拒否する。 <code bash> iptables -I INPUT -p tcp -s 192.168.1.10 --dport 22 -j DROP </code>
linux/iptables/コマンド.txt
· 最終更新: 2016/03/05 12:25 by
dokuroot
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ