Iptables, Adding a web page – Moxa Technologies EM-1240-LX User Manual

Page 36

Advertising
background image

EM-1240-LX User’s Manual

Configuring EM-1240-LX

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: /etc/boa.conf

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

/etc>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 the action to
be taken with a matching packet. A rule (such as a jump to a user-defined chain in the same table)
is called a “target.”

The EM-1240-LX supports three types of IPTABLES tables: 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)
OUTPUT chain—produces local packets

sub-tables

Source NAT (SNAT)—changes the first source packet IP address

Advertising