Moxa DA-681-I-DPP-T-XPE [42/65] Examples
![Moxa DA-681-I-DPP-T-XPE [42/65] Examples](/views2/1199528/page42/bg2a.png)
DA-681 Linux Managing Communications
3-12
-F: Flush the selected chain (all the chains in the table if none is listed).
-X: Delete the specified user-defined chain.
-Z: Set the packet and byte counters in all chains to zero.
Examples:
# iptables -L -n
In this example, since we do not use the -t parameter, the system uses the default “filter” table. Three chains
are included: INPUT, OUTPUT, and FORWARD. INPUT chains are accepted automatically, and all connections
are accepted without being filtered.
# iptables –F
# iptables –X
# iptables -Z
Define Policy for Chain Rules
Usage:
# iptables [-t tables] [-P] [INPUT, OUTPUT, FORWARD, PREROUTING, OUTPUT, POSTROUTING]
[ACCEPT, DROP]
-P: Set the policy for the chain to the given target.
INPUT: For packets coming into the DA-681-I-LX.
OUTPUT: For locally-generated packets.
FORWARD: For packets routed out through the DA-681-I-LX.
PREROUTING: To alter packets as soon as they come in.
POSTROUTING: To alter packets as they are about to be sent out.
Examples:
#iptables –P INPUT DROP
#iptables –P OUTPUT ACCEPT
#iptables –P FORWARD ACCEPT
#iptables –t nat –P PREROUTING ACCEPT
#iptables –t nat –P OUTPUT ACCEPT
#iptables -t nat –P POSTROUTING ACCEPT
In this example, the policy accepts outgoing packets and denies incoming packets.
Append or Delete Rules
Usage:
# iptables [-t table] [-AI] [INPUT, OUTPUT, FORWARD] [-io interface] [-p tcp, udp, icmp, all] [-s
IP/network] [--sport ports] [-d IP/network] [--dport ports] –j [ACCEPT. DROP]
-A: Append one or more rules to the end of the selected chain.
-I: Insert one or more rules in the selected chain as the given rule number.
-i: Name of an interface via which a packet is going to be received.
-o: Name of an interface via which a packet is going to be sent.
-p: The protocol of the rule or of the packet to check.
-s: Source address (network name, host name, network IP address, or plain IP address).
Содержание
- Da 681 series linux manual 1
- Fourth edition august 2012 1
- Www moxa com product 1
- Copyright notice 2
- Da 681 series linux manual 2
- Disclaimer 2
- Technical support contact information 2
- Trademarks 2
- Www moxa com support 2
- Introduction 4
- Attention 5
- Da 681 linux introduction 5
- Overview 5
- Product features 5
- Software specifications 5
- Attention 6
- Da 681 linux introduction 6
- Device driver 6
- Hardware 6
- Linux kernel 6
- Micro kernel 6
- Protocol stack 6
- Read only root file system 6
- Software components 6
- Da 681 linux introduction 7
- Da 681 linux introduction 8
- Da 681 linux introduction 9
- Da 681 linux introduction 10
- Da 681 linux introduction 11
- Software configuration 12
- Connecting from a telnet console 13
- Da 681 linux software configuration 13
- Starting from a vga console 13
- Attention 14
- Connecting from an ssh console 14
- Da 681 linux software configuration 14
- Adjusting the system time 15
- Da 681 linux software configuration 15
- Linux users 15
- Setting the time manually 15
- Windows users 15
- Attention 16
- Da 681 linux software configuration 16
- Ntp client 16
- Da 681 linux software configuration 17
- Updating the time automatically 17
- Da 681 linux software configuration 18
- Enabling and disabling daemons 18
- Da 681 linux software configuration 19
- Setting the run level 19
- Cron daemon for executing scheduled commands 20
- Da 681 linux software configuration 20
- Da 681 linux software configuration 21
- Inserting a sata hard drive into the computer 21
- Da 681 linux software configuration 22
- Inserting a usb storage device into the computer 22
- Attention 23
- Checking the linux version 23
- Da 681 linux software configuration 23
- Inserting a compactflash card into the computer 23
- Apt installing and removing packages 24
- Attention 24
- Da 681 linux software configuration 24
- Attention 25
- Da 681 linux software configuration 25
- Main swtd_fd open dev swtd o_rdwr time 4000 4000 ms ioctl swtd_fd ioctl_swatchdog_enable time while 1 25
- Wdt watchdog timer 25
- Da 681 linux software configuration 26
- Int swtd_disable int fd 26
- Int swtd_enable int fd unsigned long time 26
- Int swtd_get int fd int mode unsigned long time 26
- Int swtd_open void 26
- Ioctl swtd_fd ioctl_swatchdog_ack null close swtd_fd 26
- Close the file handle 27
- Managing communications 31
- Changing the interfaces configuration file 32
- Changing the network settings 32
- Da 681 linux managing communications 32
- Static ip address 32
- Adjusting ip addresses with ifconfig 33
- Da 681 linux managing communications 33
- Dynamic ip address using dhcp 33
- Enabling the telnet server 33
- Telnet server 33
- Da 681 linux managing communications 34
- Disabling the ftp server 34
- Disabling the telnet server 34
- Dns client 34
- Enabling the ftp server 34
- Ftp server 34
- Da 681 linux managing communications 35
- Etc hostname 35
- Etc nsswitch conf 35
- Etc resolv conf 35
- Apache web server 36
- Bin sh var www apache2 default cgi bin index cgi disable filename globbing set f echo content type text plain charset iso 8859 1 echo echo cgi 1 test script report echo echo argc is argv is echo echo server_software server_software echo server_name server_name echo gateway_interface gateway_interface echo server_protocol server_protocol echo server_port server_port echo request_method request_method echo http_accept http_accept echo path_info path_info echo path_translated path_translated echo script_name script_name echo query_string query_string echo remote_host remote_host 36
- Da 681 linux managing communications 36
- Default homepage 36
- Attention 37
- Da 681 linux managing communications 37
- Echo remote_addr remote_addr echo remote_user remote_user echo auth_type auth_type echo content_type content_type echo content_length content_length 37
- Saving web pages to a usb storage device 37
- Attention 38
- Da 681 linux managing communications 38
- Iptables 38
- Da 681 linux managing communications 39
- Filter table includes three chains 39
- Mangle table includes two chains 39
- Nat table includes three chains 39
- Sub tables 39
- Da 681 linux managing communications 40
- Iptables hierarchy 40
- Da 681 linux managing communications 41
- Iptables modules 41
- Observe and erase chain rules 41
- To maintain the database 41
- Append or delete rules 42
- Da 681 linux managing communications 42
- Define policy for chain rules 42
- Examples 42
- Attention 43
- Da 681 linux managing communications 43
- Examples 43
- Nat network address translation 43
- Da 681 linux managing communications 44
- Enabling nat at bootup 44
- Nat example 44
- Attention 45
- Connecting to a ppp server over a simple dial up connection 45
- Da 681 linux managing communications 45
- Ppp point to point protocol 45
- Checking the connection 46
- Connecting to a ppp server over a hard wired link 46
- Da 681 linux managing communications 46
- Da 681 linux managing communications 47
- Setting up a machine for incoming ppp connections 47
- Attention 48
- Da 681 linux managing communications 48
- Da 681 linux managing communications 49
- Da 681 linux managing communications 50
- Nfs network file system client 50
- Da 681 linux managing communications 51
- Snmp simple network management protocol 51
- Da 681 linux managing communications 52
- Ethernet bridging for private networks on different subnets 52
- Openvpn 52
- Attention 53
- Da 681 linux managing communications 53
- Da 681 linux managing communications 54
- Attention 55
- Da 681 linux managing communications 55
- Da 681 linux managing communications 56
- Ethernet bridging for private networks on the same subnet 56
- Routed ip 56
- Da 681 linux managing communications 57
- Da 681 linux managing communications 58
- System recovery 59
- Attention 60
- Bootable usb disk recovery 60
- Da 681 linux system recovery 60
- Da 681 lx 60
- Recovery environment 60
- Recovery procedure 60
- Usb port 60
- Da 681 linux system recovery 61
- Da 681 linux system recovery 62
- Da 681 linux system recovery 63
- Attention 64
- Da 681 linux system recovery 64
- Da 681 linux system recovery 65
Похожие устройства
- Moxa DA-681-I-DPP-T-XPE Руководство по программной части (Windows CE)
- Moxa DA-681-I-DPP-T-XPE Технические характеристики
- Moxa DA-681-I-DPP-T-XPE Руководство по аппаратной части
- Moxa DA-681-I-SP-LX Инструкция по эксплуатации
- Moxa DA-681-I-SP-LX Руководство по программной части (Windows)
- Moxa DA-681-I-SP-LX Руководство по программной части (Windows CE)
- Moxa DA-681-I-SP-LX Руководство по программной части (Linux)
- Moxa DA-681-I-SP-LX Технические характеристики
- Moxa DA-681-I-SP-LX Руководство по аппаратной части
- Moxa DA-681-I-SP-XPE Инструкция по эксплуатации
- Moxa DA-681-I-SP-XPE Руководство по программной части (Windows)
- Moxa DA-681-I-SP-XPE Руководство по программной части (Linux)
- Moxa DA-681-I-SP-XPE Руководство по программной части (Windows CE)
- Moxa DA-681-I-SP-XPE Технические характеристики
- Moxa DA-681-I-SP-XPE Руководство по аппаратной части
- Moxa DA-683-DPP-T-LX Инструкция по эксплуатации
- Moxa DA-683-DPP-T-LX Руководство по программной части (Windows)
- Moxa DA-683-DPP-T-LX Руководство по программной части (Linux)
- Moxa DA-683-DPP-T-LX Руководство по программной части (Windows 7)
- Moxa DA-683-DPP-T-LX Руководство по быстрой установке