00198615-04_UM_IPC-HERMES-9852-V1.2_DE_EN_ZH.pdf - 第18页

3 Configuration 3.1 Connection configuration in the LAN 18 Administrator Guide / Administrator Handbuch / 管理员指南 IPC-HERMES-9852 - V1.2 05/2020 3.1.4.2 iptables NOTICE Customzing iptables iptables needs to be adapted to y…

100%1 / 140
3 Configuration
3.1 Connection configuration in the LAN
Administrator Guide / Administrator Handbuch / 管理员指南 IPC-HERMES-9852 - V1.2 05/2020 17
3.1.4 Using the Linux computer as a router
Any Linux computer with two network cards can also be used as a router for Hermes connections.
Here, the Linux service firewalld (3.1.2 "Using the symmedia Plug & Work Box Industrial as a
router" [}14]) or the Linux command iptables (3.1.3 "Using the symmedia Plug & Work Box as a
router" [}16]) is used. The commands need to be issued as super user / root.
3.1.4.1 firewalld
NOTICE
Customizing firewalld
firewalld needs to be adapted to your own configuration.
Basic configuration
► Set up the basic configuration:
ð firewall-cmd --zone=public --add-masquerade --permanent
ð firewall-cmd --reload
Setting up
► Create a connection between stacker and printer:
ð firewall-cmd --zone=dmz --add-forward-port=proto=tcp:port=40101:toaddr=192.168.0.1:
toport=50101 --permanent
ð firewall-cmd --reload
► Establish a connection between placement machine and conveyor:
ð firewall-cmd --zone=public --add-forward-port= proto=tcp:port=60101:
toaddr=172.22.0.101:toport=50101 --permanent
ð firewall-cmd --reload
Displaying
► A list of configured connections can be viewed via:
ð firewall-cmd --list-all-zones
Deleting
► Deleting the connections that have been set up:
ð firewall-cmd --zone=public --remove-masquerade --permanent
ð firewall-cmd --zone=dmz --remove-forward-port=proto=tcp:port=40101:
toaddr=192.168.0.1:toport=50101 --permanent
ð firewall-cmd --zone=public --remove-forward-port=proto=tcp:port=60101:
toaddr=172.22.0.101: toport=50101 --permanent
ð firewall-cmd --reload
NOTICE
Configuring a network card under Linux
Information on configuring a network card under Linux can also be found in the internet.
3 Configuration
3.1 Connection configuration in the LAN
18 Administrator Guide / Administrator Handbuch / 管理员指南 IPC-HERMES-9852 - V1.2 05/2020
3.1.4.2 iptables
NOTICE
Customzing iptables
iptables needs to be adapted to your own configuration.
Basic configuration
► Set up the basic configuration:
ð iptables -I FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
ð iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE
Setting up
► Create a connection between stacker and printer:
ð iptables -t nat -I PREROUTING -i eth1 -p tcp --dport 40101 -j DNAT
--to-destination 192.168.0.1:50101
ð iptables -I FORWARD -i eth1 -o eth0 -p tcp --syn -d 192.168.0.1 --dport 50101 m conntrack
--ctstate NEW -j ACCEPT
► Establish a connection between placement machine and conveyor:
ð iptables -t nat -I PREROUTING -i eth0 -p tcp --dport 60101 -j DNAT
--to-destination 172.22.0.101:50101
ð iptables -I FORWARD -i eht0 -o eth1 -p tcp --syn -d 172.22.0.101 --dport 50101
m conntrack --ctstate NEW -j ACCEPT
► To ensure that changes are permanently stored also refer to the information on the internet
Displaying
► A list of configured connections can be viewed via:
ð iptables -t nat -nvL
ð iptables -nvL
Deleting
► Deleting the connections that have been set up:
ð iptables -D FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
ð iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
ð iptables -t nat -I PREROUTING -i eth1 -p tcp --dport 40101 -j DNAT
--to-destination 192.168.0.1:50101
ð iptables -I FORWARD -i eth1 -o eth0 -p tcp --syn -d 192.168.0.1 --dport 50101
m conntrack --ctstate NEW -j ACCEPT
ð iptables -t nat -D PREROUTING -i eth0 -p tcp --dport 60101 -j DNAT
--to-destination 172.22.0.101:50101
ð iptables -D FORWARD -i eth0 -o eth1 -p tcp --syn -d 172.22.0.101 --dport 50101
-m conntrack --ctstate NEW -j ACCEPT
► To ensure that changes are permanently stored also refer to the information on the internet.
NOTICE
Configuring a network card under Linux
Information on configuring a network card under Linux can also be found in the internet.
3 Configuration
3.1 Connection configuration in the LAN
Administrator Guide / Administrator Handbuch / 管理员指南 IPC-HERMES-9852 - V1.2 05/2020 19
3.1.5 Using the HPE Office Connect 1920S 8G (JL380A) as a router
The HPE Office Connect 1920S 8G can be used as a router to establish Hermes connections as
well. The router must be configured accordingly.
The router is used parallel to the line computer.
Connecting to the router
► Create a connection between stacker and printer.
► Open a browser and go to http://192.168.1.1/. This is the default configuration which can,
however, differ for the actual router.
► To enter the configuration site, use the user “admin”. No password needs to be entered. This
is the default configuration which can, however, differ for the actual router.