Moxa DA-682A-C7-DPP [51/108] Setting up hot swap for block storage

Moxa DA-682A-C7-DPP [51/108] Setting up hot swap for block storage
DA-682A-DPP Linux Software Managing Communications
3-33
tun-mtu-extra 64
ping 40
ifconfig 192.168.4.174 192.168.2.173
up /etc/openvpn/tun.sh
5. Next, change OpenVPN B’s routing table in the file /etc/openvpn/tun.sh so that it matches the local
subnet the VPN gateway is serving. Notice the gw $5 appended to the end of this line: the $5 is a variable
argument that OpenVPN passes to the script file. Its value is the second argument of ifconfig in the
/etc/openvpn/tun.conf file.
#--------------------------Start----------------------------
#!/bin/sh
# value after “-net” is the subnet behind the remote peer
route add -net 192.168.2.0 netmask 255.255.255.0 gw $5
#---------------------------end-----------------------------
6. Check the routing table after you run OpenVPN. You will see an established route running between your two
VPN gateways. The command to view the routing table is:
moxa@Moxa:~# route.
Destination Gateway Genmsk Flags Metric Ref Use Iface
192.168.4.174 * 255.255.255.255 UH 0 0 0 tun0
192.168.4.0 192.168.4.174 255.255.255.0 UG 0 0 0 tun0
192.168.2.0 * 255.255.255.0 U 0 0 0 eth1
192.168.8.0 * 255.255.255.0 U 0 0 0 eth0
Setting Up Hot Swap for Block Storage
The DA-682A-DPP-LX computers come with two removable trays for additional block storage devices like hard
disks or SSD drives. It also supports hot swapping capability along with user-defined programmable LEDs and
a related API for convenient storage management.
File Overview
mxhtspd: a daemon for monitoring hot-swap events
mxhtspd-setled: a command to set up LED signals
/etc/mxhtspd/scripts: scripts executed when an event occurs; the following files are included:
action-btn -pressed
action-disk-plugged
action-disk-unplugged
action-part-over-usage
/etc/mxhtspd/mxhtspd.conf: configuration file for the mxhtspd daemon
libmxhtsp.so: library

Содержание

Похожие устройства

Скачать