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
When I recently learned about iptable, I found that the configuration will be cleared after restart. Finally, the command for iptables storage is: iptables-save/etc/iptables. up. rule # where you want to save iptables-restore/etc/iptables. up. rules
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
Data collection and analysis is essential when Linux is a network server, especially a router or gateway. So today, let's take a look at the powerful network data collection and analysis tools in Linux ?? TcpDump. As the name suggests, TcpDump can
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
Iptables makes the security settings, first discards all INPUT and OUTPUT directions, and then enables the ports to be used one by one. it is found that the software cannot be installed using yum, make sure that the following rules are available
In the latest Linux kernel, the iptables module is uninstalled (unload) by default when iptables is restarted, and then loaded and restarted. In this configuration, if iptables is restarted, the connection that is valid for the tcp initiator
When the NFS service is started, portmapp assigns a dynamic port to each NFS service, such as MOUNTD_PORT, STATD_PORT, LOCKD_TCPPORT, and LOCKD_UDPPORT. How can NFSclient use the NFS service properly when using iptables? The method is to specify the
Map the IP ports of the two WAN ports to the same intranet Port. the IP addresses of the two WAN ports on the server are 192.168.30.155 and 192.168.80.155. The intranet IP address is 192.168.1.1. the client IP address is 192.168.1.138 (eth1) port 808
The previous article mentioned two new things on Netfilter. one of them is the bpfmatch module, and the other nftables ball has not been released. even if it is released, it is not as attractive as bpfmatch, after all, Berkeley's stuff should not be
1. install and start the Netfilter/iptables system. because Netfilter/iptables's netfilter component is integrated with kernel 2.4.x, later versions of Linux are equipped with the netfilter kernel tool, so generally do not need to download, but just
Run the following command: # enable port 80 iptables-IINPUT-ptcp-mstate -- stateNEW -- dport80-jACCEPT # save modification serviceiptablessave # restart serviceiptablesrestart # view the status serviceiptablesstatus note: in/etc/sysconfi
Run the
TcpDump remarks tcpdump usage explanation and comment abstract the first type keyword is about the type, mainly including host, net, port, such as host210.27.48.2, indicating that 210.27.48.2 is a host, net202.0.0.0 indicates that 202.0.0.0 is a
Grep (globalsearchregularexpression (RE) andprintouttheline, full search for regular expressions and print out rows) is a powerful text search tool that can use regular expressions to search for text, and print the matched rows. Unix grep families
When nagios is installed in the source code, the following Error occurs: Couldnotopencommandfile '/usr/local/nagios/var/rw/nagios. cmd' forupdate! Thenitmeansthatthepermissionsonthefolderaremessedup. Don't 'tbotherse
1. an error occurred while
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