Iptables, Adding a web page – Moxa Technologies UC-7110 User Manual

Page 35

Advertising
background image

UC-7110 Series User’s Manual

Configuring UC-7110

4-3

Adding a Web Page

Default Home Page address:

/home/httpd/index.html

You may change the default home page directory by editing the web server’s configuration file,
located at: /home/httpd/boa.conf

Type the following command to edit the boa.conf file:

/mnt/home/httpd>vi boa.conf

To add your web page, place your home page in the following directory:

/home/httpd/

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.”

UC-7110 supports 3 types of IPTABLES table: Filter tables, NAT tables, and Mangle tables:

A. Filter Table—includes three chains:

INPUT chain
OUTPUT chain
FORWARD chain

B. 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)

Advertising