Moxa TC-6110-T-LX [50/117] File overview

Moxa TC-6110-T-LX [50/117] File overview
TC-6110 Linux User's Manual Managing Communications
3-32
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; it should show an established route running between
your two VPN gateways. The command to see 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 TC-6110-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
Hot Swap Daemon Customization
The mxhtspd daemonor the Moxa hot-swap daemonmanages block-storage hot-swapping, and is
pre-enabled on this device. It is launched in the background at boot-time by the
/etc/init.d/mxhtspd.sh
script, and will automatically detect drive status so long as the machine is running.
Users can configure how mxhtspd is called by editing up the
/etc/init.d/mxhtspd.sh; mxhtspd accepts
the following arguments:
:-i [INTERVAL_IN_SECONDS]: interval in seconds to check partition usage

Содержание

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

Скачать