User`s manual
Moxa C Programmable RTU Controllers Managing Communications
4-6
Step 5: Change directory to “php”. Run “install.sh” and select “Install PHP Package”.
192.168.127.254 - PuTTY
root@Moxa:/mnt/ramdisk# cd php
root@Moxa:/mnt/ramdisk/php# ./install.sh
Press the number:
1. Install PHP package
2. Uninstall PHP package
3. Exit.
1
Start to install PHP. Please wait ...
Starting web server: apache.
PHP install sucess.
root@Moxa:/mnt/ramdisk/php#
Step 6: Open the page with the host PC’s browser (e.g. http://192.168.127.254/phpinfo.php).
If you want to uninstall PHP, follow step 2 to 5, and select the Uninstall option.
IPTABLES
IPTABLES is an administrative tool for setting up, maintaining, and inspecting the RTU controller’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 specific 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 Moxa C programming RTU controller 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)
OUTPUT chain—produces local packets
sub-tables
Source NAT (SNAT)—changes the first source packet IP address
Destination NAT (DNAT)—changes the first destination packet IP address
MASQUERADE—a special form for SNAT. If one host can connect to Internet, then other computers that
connect to this host can connect to the Internet when the computer does not have an actual IP address.
REDIRECT—a special form of DNAT that re-sends packets to a local host independent of the destination IP
address.
C. Mangle Table—includes two chains
PREROUTING chain—pre-processes packets before the routing process.
OUTPUT chain—processes packets after the routing process.
It has three extensions—TTL, MARK, TOS.