iptablesでUDPを対象にしたルールの確認方法
本で書き忘れたけどiptablesでUDPを対象にしたルールの確認はtracerouteを使うといい.
tracerouteの性格上できれば間にルーターが入っていない環境がいいすね.
$ traceroute --help Usage: traceroute [ -46dFITnrAUV ] [ -f first_ttl ] [ -g gate,... ] [ -i device ] [ -m max_ttl ] [ -N squeries ] [ -p port ] [ -t tos ] [ -l flow_label ] [ -w waittime ] [ -q nqueries ] [ -s src_addr ] [ -z sendwait ] host [ packetlen ] Options: (snip) -p port --port=port Set the destination port to use. It is either initial udp port value for "default" method (incremented by each probe, default is 33434), or initial seq for "icmp" (incremented as well, default from 1), or some constant destination port for other methods (with default of 80 for "tcp", 53 for "udp", etc.) (snip) -U --udp Use UDP to particular port for tracerouting (instead of increasing the port per each probe), default port is 53
$ traceroute -U -p [PORT_NUMBER] [IP_ADDRESS]
- 作者: 平初,伊藤幸夫,上鍵忠志,中澤直也,面和毅,館林綾ノ介,高安洋輝,宇野素史,坂井恵
- 出版社/メーカー: 毎日コミュニケーションズ
- 発売日: 2009/09/26
- メディア: 単行本(ソフトカバー)
- 購入: 2人 クリック: 319回
- この商品を含むブログ (13件) を見る