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