net.rst
changeset 1242 b7b83fd554c0
child 1334 9bf0d5a1f0cf
equal deleted inserted replaced
1241:1b6871f6914a 1242:b7b83fd554c0
       
     1 .. -*- coding: utf-8; -*-
       
     2 
       
     3 ==========
       
     4  Network.
       
     5 ==========
       
     6 .. contents::
       
     7 
       
     8 Ukraine internet provider.
       
     9 ==========================
       
    10 
       
    11 Utel.
       
    12 -----
       
    13 
       
    14 User - none, password - none, phone - ``*99***1#`` or ``*99#``.
       
    15 
       
    16 Peoplenet.
       
    17 ----------
       
    18 
       
    19 User and password you get by sending SMS message to ``920`` number. Phone ``#777``.
       
    20 
       
    21 DNS to IP address.
       
    22 ==================
       
    23 ::
       
    24 
       
    25   $ nslookup example.com
       
    26 
       
    27 IP to DNS address.
       
    28 ==================
       
    29 ::
       
    30 
       
    31   $ nslookup 192.168.1.1
       
    32 
       
    33 NetBIOS to IP address.
       
    34 ======================
       
    35 
       
    36 By nbtstat.exe command from MS you can print NetBIOS name cache with
       
    37 name-to-IP address mappings::
       
    38 
       
    39   $ nbtstat -c
       
    40 
       
    41 List of NetBIOS name.
       
    42 =====================
       
    43 ::
       
    44 
       
    45   $ nbtstat -r
       
    46 
       
    47 List of open ports.
       
    48 ===================
       
    49 
       
    50 List of open ports under Windows.
       
    51 ---------------------------------
       
    52 ::
       
    53 
       
    54   cmd> netstat        # with DNS name resolution, TCP only
       
    55   cmd> netstat -n     # without name resolution, TCP only
       
    56   cmd> netstat -a -n  # TCP and UDP
       
    57   cmd> netstat -s     # show IP, ICMP, TCP, and UDP statistics.
       
    58 
       
    59 List of open ports under Linux.
       
    60 -------------------------------
       
    61 
       
    62 -t tcp, -u udp, -l local, -p process::
       
    63 
       
    64   $ sudo netstat -tulp
       
    65 
       
    66 or to use port number instead of protocol name::
       
    67 
       
    68   $ sudo netstat -tulpn
       
    69 
       
    70 Which processes open port?
       
    71 ==========================
       
    72 
       
    73 Windows
       
    74 -------
       
    75 ::
       
    76 
       
    77   cmd> netstat -o     # show PID
       
    78   cmd> netstat -b     # show also cmd name
       
    79   cmd> netstat -b -v  # show all modules (.exe and .dll) with full path
       
    80 
       
    81 Linux.
       
    82 ------
       
    83 ::
       
    84 
       
    85   $ sudo netstat -tulpn
       
    86 
       
    87 or::
       
    88 
       
    89   $ sudo lsof -i
       
    90 
       
    91 How disable IPv6?
       
    92 =================
       
    93 
       
    94 Debian kernel 2.6/Ubuntu ("official" method)/Fedora Core.
       
    95 ---------------------------------------------------------
       
    96 
       
    97 Comment in /etc/modprobe.d/aliases "alias net-pf-10 ipv6" and add alias
       
    98 "net-pf-10 off", "alias ipv6 off"::
       
    99 
       
   100   $ sudo emacs /etc/modprobe.d/aliases
       
   101   ...
       
   102   $ cat /etc/modprobe.d/aliases
       
   103   ...
       
   104   # alias net-pf-10 ipv6
       
   105   alias net-pf-10 off
       
   106   alias ipv6 off
       
   107   ...
       
   108 
       
   109 Reboot or::
       
   110 
       
   111   $ sudo update-modules
       
   112 
       
   113 Another way is adding to /etc/modprobe.d/blacklist.local lines::
       
   114 
       
   115   blacklist ipv6
       
   116 
       
   117 You can safely wipe out any IPv6 reference in ``/etc/hosts`` and
       
   118 ``/etc/network/interfaces``.
       
   119 
       
   120   http://wiki.debian.org/DebianIPv6
       
   121                 DebianIPv6
       
   122 
       
   123 RHEL4/Centos4.
       
   124 --------------
       
   125 
       
   126 As for Debian, but ``/etc/modprobe.d/aliases`` has name ``/etc/modprobe.conf``.
       
   127 
       
   128 KDE.
       
   129 ----
       
   130 ::
       
   131 
       
   132   $ cat /etc/environment
       
   133   ...
       
   134   KDE_NO_IPV6=true
       
   135   ...
       
   136 
       
   137 Firefox.
       
   138 --------
       
   139 
       
   140 See ``about:config`` page, set ``network.dns.disableIPv6`` to ``true``.
       
   141 
       
   142 Clear saved Windows networking passwords.
       
   143 =========================================
       
   144 ::
       
   145 
       
   146   cmd> rundll32.exe keymgr.dll, KRShowKeyMgr
       
   147   cmd> control userpasswords2                 # another way
       
   148 
       
   149 Proxy auto-config.
       
   150 ==================
       
   151 
       
   152   http://en.wikipedia.org/wiki/Proxy_auto-config
       
   153