Figure 5‒14: Procedure for setting the rules
Note
The rule settings are applied when the command is run.
For example, if you perform an operation to cancel the reception permission of the SSH port while an SSH
connection is being established, the ongoing communication may be disconnected and SSH login may be disabled.
(a) Setting the port permitted for reception
1. Run the following command to permit reception on a port with a given port number.
$ sudo iptables -A INPUT -p
protocol:
tcp|udp --dport
port-number
-j ACCEPT
Example: Specify as follows to permit reception on the HTTP server port (80/tcp):
$ sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT
2. Run the following command to cancel the reception permission that has been set.
$ sudo iptables -D INPUT -p
protocol:
tcp|udp --dport
port-number
-j ACCEPT
Example: Specify as follows to cancel the reception permission for the HTTP server port (80/tcp).
$ sudo iptables -D INPUT -p tcp --dport 80 -j ACCEPT
(b) Setting the port permitted for transmission
1. Run the following command to connect to a port with a given number.
$ sudo iptables -A OUTPUT -p
protocol:
tcp|udp --dport
port-number
-j ACCEPT
Example: Specify as follows to permit transmission to the HTTP server port (80/tcp).
$ sudo iptables -A OUTPUT -p tcp --dport 80 -j ACCEPT
2. Run the following command to cancel the transmission permission that has been set.
$ sudo iptables -D OUTPUT -p
protocol:
tcp|udp --dport
port-number
-j ACCEPT
Example: Specify as follows to cancel the transmission permission for the HTTP server port (80/tcp).
$ sudo iptables -A OUTPUT -p tcp --dport 80 -j ACCEPT
5. Configuring Software Environment
69
Summary of Contents for CE50-10
Page 1: ...Hitachi Industrial Edge Computer CE50 10 Instruction Manual CC 65 0171 ...
Page 10: ......
Page 23: ...Figure 1 6 Attaching mounting brackets 4 1 Installing the CE50 10 7 ...
Page 26: ......
Page 38: ......
Page 42: ...4 2 5 Connection diagram Figure 4 2 Connection diagram 4 External Contact Functions 26 ...
Page 44: ......
Page 87: ... sudo etc init d netfilter persistent save 5 Configuring Software Environment 71 ...
Page 117: ...version information 13 Log out from the unit exit 5 Configuring Software Environment 101 ...
Page 148: ......
Page 149: ...7 Maintaining the CE50 10 This chapter describes maintenance of the CE50 10 133 ...
Page 157: ...8 Troubleshooting This chapter describes troubleshooting of the CE50 10 141 ...
Page 162: ...8 1 14 Cannot turn off the power to the unit Please contact us 8 Troubleshooting 146 ...