JTK – Notes and Ramblings Things we have found …

4/28/2010

PXE and Services

Filed under: General,Router/PC Config — taing @ 10:34 am

tftpd32 from http://tftpd32.jounin.net/ is a good option for setting up a tftp and dhcp server on windows for PXE boot.

You will need the pxelinux.0 and vesamenu.c32 files from the syslinux distribution. Editing the default file in the pxelinux.cfg folder will also be required.

A ssh server can be easily accomplished with cygwin using openssh server. Once you install the openssh(from Net group) and cygrunsrv(from Admin group) packages in cygwin you will need to run ssh-host-config. You can then use ‘net start sshd’ and ‘net stop sshd’.

In many cases a privilege separation user is useful but that is not always possible.

A nfs server can also be handled with cygwin. You will need the nfs-server(from Net group), sunrpc(from Libs group) and cygrunsrv(from Admin group). After installing you will need to run nfs-server-config.

/etc/hosts.allow and /etc/hosts.deny control access on a host level.

/etc/hosts.allow :
nfsd: 192.168.0.0/255.255.255.0

/etc/exports controls which folders to share.

/etc/exports :
/pub 192.168.0.0/255.255.255.0(ro, no_root_squash)

We created a link from our main tftpdboot folder to cygwin root for simplicity.

You can now ‘net start mountd’ and ‘net start nfsd’. This will automatically start the portmap service, also. ‘net stop portmap’ will stop all three services.

We suggest you set all of the cygwin services to Manual start to prevent starting unneeded services at Windows boot.

Powered by WordPress