Moxa V2401-LX [38/108] Iptables

Moxa V2401-CE [38/108] Iptables
V2401/2402 Series Linux User’s Manual Managing Communications
3-11
6. Use the following commands to restart the Apache web server:
#cd /etc/init.d
#./apache2 restart
7. Open your browser and connect to the V2401/2402-LX by typing the current LAN1 IP
address in the browser’s address box.
8. After finishing modification or writing, remember to execute “umount /” to change the root
directory back to Read-only mode.
9. Re-start the apache server.
ATTENTION
Visit the Apache website at http://httpd.apache.org/docs/
for more information about setting up
Apache servers.
IPTABLES
IPTABLES is an administrative tool for setting up, maintaining, and inspecting the Linux kernel’s
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 V2401/2402-LX supports three types of IPTABLES: Filter tables, NAT tables, and Mangle
tables.
Filter Table—includes three chains:
INPUT chain
OUTPUT chain
FORWARD chain
NAT Table—includes three chains:
PREROUTING chain—transfers the destination IP address (DNAT).
POSTROUTING chain—works after the routing process and before the Ethernet device
process
to transfer the source IP address (SNAT).
OUTPUT chain—produces local packets.
MOXA:~#
u
mount /
MOXA:~#
/
etc/init.d/apache2 re
s
tart

Содержание

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

Скачать