[[PageOutline]] [[TitleIndex(TipAndDoc/network,format=group)]] = misc = * [http://linux-ip.net/ Guide to IP Layer Network Administration with Linux (http://linux-ip.net/)] * [http://www.linux.or.jp/JF/JFdocs/Adv-Routing-HOWTO/lartc.kernel.obscure.html Linux Advanced Routing & Traffic Control HOWTO - あまり知られていない設定] * [http://hylom.net/2011/05/18/nuttcp_thruput_benchmarking/ nuttcpでネットワークスループットを測る « DailyHckr] * [http://muumoo.jp/news/2008/08/16/0proxifier.html NetShareの件はProxifier使ったら一発だった - むぅもぉ.jp] > このツールは、どうやら通信してるアプリを勝手に見つけて、その通信を奪って、指定したSocksプロキシを通してくれるらしい。なので、ブラウザ側の設定は何も変えなくていいし、そもそもブラウザがSocks5に対応してなくてもOKだし、ブラウザに限らずなんのソフトにでも使えるし、Proxifierを起動するかしないかだけなので、環境の切り替えも簡単。もちろんDNSとかも問題なくいける。WindowsもMacも使える。 * [http://www.atmarkit.co.jp/flinux/rensai/linuxkvm01/01a.html 次世代デスクトップ転送技術、SPICE入門 - @IT] * http://info.iet.unipi.it/~luigi/dummynet/ > dummynet is a tool originally designed for testing networking protocols, and since then used for a variety of applications including bandwidth management. It simulates/enforces queue and bandwidth limitations, delays, packet losses, and multipath effects. It also implements a variant of Weighted Fair Queueing called WF2Q+. It can be used on user's workstations, or on machines acting as routers or bridges. * [http://www.ubuntugeek.com/bandwidth-monitoring-tools-for-ubuntu-users.html Bandwidth Monitoring Tools for Ubuntu Users | Ubuntu Geek] > bmon > bwbar > bwm > bwm-ng > iftop > iperf > ipfm > speedometer > cbm > ibmonitor > pktstat > mactrack > MRTG > Cacti * [http://sourceforge.jp/magazine/08/12/04/0152229 対照的な2つのネットワークトラフィック監視ツール:NetHogsとIPTraf - SourceForge.JP Magazine : オープンソースの話題満載] * [http://www.infraexpert.com/ ネットワークエンジニアとして] * [http://ha.ckers.org/xss.html XSS (Cross Site Scripting) Cheat Sheet] * [http://ubuntuforums.org/showthread.php?t=1000506 |kubuntu| Intrepid: What's pan0 interface and why do I need it - Ubuntu Forums] > Personal Area Networking Profile (PAN) allows Bluetooth devices to form an ad-hoc network, access a remote network through a network access point. > > Changed to zero (from 1) the BLUETOOTH_ENABLED entry in /etc/default/bluetooth. * [http://isc.sans.edu/diary.html?storyid=14080 ISC Diary | TCP Fuzzing with Scapy] * [http://www.geekpage.jp/programming/linux-network/set-ifup.php Geekなぺーじ:インターフェースをup状態にする] > このサンプルは「ifconfig eth0 up」コマンドと同等の動きをします。 * Linuxにおけるnetwork device nameの最大長は15文字 * [http://www.kernel.org/doc/man-pages/online/pages/man7/netdevice.7.html netdevice(7) - Linux manual page] > {{{char ifr_name[IFNAMSIZ]; /* Interface name */}}} * /usr/include/net/if.h {{{#!cc /* Length of interface name. */ #define IF_NAMESIZE 16 # define IFNAMSIZ IF_NAMESIZE }}} * /usr/include/linux/if.h {{{#!cc #define IFNAMSIZ 16 }}} * 16文字以上の名前をつけようとしても短縮される模様 * $ sudo brctl addbr 15abcdefghijklm * $ sudo brctl addbr 16abcdefghijklmn * $ ifconfig -a | grep HW {{{ 15abcdefghijklm Link encap:Ethernet HWaddr 36:2a:a6:20:08:66 16abcdefghijklm Link encap:Ethernet HWaddr ba:92:3e:48:24:23 }}} * http://www22.atwiki.jp/nicocache_nl/ ニコニコ動画のキャッシュを自動的に保存するツール NicoCache の 改良版、NicoCache_nl のwikiです。 * [http://d.hatena.ne.jp/defiant/20111206/1323171401 SR-IOV を有効にする - TenForwardの日記] * [http://d.hatena.ne.jp/defiant/20111209/1323357957 SR-IOV を有効にする (2) - TenForwardの日記] * [http://d.hatena.ne.jp/defiant/20111213/1323771409 SR-IOV を有効にする(3) - TenForwardの日記] * [http://d.hatena.ne.jp/defiant/20111228/1325067535 lxc の仮想ネットワークのパフォーマンス測定 - TenForwardの日記] * [http://d.hatena.ne.jp/hogem/20110206/1297366121 arpingを使ってlinux serverからGARPを投げる - うまい棒blog] > debianのpackageは"arping"ではなくて"iputils-arping"のarping バイナリじゃないとGARPのoptionがないのでそっち入れる。 * [http://www.asahi-net.or.jp/~aa4t-nngk/ipttut/output/ Iptablesチュートリアル 1.2.2] * [http://itwork100.com/intelamt-10-pc-set/ Intel AMT (1)PC :リモートで情報取得、遠隔操作するための初期設定(Intel AMT 10編)] * [https://stackoverflow.com/questions/3236418/is-there-private-mac-address-space macos - is there private MAC address space? - Stack Overflow] > the MAC address (as normally written) must start with x2, x6, xA or xE (where x is in [0-F]). * [https://superuser.com/questions/907827/private-mac-address networking - "Private" MAC Address - Super User] * wikipedia:MAC_address#Universal_vs._local * [http://hogem.hatenablog.com/entry/20120119/1326984529 仮想MacアドレスのベンダーID - うまいぼうぶろぐ] > ||= TYpe =||= Mac Address OUI =|| > ||VMware||00:0C:29|| > ||QEMU Virtual NIC||52:54:00|| > ||Xen||00:16:3E|| = CIFS vs NFS = * 結論: Linux<=>Linux間のファイル共有はNFSが良い * 速度はNFSの方が高速 * dd if=10MB.cifs of=/mnt/temp/10MB.cifs {{{ 10485760 bytes (10 MB) copied, 28.8593 s, 363 kB/s }}} * dd if=10MB.nfs of=/mnt/dropbox/10MB.nfs {{{ 10485760 bytes (10 MB) copied, 12.9951 s, 807 kB/s }}} * ファイルのパーミッション等 * cifs => umaskの影響を受ける * デフォルトでは「-rwxr--r--」になる * nfs => 基本的にコピー元のまま * ファイル名の大文字小文字の区別 * cifs => 区別しない(元々別だったファイルが一つに上書きされてしまう) * nfs => 区別する * 認証 * cifs => 容易 * nfs => ホスト(IP)ベースの認証は楽。ユーザ名ベースの認証は不明(出来ない?) = get information = * NICの羅列 {{{ ip link | grep "^[1-9]" | cut -d : -f 2 | cut -d ' ' -f 2 | grep "^eth" }}} * IPの取得 {{{ ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}' }}} {{{ ip addr | grep -w inet | cut -d t -f 2 | cut -d ' ' -f 2 | cut -d / -f 1 | grep -v 127.0.0.1 }}} = SYN Cookies = * [http://ja.wikipedia.org/wiki/SYN_cookies SYN cookies - Wikipedia] * [http://lkml.org/lkml/2008/2/5/167 LKML: Andi Kleen: Re: [PATCH] Add IPv6 support to TCP SYN cookies] * [http://www.soi.wide.ad.jp/class/20060020/slides/11/26.html SYN Cookiesの動作] * to enable * sysctl -w net.ipv4.tcp_syncookies=1 * /etc/sysctl.conf > net.ipv4.tcp_syncookies=1 = calculate netmask = * ipcount <= perlのNet::IPモジュールに含まれる * aptitude install libnet-ip-perl * /usr/share/doc/libnet-ip-perl/examples/ipcount {{{ Usage: ipcount [-r] [-d ] address -r: Print Reverse Ranges -d : Cut down the original prefix in several prefixes The address range can be one of: ipcount IP + size ipcount IP1 - IP2 ipcount IP/len }}} * via [http://linux.mini13i.gotdns.org/?tool%2Fnetmask%B7%D7%BB%BB tool/netmask計算 - Linux Tips] = NICが活性化される順序 = #NIClinkOrder * CentOS * ifcfg? の数字が若い順に固定?(任意の順序に変更できるか不明) * Ubuntu * interfacesに記載された順の模様 = wakeonlan = * sudo aptitude install -R wakeonlan * デフォルトルートとは違うNICから送出したい場合 * wakeonlan -i 192.168.100.255 00:1D:60:XX:YY:ZZ {{{ Sending magic packet to 192.168.100.255:9 with 00:1D:60:XX:YY:ZZ }}} * tcpdump -np port 9 -i eth0 {{{ 11:30:32.420790 IP 192.168.100.254.34625 > 192.168.100.255.9: UDP, length 102 }}} = fix DNS server on DHCP network = * [http://ubuntuforums.org/showthread.php?t=491711 /etc/resolv.conf file troubles - Ubuntu Forums] * DHCP配下のネットワークで、DNSを固定する * デフォルトではIP割り当て時に/etc/resolve.confが自動で書き換わってしまう * man dhclient.conf {{{ OPTION MODIFIERS The supersede statement supersede [ option declaration ] ; If for some option the client should always use a locally-configured value or values rather than whatever is supplied by the server, these values can be defined in the supersede statement. }}} * /etc/dhcp3/dhclient.conf {{{ supersede domain-name-servers 127.0.0.1; }}} * => /etc/resolv.conf {{{ nameserver 127.0.0.1 }}} = tftp = * [[Image(tftp-win7.png, 33%)]] = Slepnir2 = * [http://d.hatena.ne.jp/barrackdo/20100312/1268408614 「起動時に前回終了時の状態を復元する」を復元する - (TooLab.)Lab. 研究日誌] * 2.9.5 on Windows 7 x64ではエラー[[br]][[Image(LastSessionBackup.png,33%)]] = ping = * 途中でstatisticsを見る方法 * Windows -> Ctrl+Pause or Ctrl+Break[[br]][[Image(ping-windows.png,33%)]] * Linux -> Ctrl+\ or Ctrl+4[[br]][[Image(ping-ubuntu.png,33%)]] * see wikipedia:SIGQUIT, twitter:mittyorz/status/48251240571875328, twitter:mittyorz/status/48251524085854208 = Pukiwiki = == locale == * [http://pukiwiki.cafelounge.net/plus/?%E8%B3%AA%E5%95%8F%E7%AE%B1%2F405 サーバのアップデートでナビゲートバーが英語になってしまいました。] * [http://pukiwiki.cafelounge.net/plus/?%E8%B3%AA%E5%95%8F%E7%AE%B1%2F247 別のサーバで動かしていたときは日本語になって いたのですが、このたびサーバを新調して新規インストール するとメニューやらメッセージが英語のままになってしまいます。] * [http://blog.jetspeed.jp/2006/07/ubuntulocale/ ubuntuでlocaleがない場合 | jetspeed blog] > {{{ > # apt-get install language-pack-ja > # dpkg-reconfigure locales > }}} * see also [http://slashdot.jp/~kubota/journal/37231 locale.alias - kubota の日記] > Linux システムにおいて、locale.alias というファイルは、GNU libc にも含まれるし、X Window System にも含まれる。これらのファイルには、ASCII ではない文字が含まれている。fran0xe7ais と bokm0xe5l のふたつだ。 = Remote Desktop Protocol = * [http://kaznor.blog56.fc2.com/blog-entry-177.html 日々雑感 Thinstation2.2.2fのFreeRDPは日本語106キーボード未対応] * [http://kaznor.blog56.fc2.com/blog-entry-176.html 日々雑感 リモートデスクトップのキーボードレイアウト] > リモートデスクトップのキーボードレイアウトは、ログイン時のキーボードレイアウトがログオフ時まで引き継がれるということに気付いた。たとえば、日本語キーボードのRDPクライアントから接続し、切断する(ログオフじゃないので注意!)。そのあと、英語キーボードのRDPクライアントから接続すると、キーボードレイアウトは日本語のままなのだ。 = Traffic Control on Linux = * [https://access.redhat.com/knowledge/docs/ja-JP/Red_Hat_Enterprise_Linux/6/html/Resource_Management_Guide/sec-net_cls.html 3.8. net_cls - Red Hat Customer Portal] * [http://network.station.ez-net.jp/server/linux/network/limit.asp EZ-NET: Linux で発信帯域を制限する] * [http://www32.atwiki.jp/parepan/pages/114.html @鯖味噌缶 - Linuxで帯域制御] * [http://www.aconus.com/~oyaji/tips/cbq_init.htm ポート毎に帯域制御したい] * [http://lost-and-found-narihiro.blogspot.jp/2010/10/linux-traffic-control.html lost and found ( for me ? ): Linux: traffic control] * [http://www.atmarkit.co.jp/flinux/rensai/xen05/xen05c.html @IT:リソース制御でサービスレベルを確保せよ(3/3)] * [http://d.hatena.ne.jp/pochio_pochiyama/20120203/p1 CentOSでサブインターフェース/VLAN/Bridgeの作成メモ - それなりに適当にやってます] * [http://www5b.biglobe.ne.jp/~urajigen/vnuml/vconfig.html vconfig メモ] > 以下にVLANインタフェースの動作を示す。 * 図が分かりやすい = Open vSwitch = * [http://d.hatena.ne.jp/oraccha/20120723/1343025882 Open vSwitchをKVM環境で使う - Plan9日記] * [http://www.hogetan.net/note/memo/home-openvswitch.html 自宅ネットワークにおけるOpenFlowスイッチ OpenvSwitchの導入 — かないノート] * [http://blog.goo.ne.jp/silvernetworks/e/1d03579e81e7377916f893d19d6f44c7 Open vSwitch on Ubuntu Server 12.04 LTS(1) - ネットワーク管理者の憂鬱な日常] * [http://blog.goo.ne.jp/silvernetworks/e/947ab032dc8b44300271447a92fa1702 Open vSwitch on Ubuntu Server 12.04 LTS(2) - ネットワーク管理者の憂鬱な日常]