Moxa V2616A-C5 [31/111] Iptables

Moxa V2616A-C5-W7E [31/111] Iptables
V2616A Linux Managing Communications
3-9
MOXA:~# umount /
9. Re-start the apache server.
MOXA:~# /etc/init.d/apache2 restart
ATTENTION
Visit the Apache website at
http://httpd.apache.org/docs/ for more information about setting up Apache
server
s.
IPTABLES
IPTABLES is an administrative tool for setting up, maintaining, and inspecting the Linux kernels IP packet filter
rule tables. Several different tables are defined, with each table containing built-in chains and user-defined
chains.
Each chain is a list of rules that apply to a certain type of packet. Each rule specifies what to do with a matching
packet. A rule (such as a jump to a user-defined chain in the same table) is called a target.
The V2616A-LX supports three types of IPTABLES: Filter tables, NAT tables, and Mangle tables.
Filter Tableincludes three chains:
INPUT chain
OUTPUT chain
FORWARD chain
NAT Tableincludes three chains:
PREROUTING chaintransfers the destination IP address (DNAT).
POSTROUTING chainworks after the routing process and before the Ethernet device process to transfer
the source IP address (SNAT).
OUTPUT chainproduces local packets.
Sub-tables
Source NAT (SNAT)changes the first source IP address of the packet.
Destination NAT (DNAT)changes the first destination IP address of the packet.
MASQUERADEa special form for SNAT. If one host can connect to the Internet, then the other
computers that connect to this host can connect to the Internet when the computer does not have an actual
IP address.
REDIRECTa special form of DNAT that re-sends packets to a local host independent of the destination IP
address.
Mangle Tableincludes two chains
PREROUTING chainpre-processes packets before the routing process.
OUTPUT chainprocesses packets after the routing process.
Mangle tables can have one of three extensionsTTL, MARK, TOS.

Содержание

Похожие устройства

Скачать