Matchstiq-Z1 Getting Started Guide
ANGRYVIPER Team
7
Development Host Setup - Network Mode ONLY
7.1
Network Mounting Mode
The NFS server needs to be enabled on the host in order to run the SDR in Network Mode. The following sections
are directions on how to do this for both CentOS 6 and CentOS 7 host operating systems.
7.1.1
CentOS 6
From the host, install the necessary tools using yum:
% sudo yum install nfs-utils nfs-utils-lib
% sudo chkconfig nfs on
% sudo service rpcbind start
% sudo service nfs start
From the host, add the following lines to the bottom of
/etc/exports
and change “XX.XX.XX.XX/MM” to a valid
netmask for the DHCP range that the SDR will be set to for your network (
e.g.
192.168.0.0/16
). This should
be as “tight” as possible for security reasons.
Do
not
share out your top-level directory! This would allow
theft of your private “ssh” keys, etc!
% sudo vi /etc/exports
/opt/opencpi XX.XX.XX.XX/MM(rw,sync,no_root_squash,no_subtree_check)
<host core project location> XX.XX.XX.XX/MM(rw,sync,no_root_squash,no_subtree_check)
<host assets project location> XX.XX.XX.XX/MM(rw,sync,no_root_squash,no_subtree_check)
<host assets_ts project location> XX.XX.XX.XX/MM(rw,sync,no_root_squash,no_subtree_check)
% sudo exportfs -av
From the host, restart the services that have modified for the changes to take effect:
% sudo service nfs start
7.1.2
CentOS 7
From the host, install the necessary tools using yum:
% sudo yum install nfs-utils
From the host, allow NFS past SELinux
% sudo setsebool -P nfs_export_all_rw 1
% sudo setsebool -P use_nfs_home_dirs 1
From the host, allow NFS past the firewall:
% sudo firewall-cmd --permanent --zone=public --add-service=nfs
% sudo firewall-cmd --permanent --zone=public --add-port=2049/udp
% sudo firewall-cmd --permanent --zone=public --add-service=mountd
% sudo firewall-cmd --permanent --zone=public --add-service=rpc-bind
% sudo firewall-cmd --reload
Define the export by creating a new file that has the extension “
exports
”. If it does not have that extension, it
will be ignored. Add the following lines to that file and replace “XX.XX.XX.XX/MM” with a valid netmask for the
DHCP range that the SDR will be set to for your network (
e.g.
192.168.0.0/16
). This should be as “tight” as
possible for security reasons.
Do
not
share out your top-level directory! This would allow theft of your
private “ssh” keys, etc!
1
nfs-utils-lib
was rolled into
nfs-utils
starting with CentOS 7.2, if using eariler versions of CentOS 7,
nfs-utils-lib
will need
to be explicitly installed
2
You can use
getsebool
to see if these values are already set before attempting to set them. Some security tools may interpret the
change attempt as a system attack.
14