IptablesOfNatThe experiment process is as follows:
1. Requirements:
1. Set iptables to make it a gateway and use the NAT proxy to access the internet on the LAN client;
2. Allow LAN clients to access the Internet from 192.168.1.2-100
2. Basic
IptablesIt has many functions. Have you ever thought about using it to limit network traffic such as BT and e? That's right, it's IPtables. Let's take a look at the specific implementation methods!
In April this year, I saw a report saying that
IptablesThere are many features. Here I will teach you a little trick: Using iptables to prevent CC attacks on web Servers
Use iptables to prevent CC attacks on web Servers
When the apache site is under severe cc attacks, we can use iptables to
IptablesVery good and powerful. All the friends who have used it say yes. Well, this article introduces some common applications!
1. ICMP-related applications
Make yourself unable to ping 127.0.0.1
Iptables-a input-s 127.0.0.1-p icmp-j DROP
The IP
Red-Flag LinuxOnIptablesThe use process is very simple, and can be solved as long as you start. Come with me!
Compile Iptables rule script
The so-called rules refer to blocking different connections and data packets or allowing their whereabouts on
Iptables port ingThe settings are as follows:
We have a computer with two NICs. eth0 is connected to the Internet, and the ip address is 1.2.3.4. eth1 is connected to the Intranet, and the ip address is 192.168.0.1. now, you need to forward the IP
Iptables port ingThe implementation steps are as follows:
I. Environment and functions to be implemented
The network settings of PC1 are as follows:
Eth0 192.168.0.29 Intranet
Eth1 219.239.11.22 Internet
The Network Setting of PC2 is 192.168.0.21
IptablesImplement port forwarding,Port ingAnd two-way access is not difficult to configure, as long as you follow my footsteps, see the following:
The project went live with two servers, A on the public network. For linux rhel5.4, run a discount
UseIptablesDoIPOfStatic ingIt is similar to port ing. The specific operations are as follows:
In fact, static ing is similar to port ing, but the IP static is to transfer the Intranet server to the internet (or external network, port ing only maps
IptablesAndNatcheckThis is a perfect combination. You can try it. Here I will explain their knowledge to you!
Stun Protocol (Rfc3489, see http://www.ietf.org/rfc/rfc3489.txt) puts forward four types of NAT definition and classification, and gives
Iptables Study NotesTo everyone:
1. Start the iptables service.
Service iptables start.
The service iptables status shows the service status of the current iptables.
To enable the iptables service with the server, you can use chkconfig-level 345
IptablesAndAsterisk:
Iptables fo asterisk
SIP on UDP port 5060. Other SIP servers may need TCP port 5060 as well
Iptables-a input-p udp-m udp-dport 5004: 5082-j ACCEPT
IAX2-the IAX protocol
Iptables-a input-p udp-m udp-dport 4569-j ACCEPT
Nginx + iptablesDefenseDDOSMalicious access and harassment of collectors are annoying. I have come up with a solution for your reference:
The nginx logs are used to filter out IP addresses that are too frequently accessed, add them to the nginx
Figure-lamp
LampLinux + Apache + Mysql + Perl/PHP/Python) is a group of open-source software commonly used to build dynamic websites or servers. They are independent programs, but they are often used together, with higher compatibility, a
Figure-LAMP
LAMPSystemOptimizationConfigurationDiskTo improve performance
A disk plays an important role in the LAMP architecture. Static files, templates, and codes are from disks. The data tables and indexes that make up the database also come
Figure-LAMP
LAMPEnvironmentBuildAs follows:
In some of the previous configuration tutorials, many people did not succeed. Most of the problems were discovered in their own scenarios. Although they were facing the tutorial, they were also careless.
Figure-LAMP
The latest stable apache server version is httpd-2.2 .. 0, official: [url] http://httpd.apache.org/download.cgi#/url.pdf. We can quickly build a web server using the following steps.
1. Download the source code file httpd-2.2.0.tar.gz
LAMPStrategyMySQLCommonSyntaxThe statement is as follows:
1. Use the show statement to view databases on the server
mysql>show databases;
2. Create a database named example
mysql>CREATE DATABASE example;
3. Select a
In the previous article, I introducedNagios ConfigurationWhat we will do after the configuration is Nagios configuration acceptance. If the configuration fails to meet the requirements, it will be deemed as off!
Figure-Nagios
Nagios
Configuration and installationNagiosThe required tools and commands are used to create a new Nagios.
Most Linux®Nagios is installed in the distribution edition. In this case, the installation can be well integrated with the Apache Web server. To
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service