# HG changeset patch # User Oleksandr Gavenko # Date 1323021311 -7200 # Node ID bb1d825da953332b42090a30f36ddb59f2299f3e # Parent fd5d841f7273ea650a79b2a8c13c4c6908119b59 List of open ports under Linux. diff -r fd5d841f7273 -r bb1d825da953 net.rst --- a/net.rst Thu Dec 01 12:11:28 2011 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,105 +0,0 @@ --*- mode: outline; coding: utf-8; -*- - -* Ukraine internet provider. - -** Utel. - -User - none, password - none, phone - '*99***1#' or '*99#'. - -** Peoplenet. - -User and password you get by sending SMS message to '920' number. Phone '#777'. - -* DNS to IP address. - - $ nslookup example.com - -* IP to DNS address. - - $ nslookup 192.168.1.1 - -* NetBIOS to IP address. - -By nbtstat.exe command from MS you can print NetBIOS name cache with -name-to-IP address mappings: - - $ nbtstat -c - -* List of NetBIOS name. - - $ nbtstat -r - -* List of open ports. - -** Windows. - - cmd> netstat # with DNS name resolution, TCP only - cmd> netstat -n # without name resolution, TCP only - cmd> netstat -a -n # TCP and UDP - cmd> netstat -s # show IP, ICMP, TCP, and UDP statistics. - -** Linux. - - $ netstat - -* Which processes open port? - -** Windows - - cmd> netstat -o # show PID - cmd> netstat -b # show also cmd name - cmd> netstat -b -v # show all modules (.exe and .dll) with full path - -* How disable IPv6? - -** Debian kernel 2.6/Ubuntu ("official" method)/Fedora Core. - -Comment in /etc/modprobe.d/aliases "alias net-pf-10 ipv6" and add alias -"net-pf-10 off", "alias ipv6 off": - - $ sudo emacs /etc/modprobe.d/aliases -... - $ cat /etc/modprobe.d/aliases -... -# alias net-pf-10 ipv6 -alias net-pf-10 off -alias ipv6 off -... - -Reboot or - - $ sudo update-modules - -Another way is adding to /etc/modprobe.d/blacklist.local lines - - blacklist ipv6 - -You can safely wipe out any IPv6 reference in "/etc/hosts" and -"/etc/network/interfaces". - -** RHEL4/Centos4. - -As for Debian, but "/etc/modprobe.d/aliases" has name "/etc/modprobe.conf". - -** KDE. - - $ cat /etc/environment -... -KDE_NO_IPV6=true -... - -** Firefox. - -See about:config page, set "network.dns.disableIPv6" to "true". - -* Windows. - -** Clear saved Windows networking passwords. - - cmd> rundll32.exe keymgr.dll, KRShowKeyMgr - cmd> control userpasswords2 # another way - -* Proxy auto-config. - - http://en.wikipedia.org/wiki/Proxy_auto-config -