Moxa TC-6110-T-LX [44/117] Setting up a networked file system nfs

Moxa TC-6110-T-LX [44/117] Setting up a networked file system nfs
TC-6110 Linux User's Manual Managing Communications
3-26
ATTENTION
To make a m
odule load across reboots, you may add it to the /etc/modprobe.conf file using this command:
moxa@MOXA:~# echo “ipt_MASQUERADE” >> /etc/modprobe.conf
Don
t forget to backup your modprobe.conf file before altering it, and take care to use the double pointer
(>>)
which is appendrather the single pointer (>) which is overwrite.
In the NAT table (-t nat), Append a rule (-A) after routing (POSTROUTING) for all packets going out ppp0 (-o
ppp0) which says to MASQUERADE the connection (-j MASQUERADE).
# iptables –t nat A POSTROUTING o eth0 s 555.666.777.888/24 –j MASQUERADE
Then turn on IP forwarding:
# echo 1 > /proc/sys/net/ipv4/ip_forward
Using these rules and DHCP, it will now be possible to allow local devices to communicate with devices outside
the subnet; however, communications will only be able to be initiated from the local network. To allow full
address translation both ways, you will need to set up static IP addresses for your devices, and port forwarding
rules.
Setting up a Networked File System: NFS
The Network File System (NFS) is used by client computers to mount a remote disk partition as if it were part
of their local hardware. NFS is a distributed file system that allows fast, seamless sharing of files across a
network. NFS allows users to develop applications for the TC-6110-LX without worrying about the amount of
disk space that will be available. By default, the TC-6110-LX only natively supports the NFS client protocol.
Mounting an NFS on a local machine is very simple.
The following procedures illustrate how to mount a remote NFS Server. In the example below,
192.168.3.5shown in step 3is the IP address of the NFS server.
1. Scan the NFS Servers shared directory:
moxa@MOXA:~# showmount e HOST
showmount:
-e:
HOST:
Shows the mount information of an NFS Server
Shows the NFS Server’s export list.
IP address or DNS address
2. Create a mount point on the machine which will be an NFS client:
moxa@MOXA:~# mkdir –p /home/nfs/public
3. Mount the remote directory to a local directory:
moxa@MOXA:~# mount -t nfs -o nolock 192.168.3.5:/home/public /home/nfs/public
(192.168.3.5 is the example IP address of the NFS server.)
ATTENTION
To set up a mount process to mount at boot
-time, copy the mount command into the /etc/fstab file.
For more information on NFS and its configuration options, you may refer to the NFS homepage, at:
http://nfs.sourceforge.net/
(Dec. 2013).
Setting Up a VPN
This platform uses the OpenVPN package to provide VPN capability. OpenVPN provides two basic types of
tunnels for users to implement VPNS: Routed IP Tunnels and Bridged Ethernet Tunnels.
An Ethernet bridge is used to connect different Ethernet networks together. The Ethernets are bundled into one
bigger, logical network that can communicate securely across the open Internet. Each Ethernet corresponds to
one physical interface (or port) that is connected to the bridge.

Содержание

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

Скачать