First step: I have to make the wireless Ethernet Card start to work for my Lenovo w520 with Debian installed. Initially, I installed the packageFirmware-iwlwifi, Which contains the firmware for Intel Wireless 1000 inside Lenovo w520. however, only with this firmware, the wireless ethernet card still couldn't be recognized. Then, I downloadedCompat-wireless-3.6.6-1.tar.bz2. After compilation and installation
Thinkpad W520 Perfect installation ubuntu14.04ltsUbuntu has been upgraded to 14.04LTS, which is a long-term supported version number. There has been no upgrade since the last installation of 12.04LTS.Then download the Ubuntu14.04 desktop version from the site, and then use Startup Disk Creator to burn to the USB flash drive as the boot disk.My notebook is a dual hard drive. 500G is Win7. The 1TB SSD is Ubuntu12.04.Plug in the USB, and then start.Enter
Originally, I installed an Ubuntu using wubi on my company's laptop (Lenovo w520 ). one purpose is for fun, the other is to use some instant messengers, which are blocked by default on our windows system. now, having come to Switzerland, Skype is no doubt the best tool for international communication, which can only be installed on Linux system however.
In order to have better system performance, I decided to change wubi to Debian. actually speaking,
Common commandsNetstat-pan|grep 2809: View a specific port situationNETSTAT-NL | grep 110: View a specific port situationNETSTAT-AP: List the connected PID (process number) based on the above command, using this PID, you can use Kill to kill the connectionFor example: a connected pid=111 that wants to kick out uses KILL-9 111. Ok!NETSTAT-RN: Output Routing TableNmap 127.0.0.1: View native open ports, scan all portsNmap-p 1024 65535? 127.0.0.1: Scan sp
--0.0.0.0/0 0.0.0.0/0 TCP spt:22Now the Linux server only opened 22 ports, with Putty.exe test whether you can link up.Can be linked up, stating that there is no problem.Finally, don't forget to save your firewall settingsSave by Command: Service iptables saveIptables-a input-p TCP--dport 22-j ACCEPTIptables-a output-p TCP--sport 22-j ACCEPTDo some explaining to these 2 commands.The-a parameter is considered a rule to add an INPUT
1. disable all INPUTFORWARDOUTPUT to open only some ports. The following is the command implementation: iptables-PINPUTDROPiptables-PFORWARDDROPiptables-POUTPUTDROP and then use the command iptables-L-n to check whether the settings are correct. then, we can see that all the settings have been dropped, 1. disable all input forward output and only open it to some ports.
The following is a command implementat
1. disable all INPUTFORWARDOUTPUT to open only some ports. The following is the command implementation: iptables-PINPUTDROPiptables-PFORWARDDROPiptables-POUTPUTDROP and then use the command iptables-L-n to check whether the settings are correct. you can see that all the settings have been dropped.
1. disable all input forward output and only open it to some ports.The following is a command implementation:
Iptables-P INPUT DROPIptables-P FORWARD DROPIp
input 2Delete the rule with INPUT Chain number 2.
Click iptables-L-n to check whether it has been cleared.5. Filter invalid data packetsAssume that someone enters the server or has a virus Trojan program, it can transmit data outside the server through port.This method is different from the normal access to port 22 and 80. The data it sends to the external server is not sent by visiting the webpage.The response packet.
We will disable all the packets that are not responded through the request a
The SELinux security control of Linux is used for ports in addition to the file system, which enables processes that are started as services to be monitored only on a specified number of ports. For the narrative convenience we call the controlled port.Nginx Monitor PortTo see which managed ports are currently executable:grep ' ^http_port_t ' http_port_t
Python scans server ports in batches, and python scans server ports in batches.
I wrote a simple Port Scan script in Python. The simple logic is as follows:
1. python DetectHostPort. py iplist.txt (stores the text of the IP address list to be scanned, one address per line)
2. Enter the scan port, scan time, and scan interval.
3. Output scan information.
The source code is pasted below. You are welcome to m
Step one, Windows view all portsClick Start in the lower left corner of the computer, then select the Run option, and then in the popup window, enter the "cmd" command to make the command prompt. Then we enter "Netstat-ano" in the window and press ENTER, which will show all the port usage. :Step two, query the specified port occupancyIn the window, continue to enter the "Netstat-aon|findstr" Prompt Port "", for example, the prompt port is 9088, then the input command is "NETSTAT-AON|FINDSTR" 908
[password]]][/M [module] |/svc |/v] [/FI Filter] [/FO format] [/NH]Describe:This tool displays a list of processes currently running on a local or remote machine.Parameter list:/S system Specifies the remote system to which the connection is connected./u [domain\]user Specifies the user context in which the command should be executed./p [Password] specifies the password for the provided user context. If omitted, promptInput./M [Module] lists all tasks that currently use the given Exe/dll name.I
The firewall sets open ports for external use, and the Firewall opens ports for external use.
When deploying the project today, I met another person in the project team who reorganized iis on the server. As a result, I couldn't access the subordinate project externally and found the setting method through some channels.
The following error is reported:
The reason is that the "Inbound ICMP rule" has bee
Linux open ports, linux open ports
In Linux, the server cannot be connected when software access is installed. In this case, check whether the corresponding port is enabled. For example, after svn is installed, unable to connect:
When the svn service is started, you Can use commands on the server to check out the files, but the files cannot be checked out on other computers. The following prompt is displaye
You know that ipconfig is used to in windows, and it is a lot of trouble to view IP addresses in CentOS. The information collected today focuses on IP port problems: View IPifconfigeth0 rarr; check the IP address, but the output information is more ifconfig | grep #39; Bcast #39; rarr; the output information should be clear and the IP address should be modified.
You know, you get used to ipconfig in windows, and it is a lot of trouble to view IP addresses in CentOS;
The information collected
Edit/etc/sysconfig/iptables, add- s 127.0.0.1 --dport 6379-J Accept-s 126.212.173.185 --dport 6379-j ACCEPTThe above add red place is only to the local and 126.212.173.185 open 6379 port, other IP with Telnet is not connected,If there is no limit to access IP, you do not need to add the- s IP address , for example-A input-m state--state new-m tcp-p TCP--dport 6379-j ACCEPTYes, be sure to add it at the end-A input-j REJECT--reject-with icmp-host-prohibited-A forward-j REJECT --reject-with icmp-ho
CentOS commands for viewing IP addresses, modifying IP addresses on ports, and activating ports
You know, you get used to ipconfig in windows, and it is a lot of trouble to view IP addresses in CentOS;
The information collected today focuses on IP port problems:
View IPIfconfig eth0 → view the IP address, but the output information is moreIfconfig | grep 'bcast' → the output information should be much cle
For details about how to identify the extended serial port-Linux general technology-Linux technology and application information when installing centos on a multi-serial motherboard, refer to the following section. I bought a multi-serial control board with Intel Atom D525 CPU. It is estimated that multiple serial ports are extended through the PCI-e bus. After CentOS is installed, you cannot identify the extended serial port automatically. How can th
Main Command: lsof netstat
Netstat-anpt | grep PID
After knowing the process number, you can use this method to view which network ports are being used by the current process
Run the lsof command to view the files opened by the process.
Lsof-P 2012 // What files are opened by a process whose process number is 2012 (all files in Linux). Generally, a server such as JBoss can see that it has opened many files.
Lsof-C Apache // files opened by th
first, the basic concept
Lan:local Area Network's abbreviation, i.e. LANour computers and our routes are connected to this port .
Wan:wide Area network abbreviation, the WANthe network cable that the operator pulls in is connected to the mouth.
The Chinese name of the VLAN (virtual local area network) isVLANs are typically subdivided into several network segments logically in a local area network to form a VLAN. A local area network can be divided into more than n VLANs, so that VLANs cannot co
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.