1. Introduction to Advanced components 1. params: this is an archive used to set shell variables. This archive is a bit like the include function in the C language. put the included Archive variables into this archive, it is only in the shorewall
Iptables is hard to understand and configure for beginners of Linux. However, if you master the secrets, you will find that it is not that difficult to learn. Iptables is a Linux static firewall used to create rules to filter packets and NAT modules.
Only send and receive messages, other close iptables-IFilter-mmac -- mac-source00: 0F: EA: 25: 51: 37-jDROPiptables-IFilter-mmac -- mac-source00: 0F: EA: 25: 51: 37-pudp -- dport53-jACCEPTiptables-IFilter-mma
Only emails can be sent and received.
When iptables is used to set iptables packet filtering rules, there are several sample actions. if you are familiar with them, you can apply them later, you can enter this world. Observe the following settings: iptables-L-niptablse-tnat-L-n defines
To run iptables, you need to select the following options during kernel configuration, whether you use makeconfig or other commands. CONFIG_PACKET-allow the program to directly access the network device (note: The most common is the network card),
Temporary Method: change the parameters of the following files directly in the kernel space: # files in echo1/proc/sys/net/ipv4/ip_forwardproc cannot be modified using vi, the file can only be modified in echo mode. once changed, the file takes
With the ability to use runtime.exe c to redirect local program calls, but using redirection or pipeline for command calls will cause errors. To solve this problem, run the command through shell. Calling a local program in Java will undermine the
PushF:/Media/tcpdump/data/local: transfers the tcpdump file on the local drive to the data/local directory in the mobile phone directory, there are a lot of methods to upload to this website. record
1. first, set the usb status to debug after
Packet capture preparation 1. need to get tcpdump software, get address (http://www.strazzere.com/android/tcpdump), the general solution has come with, do not need to compile this tool separately 2. connect the Android mobile phone to the USB, open
Forward port 3389 of the local interface IP61.144.14.72 to port 3389 of 116.6.73.229 (access port 3389 of 61.144.14.72 to jump to 3389 of 116.6.6.73.229) [step] 1. The first thing to do is/etc/sysctl. net. ipv4.ip _ forward1 is 0 by default, so that
The principle of iptablesnat is the same as that of the filter table. The nat table also has three default chains (chains): PREROUTING: the destination DNAT rule redirects external access to other hosts, such as internal SERVER, or DMZ. Because only
Resource: 10 centos servers, ip address: 192.168.1.11-192.168.1.20 requirement: ssh can be accessed by 10 servers, and 10.0.60.0/24 and 192.168.1.200; others reject 1, node1 write the following script iptables.
NICs are the most important network devices on Linux servers. According to statistics, 35% of Linux network faults are at the physical layer, 25% at the data link layer, 10% at the network layer, 10% at the transmission layer, 10% at the
The linuxtcpdump command must be used as root. Example: capture data on port 8804 of the local machine and save the packet capture results in the test. cap file
Tcpdump is a basic tool for network protocol analysis. Tshark is the command line version of wireshark (formerly known as ethereal), a well-known open-source network protocol analysis tool. wireshark can decode and analyze thousands of network
In the past few years, Linux has grown significantly as a firewall platform. Since ipfwadm of the earlier version 1.2 kernel, the Linux firewall code has gone a long way. The netfilter system is used in the 2.4 Linux kernel. In the latest version 2.4
Iptables pay attention to the following siptables parameters (-L,-F,-P), chain (INPUT, OUTPUT), target (ACCEPT, DROP) uppercase is required. the simplest and most common INPUTRULE: open telnet and ssh ########## INPUTCHAIN
Open the configuration file vim/etc/syslog. conf of log service and add it in the lowest line # Open the configuration file of log service
Vim/etc/syslog. conf
Add in the lowest row
# IP address Log
Kern.info/var/log/
Iptables
Save reboot: service
# The first two lines are Annotations # Firewallconfigurationwrittenbysystem-config-securitylevel # Manualcustomizationofthisfileisnotrecommended. # use the filter table * filter # the following four items define the built-in INPUT, FORWAARD, and A #
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.