<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ServerFlux - Securing the Internet</title>
	<atom:link href="http://serverflux.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://serverflux.com</link>
	<description>Server Administration, Internet Security and Tutorials</description>
	<lastBuildDate>Thu, 17 May 2012 10:43:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>How to setup a Linux based PXE server to distribute Windows 7</title>
		<link>http://serverflux.com/networking/setup-linux-based-pxe-server-distribute-windows-7/</link>
		<comments>http://serverflux.com/networking/setup-linux-based-pxe-server-distribute-windows-7/#comments</comments>
		<pubDate>Thu, 17 May 2012 10:43:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[pxe]]></category>
		<category><![CDATA[syslinux]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://serverflux.com/?p=1053</guid>
		<description><![CDATA[We will firstly install the TFTP server &#8211; which is simply an FTP server which does not require any authentication. We not now need to check the configuration for the TFTP server &#8211; you should make sure that the RUN_DAEMON directive is set to &#8220;ENABLE&#8221; in the config: /etc/default/tftpd-hpa configuration file. You will also find [...]]]></description>
			<content:encoded><![CDATA[<p>We will firstly install the TFTP server &#8211; which is simply an FTP server which does not require any authentication.</p>
<pre class="brush: bash; title: ; notranslate">apt-get install tftpd-hpa</pre>
<p>We not now need to check the configuration for the TFTP server &#8211; you should make sure that the RUN_DAEMON directive is set to &#8220;ENABLE&#8221; in the config: <strong>/etc/default/tftpd-hpa</strong> configuration file. You will also find the server directory specified in this configuration file:</p>
<pre class="brush: bash; title: ; notranslate">TFTP_OPTIONS=&quot;--secure&quot;
TFTP_USERNAME=&quot;tftp&quot;
TFTP_DIRECTORY=&quot;/srv/tftp&quot;
TFTP_ADDRESS=&quot;0.0.0.0:69&quot;
RUN_DAEMON=&quot;yes&quot;</pre>
<p>We will also need syslinux (boot loader) in order to boot up the ISO&#8217;s we are going to use with the PXE server so we do:</p>
<pre class="brush: bash; title: ; notranslate">wget --no-check-certificate https://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-4.05.zip
unzip syslinux-4.05.zip
cd syslinux-4.05</pre>
<p>We will now copy two required files to the TFTP root directory:</p>
<pre class="brush: bash; title: ; notranslate">cp core/pxelinux.0 /srv/tftp
cp memdisk/memdisk /srv/tftp</pre>
<p>We will create a create the configuration files for syslinux as follows:</p>
<pre class="brush: bash; title: ; notranslate">mkdir /srv/tftp/pxelinux.cfg
nano /srv/tftp/pxelinux.cfg/default</pre>
<p>and add the following to the default file:</p>
<pre class="brush: bash; title: ; notranslate">DEFAULT win7
PROMPT 60

LABEL win7
LINUX /memdisk
APPEND iso
INITRD /win7.iso</pre>
<p>Now the PXE server has been setup its time to setup DHCP so it can tell workstations where your PXE server is, I have used active directory for this example:</p>
<p>Go to > Administrative Tools > DHCP > Scope XX.XX.XX.XX > Scope Options<br />
and then create the following records (replace where needed):</p>
<pre class="brush: bash; title: ; notranslate">006 DNS Servers XX.XX.XX.XX
013 Image Size 0x28
066 Boot Server host Name XX.XX.XX.XX
067 Bootfile name: Pxelinux.0</pre>
<p>Now simply restart one of your client workstations within the scope of your DHCP server and hit F12 to network boot upon system startup and you should have Windows 7 installation up and running!</p>
]]></content:encoded>
			<wfw:commentRss>http://serverflux.com/networking/setup-linux-based-pxe-server-distribute-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ESXI 5: Setting up SSH Public Key Authentication</title>
		<link>http://serverflux.com/linux/setting-ssh-public-key-authentication-debian/</link>
		<comments>http://serverflux.com/linux/setting-ssh-public-key-authentication-debian/#comments</comments>
		<pubDate>Fri, 11 May 2012 14:19:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[dropbear]]></category>
		<category><![CDATA[esxi 5]]></category>
		<category><![CDATA[public key]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://serverflux.com/?p=1043</guid>
		<description><![CDATA[This tutorial describes the process on how you can connect via SSH to your ESXI 5.0 host using public key authentication. I have tried to explain as much as possible, since there (or at least I couldn&#8217;t find any) decent tutorials on the internet covering this subject on ESXI 5.0. Firstly we will create our [...]]]></description>
			<content:encoded><![CDATA[<p>This tutorial describes the process on how you can connect via SSH to your ESXI 5.0 host using public key authentication. I have tried to explain as much as possible, since there (or at least I couldn&#8217;t find any) decent tutorials on the internet covering this subject on ESXI 5.0.</p>
<p>Firstly we will create our private and public keys on the remote host (the host we are connecting to ESXI on):</p>
<pre class="brush: bash; title: ; notranslate">ssh-keygen -t rsa</pre>
<p>The keys by default are stored as follows:</p>
<pre class="brush: bash; title: ; notranslate">~/.ssh/rd_rsa
~/.ssh/rd_rsa.pub</pre>
<p>We set the permissions:</p>
<pre class="brush: bash; title: ; notranslate">chmod 600 ~/.ssh/rd_rsa
chmod 600 ~/.ssh/rd_rsa.pub</pre>
<p>We will now copy the public key to the remote host:</p>
<pre class="brush: bash; title: ; notranslate">scp ~/.ssh/rd_rsa.pub root@remotehost:/root</pre>
<p>And then on the remote hosts we do:</p>
<pre class="brush: bash; title: ; notranslate">cat /root/rd_rsa.pub &gt; /etc/ssh/keys-root/authorized_keys
chmod 600 /etc/ssh/keys-root/authorized_keys</pre>
<p><strong>The above is very important</strong>, other tutorial do not explain this at all! There is a directive in /etc/ssh/sshd_config called &#8220;AuthorizedKeysFile /etc/ssh/keys-%u/authorized_keys&#8221; This specifies where a users &#8220;authorized_keys&#8221; will be looked up on the esxi host. In this tutorial we will be connecting from a remote host to the ESXI host as the user root; hence we replace %u with root &#8211; so it becomes &#8220;keys-root&#8221;.</p>
<p>Important!: Make sure that the ~/.ssh folders on both hosts are chmod to 700 e.g.:</p>
<pre class="brush: bash; title: ; notranslate">chmod 700 ~/.ssh</pre>
<p>In order to disable password logins to the SSH server you should change the following in :</p>
<pre class="brush: bash; title: ; notranslate">vi /etc/ssh/sshd_config</pre>
<p>and change according to below:</p>
<pre class="brush: bash; title: ; notranslate">PermitRootLogin yes
ChallengeResponseAuthentication no # This entry might not be present! Don't add it if it isn't present.
PasswordAuthentication no</pre>
<p>and finally restart SSH service:</p>
<pre class="brush: bash; title: ; notranslate">/etc/init.d/SSH restart</pre>
<p>You can now connect to ESXI 5 using SSH public key authentication  by running the following:</p>
<pre class="brush: bash; title: ; notranslate">ssh -i ~/.ssh/rd_rsa root@esxi-host</pre>
<p>If you run into any problems, just use the -v switch in SSH e.g.:</p>
<pre class="brush: bash; title: ; notranslate">ssh -v -i ~/.ssh/rd_rsa root@esxi-host</pre>
]]></content:encoded>
			<wfw:commentRss>http://serverflux.com/linux/setting-ssh-public-key-authentication-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to use GNUPG / GPG on Debian Squeeze</title>
		<link>http://serverflux.com/linux/gnupg-gpg-debian-squeeze/</link>
		<comments>http://serverflux.com/linux/gnupg-gpg-debian-squeeze/#comments</comments>
		<pubDate>Fri, 11 May 2012 09:03:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Internet Security]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[gnu]]></category>
		<category><![CDATA[gnupg]]></category>

		<guid isPermaLink="false">http://serverflux.com/?p=1035</guid>
		<description><![CDATA[We will firstly install the GNUPG package (which is commonly already included with Debian distro&#8217;s) from apt: We now require a key pair &#8211; so that we can encrypt and decrypt files, so we generate them as follows: You should then confirm your identity details and enter a pass-phrase. To list your public keys use: [...]]]></description>
			<content:encoded><![CDATA[<p>We will firstly install the GNUPG package (which is commonly already included with Debian distro&#8217;s) from apt:</p>
<pre class="brush: bash; title: ; notranslate">apt-get install gnupg</pre>
<p>We now require a key pair &#8211; so that we can encrypt and decrypt files, so we generate them as follows:</p>
<pre class="brush: bash; title: ; notranslate">gpg --gen-key
Select Option: 1
Key Size: 2048
Key is valid for: 0</pre>
<p>You should then confirm your identity details and enter a pass-phrase.</p>
<p>To list your public keys use:</p>
<pre class="brush: bash; title: ; notranslate">gpg --list-keys</pre>
<p>And to list your secret (private) keys use:</p>
<pre class="brush: bash; title: ; notranslate">gpg --list-secret-keys</pre>
<p><strong>Encrypting files with the keys:</strong></p>
<p>To encrypt a file simply use the following:</p>
<pre class="brush: bash; title: ; notranslate">gpg --output yourfile.gpg --encrypt --recipient  &quot;Joe Bloggs&quot; yourfile.ext</pre>
<p>To decrypt a file simply use:</p>
<pre class="brush: bash; title: ; notranslate">gpg --output yourfile.ext --decrypt yourfile.gpg</pre>
<p><strong>If your key is stolen?</strong></p>
<p>Now if in the case our private key was <strong>stolen</strong> we would like to be able to renounce / disable the key from working, this can achieved by generating a <strong>revocation certificate</strong> as follows:</p>
<pre class="brush: bash; title: ; notranslate">gpg --output revoke.asc --gen-revoke &lt;keyid&gt;</pre>
<p><strong>* Where keyid is the &#8220;key ID&#8221; of your public certificate (e.g. get it via gpg &#8211;list-keys)</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://serverflux.com/linux/gnupg-gpg-debian-squeeze/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Named Pipes (FIFO&#8217;s) in Linux</title>
		<link>http://serverflux.com/linux/named-pipes-fifos-linux/</link>
		<comments>http://serverflux.com/linux/named-pipes-fifos-linux/#comments</comments>
		<pubDate>Fri, 11 May 2012 07:59:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[fifo]]></category>
		<category><![CDATA[named pipes]]></category>
		<category><![CDATA[pipes]]></category>

		<guid isPermaLink="false">http://serverflux.com/?p=1033</guid>
		<description><![CDATA[What is a named pipe? A named pipe (or FIFO) is simply a way of piping data between applications &#8211; as the name suggests &#8220;in a pipe&#8221;. A named pipe within a Windows environment differs from the Linux varient (FIFO) &#8211; a Windows type is more orientated around server and client communication, while a FIFO [...]]]></description>
			<content:encoded><![CDATA[<p>What is a named pipe?</p>
<p>A named pipe (or FIFO) is simply a way of piping data between applications &#8211; as the name suggests &#8220;in a pipe&#8221;. A named pipe within a Windows environment differs from the Linux varient (FIFO) &#8211; a Windows type is more orientated around server and client communication, while a FIFO can be created on a linux system while allows all applications on the file system to access it like a file. For example:</p>
<p>Create the pipe:</p>
<pre class="brush: bash; title: ; notranslate">mkfifo my_pipe</pre>
<p>Pipe some data into it:</p>
<pre class="brush: bash; title: ; notranslate">gzip -9 -c &lt; my_pipe &gt; archive_out.gz</pre>
<p>Close the pipe:</p>
<pre class="brush: bash; title: ; notranslate">rm my_pipe</pre>
]]></content:encoded>
			<wfw:commentRss>http://serverflux.com/linux/named-pipes-fifos-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install vSphere CLI 4.0 on Debian Squeeze</title>
		<link>http://serverflux.com/linux/install-vsphere-cli-4-0-debian-squeeze/</link>
		<comments>http://serverflux.com/linux/install-vsphere-cli-4-0-debian-squeeze/#comments</comments>
		<pubDate>Thu, 10 May 2012 14:21:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[No Crypt::SSLeay Perl module]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[vmware-install]]></category>
		<category><![CDATA[vsphere cli]]></category>

		<guid isPermaLink="false">http://serverflux.com/?p=1031</guid>
		<description><![CDATA[Firstly download the CLI from the following website: And then untar it to a temp dir e.g.: We will make sure we have all of the per-requisites: And then install vSphere CLI: And finally to use the CLI type the following at prompt: or use the following for help:]]></description>
			<content:encoded><![CDATA[<p>Firstly download the CLI from the following website:</p>
<pre class="brush: bash; title: ; notranslate">http://www.vmware.com/download/download.do?downloadGroup=VCLI50U1</pre>
<p>And then untar it to a temp dir e.g.:</p>
<pre class="brush: bash; title: ; notranslate">
cd /tmp
tar zxvf VMware-vSphere-CLI-4.0.0-161974.x86_64.tar.gz</pre>
<p>We will make sure we have all of the per-requisites:</p>
<pre class="brush: bash; title: ; notranslate">apt-get install libclass-methodmaker-perl libssl-dev perl-doc liburi-perl libxml-libxml-perl libcrypt-ssleay-perl ia32-libs </pre>
<p>And then install vSphere CLI:</p>
<pre class="brush: bash; title: ; notranslate">cd VMware-vSphere-CLI-4.0.0-161974
perl vmware-install.pl</pre>
<p>And finally to use the CLI type the following at prompt:</p>
<pre class="brush: bash; title: ; notranslate">vmware-cmd</pre>
<p>or use the following for help:</p>
<pre class="brush: bash; title: ; notranslate">vmware-cmd --help</pre>
]]></content:encoded>
			<wfw:commentRss>http://serverflux.com/linux/install-vsphere-cli-4-0-debian-squeeze/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add a script / program to run on startup in Debian</title>
		<link>http://serverflux.com/linux/add-script-program-run-startup-debian/</link>
		<comments>http://serverflux.com/linux/add-script-program-run-startup-debian/#comments</comments>
		<pubDate>Sat, 05 May 2012 17:36:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[init.d]]></category>
		<category><![CDATA[startup]]></category>
		<category><![CDATA[update-rc.d]]></category>

		<guid isPermaLink="false">http://serverflux.com/?p=1022</guid>
		<description><![CDATA[In this example we will be starting up rsync in deamon mode on system boot, for this we will firstly need to create an init script: Below is an example init script: We will now setup the permissions for the script: And to make the script run at boot time: and to remove from boot [...]]]></description>
			<content:encoded><![CDATA[<p>In this example we will be starting up rsync in deamon mode on system boot, for this we will firstly need to create an init script:</p>
<pre class="brush: bash; title: ; notranslate">nano /etc/init.d/rsyncd</pre>
<p>Below is an example init script:</p>
<pre class="brush: bash; title: ; notranslate">
#! /bin/sh
# /etc/init.d/rsyncd
#

# Carry out specific functions when asked to by the system
case &quot;$1&quot; in
  start)
    echo &quot;Starting rsyncd...&quot;
    rsync stream tcp nowait rysnc /usr/bin/rsync rsync --daemon
    echo &quot;Done!&quot;
    ;;
  stop)
    echo &quot;Stopping rsyncd...&quot;
    killall rsync
    echo &quot;Done!&quot;
    ;;
  *)
    echo &quot;Usage: /etc/init.d/rsyncd {start|stop}&quot;
    exit 1
    ;;
esac

exit 0
</pre>
<p>We will now setup the permissions for the script:</p>
<pre class="brush: bash; title: ; notranslate">chmod 755 /etc/init.d/rsyncd</pre>
<p>And to make the script run at boot time:</p>
<pre class="brush: bash; title: ; notranslate">update-rc.d rsyncd defaults</pre>
<p>and to remove from boot up use:</p>
<pre class="brush: bash; title: ; notranslate">update-rc.d -f  rsyncd remove</pre>
<p>If in the event (like myself) you created the init script on a Windows system the line endings are different in Linux, and hence you will get a error such as:</p>
<pre class="brush: bash; title: ; notranslate">/bin/sh^M: Bad interpreter: No such file or directory</pre>
<p>You can resolve this by using the &#8220;fromdos&#8221; utility:</p>
<pre class="brush: bash; title: ; notranslate">apt-get install tofrodos
fromdos /path/to/your/file.ext</pre>
<p>This utility converts the input files line endings to linux style line endings.</p>
]]></content:encoded>
			<wfw:commentRss>http://serverflux.com/linux/add-script-program-run-startup-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to setup rsync on Debian Squeeze</title>
		<link>http://serverflux.com/networking/setup-rsync-debian/</link>
		<comments>http://serverflux.com/networking/setup-rsync-debian/#comments</comments>
		<pubDate>Sat, 05 May 2012 11:17:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[rsyncd]]></category>

		<guid isPermaLink="false">http://serverflux.com/?p=1010</guid>
		<description><![CDATA[We will firstly use apt to install the rsync package: We will proceed by create a configuration file rsync (which isn&#8217;t created by default!) The configuration file should be as follows (replacing / adding the appropriate IP(s) / blocks to the &#8220;hosts_allow&#8221; variable and replace the &#8220;path&#8221; variable with the location of where you want [...]]]></description>
			<content:encoded><![CDATA[<p>We will firstly use apt to install the rsync package:</p>
<pre class="brush: bash; title: ; notranslate">apt-get install rsync</pre>
<p>We will proceed by create a configuration file rsync (<strong>which isn&#8217;t created by default!</strong>)</p>
<pre class="brush: bash; title: ; notranslate">nano /etc/rsync.conf</pre>
<p>The configuration file should be as follows (replacing / adding the appropriate IP(s) / blocks to the &#8220;hosts_allow&#8221; variable and replace the &#8220;path&#8221; variable with the location of where you want to rsync to have access.</p>
<pre class="brush: bash; title: ; notranslate">
max connections = 2
log file = /var/log/rsync.log
timeout = 300
[cache]
comment = Cache of Mongrels
path = /backups
read only = no
list = yes
uid = nobody
gid = nogroup
#auth users = mongrel
list = yes
hosts allow = 127.0.0.0/8 192.168.0.0/24
secrets file = /etc/rsync.secrets
</pre>
<p>Create our rysnc users (example of /etc/rsync.secrets):</p>
<pre class="brush: bash; title: ; notranslate">username:password
user:password
administrator:123</pre>
<p>Now lets create our rsync user:</p>
<pre class="brush: bash; title: ; notranslate">useradd rsync -s /usr/sbin/nologin</pre>
<p>Set permissions for the secrets file:</p>
<pre class="brush: bash; title: ; notranslate">chown rsync:rsync /etc/rsync.secrets
chmod 400 rsync.secrets</pre>
<p>We can now run the rsync deamon with the following command line:</p>
<pre class="brush: bash; title: ; notranslate">rsync stream tcp nowait rysnc /usr/bin/rsync rsync --daemon</pre>
]]></content:encoded>
			<wfw:commentRss>http://serverflux.com/networking/setup-rsync-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Driver for SR9600 (USB 2.0 10/100M Ethernet Adapter) Win 7 Vista XP</title>
		<link>http://serverflux.com/drivers/driver-sr9600-usb-2-0-10100m-ethernet-adapter-win-7-vista-xp/</link>
		<comments>http://serverflux.com/drivers/driver-sr9600-usb-2-0-10100m-ethernet-adapter-win-7-vista-xp/#comments</comments>
		<pubDate>Tue, 01 May 2012 14:08:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Drivers]]></category>

		<guid isPermaLink="false">http://serverflux.com/?p=1001</guid>
		<description><![CDATA[Since this driver has not been circulated well, I thought I would save people the time looking for drivers for the SR9600 USB NIC, you can find the drivers below: Windows 7 / Vista / XP / 98 SR9600 Driver The device is commonly marketed under the following name: USB 2.0 Ethernet 10/100 Network LAN [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://serverflux.com/wp-content/uploads/2012/05/usbnic.jpg"><img src="http://serverflux.com/wp-content/uploads/2012/05/usbnic.jpg" alt="" title="usbnic" width="400" height="398" class="alignnone size-full wp-image-1005" /></a></p>
<p>Since this driver has not been circulated well, I thought I would save people the time looking for drivers for the SR9600 USB NIC, you can find the drivers below:</p>
<p><a href="http://serverflux.com/downloads/SR9600_USB_to_LAN_WinAll_Drivers.zip">Windows 7 / Vista / XP / 98 SR9600 Driver</a></p>
<p>The device is commonly marketed under the following name: USB 2.0 Ethernet 10/100 Network LAN RJ45 Adapter</p>
<p>The device ID (found is Device Manager) is as follows: Device ID: USB\VID_0FE6&#038;PID_9700</p>
]]></content:encoded>
			<wfw:commentRss>http://serverflux.com/drivers/driver-sr9600-usb-2-0-10100m-ethernet-adapter-win-7-vista-xp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Configuring NTP on Windows Server 2008 R2</title>
		<link>http://serverflux.com/windows-tutorials/configuring-ntp-windows-server-2008-r2/</link>
		<comments>http://serverflux.com/windows-tutorials/configuring-ntp-windows-server-2008-r2/#comments</comments>
		<pubDate>Tue, 01 May 2012 13:49:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows Tutorials]]></category>
		<category><![CDATA[Windows Tweaks]]></category>
		<category><![CDATA[ntp]]></category>
		<category><![CDATA[w32tm]]></category>
		<category><![CDATA[windows time]]></category>

		<guid isPermaLink="false">http://serverflux.com/?p=999</guid>
		<description><![CDATA[In order to configure a Windows Server (2003/2008) with NTP please see below: Open up an elevated command prompt and enter the following (where XX.XX.XX.XX is the hostname / IP of the NTP server) Now go to the services applet: Locate the &#8220;Windows Time&#8221; Service &#8211; make sure that its &#8220;Startup Type&#8221; is set to [...]]]></description>
			<content:encoded><![CDATA[<p>In order to configure a Windows Server (2003/2008) with NTP please see below:</p>
<p>Open up an elevated command prompt and enter the following (where XX.XX.XX.XX is the hostname / IP of the NTP server)</p>
<pre class="brush: bash; title: ; notranslate">w32tm /config /manualpeerlist:XX.XX.XX.XX,0x8 /syncfromflags:MANUAL</pre>
<p>Now go to the services applet:</p>
<pre class="brush: bash; title: ; notranslate">Start &gt; Run &gt; services.msc</pre>
<p>Locate the &#8220;Windows Time&#8221; Service &#8211; make sure that its &#8220;Startup Type&#8221; is set to automatic (as it is set to &#8220;Manual&#8221; by default!) and stop the service and then start it again. The time should then be synced with the NTP server. If in doubt try this utility to verify it has happened properly:</p>
<p><a href="http://uploading.com/files/1f26ca5d/internettime.zip/">NTP Debug Tool</a></p>
<p>You can also query the status of the Windows Time Service like follows (it will also let you know the last sync time &#8211; if possible):</p>
<pre class="brush: bash; title: ; notranslate">w32tm /query /status</pre>
<p>If you screwed up?</p>
<p>The following will wipe any Time Service configuration, so you can start again from scratch:</p>
<pre class="brush: bash; title: ; notranslate">net stop w32time
w32tm /unregister
w32tm /register</pre>
]]></content:encoded>
			<wfw:commentRss>http://serverflux.com/windows-tutorials/configuring-ntp-windows-server-2008-r2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check a Remote TCP Port in C#</title>
		<link>http://serverflux.com/programming/simple-remote-port-check-c/</link>
		<comments>http://serverflux.com/programming/simple-remote-port-check-c/#comments</comments>
		<pubDate>Mon, 30 Apr 2012 14:10:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[port check]]></category>
		<category><![CDATA[tcp connect]]></category>

		<guid isPermaLink="false">http://serverflux.com/?p=995</guid>
		<description><![CDATA[In order to connect / test to a remote TCP port in C# you can use the following snippet:]]></description>
			<content:encoded><![CDATA[<p>In order to connect / test to a remote TCP port in C# you can use the following snippet:</p>
<pre class="brush: csharp; title: ; notranslate">
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;

namespace PortScanner
{
    class Program
    {
        static void Main(string[] args)
        {

            string hostname = &quot;serverflux.com&quot;;
            int portno = 80;

            try
            {
                TcpClient tcpClient = new TcpClient();
                tcpClient.Connect(hostname, portno);
                Console.WriteLine(&quot;Success!&quot;);
            }

            catch (Exception ex)
            {
                Console.WriteLine(&quot;Error connecting to &quot; + hostname + &quot; on port &quot; + portno);
            }

            Console.ReadKey();
        }
    }
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://serverflux.com/programming/simple-remote-port-check-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

