1.Configure a NFS server
service nfs start
service nfslock start
service portmap start
chkconfig nfs on
chkconfig nfslock on
chkconfig portmap on
 
edit /etc/exports
/shared 192.168.1.0/24(rw,sync)
 
check the export status
showmount -e localhost
edit /etc/sysconfig/nfs
MOUNTD_PORT=4002
STATD_PORT=4003
LOCKD_TCPPORT=4004
LOCKD_UDPPORT=4004
RQUOTAD_PORT=4005
configure iptables to allow NFS access
iptables -I INPUT -s 192.168.1.0/24 -p tcp -port 111 -j ACCEPT
ptables -I INPUT -s 192.168.1.0/24 -p udp -port 111 -j ACCEPT
iptables -I INPUT -s 192.168.1.0/24 -p tcp -port 2049 -j ACCEPT
iptables -I INPUT -s 192.168.1.0/24 -p udp -port 2049 -j ACCEPT
iptables -I INPUT -s 192.168.1.0/24 -p tcp -port 4002:4005 -j ACCEPT
iptables -I INPUT -s 192.168.1.0/24 -p udp -port 4002:4005 -j ACCEPT
 
cilent : mount server:/shared /mnt
check the folder
create a file and check it on server side
Linux vsftpd 
install vsftpd and start it
yum install vsftpd
chkconfig vsftpd on
service vsftpd start
configure wrapper /etc/hosts.allow to allow FTP visiting
vsftpd: 192.168.1.
config iptables to allow FTP visiting
iptables -I INPUT -s 192.168.1.0/24 -p tcp 杁port 20 -j ACCEPT
iptables -I INPUT -s 192.168.1.0/24 -p tcp 杁port 21 -j ACCEPT
configure /etc/sysconfig/iptables-config to allow dynamic FTP connection
IPTABLES_MODULES="ip_conntrack_netbios_ns ip_conntrack_ftp"

About Lei

I am an IT specialist with over 10 year experience - years on Automation, on-Premise or Azure.

I am happy to develop however never want be a full time developer. Only do what I have to do. If it has to be PowerShell,HTML, PHP, CSS, C#, VBS or JS, front end or backend, so be it, doesn't matter!

Spent years with Windows, SCCM, SharePoint, SQL and Exchange servers. For last several years, I have been actively working under On Premise > Azure environment.

THERE IS NO WAY BACK!!!

Current Certificates:
    Microsoft® Certified-
  • -Enterprise Administrator
  • -Database Administrator
  • -SharePoint Administrator
  • -Administering and Deploying SCCM 2012
Red Hat Certified Technician
ITIL V3 Foundation - Practitioner

Working on Azure Certificates now and hopefully they can stop upgrading their questions one day! GIVE ME A BREAK!

Contact Lei

Name *
Email *
Comments *

Traffic since 10/08/2016

Today13
Yesterday83
This week637
This month1933
Total416293

Visitor Info

  • IP: 54.221.73.186
  • Browser: Unknown
  • Browser Version:
  • Operating System: Unknown

Who Is Online

1
Online

2017-12-17

Login