<?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>ServerAdminBlog &#187; Networks</title>
	<atom:link href="http://www.serveradminblog.com/category/networks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.serveradminblog.com</link>
	<description>Short Circuit...</description>
	<lastBuildDate>Mon, 06 Sep 2010 10:29:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Check what ports are open</title>
		<link>http://www.serveradminblog.com/2010/07/check-what-ports-are-open/</link>
		<comments>http://www.serveradminblog.com/2010/07/check-what-ports-are-open/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 09:37:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networks]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.serveradminblog.com/?p=127</guid>
		<description><![CDATA[To see what ports are open in your Linux box, you can use nmap port scanner or you can use netstat. nmap can be used with following command: # nmap -sS -O 127.0.0.1 The answer will be something like: Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2010-07-08 11:31 CEST Interesting ports on localhost.localdomain (127.0.0.1): Not [...]]]></description>
			<content:encoded><![CDATA[<p>To see what ports are open in your Linux box, you can use nmap port scanner or you can use netstat. </p>
<p>nmap can be used with following command:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># nmap -sS -O 127.0.0.1</pre></div></div>

<p>The answer will be something like:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2010-07-08 11:31 CEST
Interesting ports on localhost.localdomain (127.0.0.1):
Not shown: 1663 closed ports
PORT     STATE SERVICE
22/tcp   open  ssh
25/tcp   open  smtp
80/tcp   open  http
110/tcp  open  pop3
111/tcp  open  rpcbind
143/tcp  open  imap
993/tcp  open  imaps
995/tcp  open  pop3s
3306/tcp open  mysql
8009/tcp open  ajp13
8080/tcp open  http-proxy
8443/tcp open  https-alt
No exact OS matches for host (If you know what OS is running on it, see http://www.insecure.org/cgi-bin/nmap-submit.cgi).
......
&nbsp;
Uptime 15.472 days (since Wed Jun 23 00:12:46 2010)
&nbsp;
Nmap finished: 1 IP address (1 host up) scanned in 9.558 seconds</pre></div></div>

<p>and nmap can be used to scan remote hosts (keep in mind that many admins will notice this as hack attempt). Simple replace 127.0.0.1 with host IP address. </p>
<p>Another way to check open ports is via netstat. Netstat can show hidden ports and programs associated with ports. Simple execute next command as root:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># netstat -nap</pre></div></div>

<p>The output list can be very long (depending from your network activity).</p>
<p>Note: Use this tips carefully. I&#8217;m not responsible for any potential damage&#8230; </p>
]]></content:encoded>
			<wfw:commentRss>http://www.serveradminblog.com/2010/07/check-what-ports-are-open/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>tftp server on CentOS/RHEL/Fedora</title>
		<link>http://www.serveradminblog.com/2010/01/tftp-server-on-centosrhelfedora/</link>
		<comments>http://www.serveradminblog.com/2010/01/tftp-server-on-centosrhelfedora/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 23:16:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networks]]></category>
		<category><![CDATA[Other]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.serveradminblog.com/?p=49</guid>
		<description><![CDATA[Trivial File Transfer Protocol (TFTP) is a file transfer protocol, with the functionality of a very basic form of File Transfer Protocol (FTP). It was first defined in 1980 and it is used for operations like firmware upgrade on network devices. This post won&#8217;t be the history lesson . To install tftp server on RH [...]]]></description>
			<content:encoded><![CDATA[<p>Trivial File Transfer Protocol (TFTP) is a file transfer protocol, with the functionality of a very basic form of File Transfer Protocol (FTP). It was first defined in 1980 and it is used for operations like firmware upgrade on network devices. This post won&#8217;t be the history lesson <img src='http://www.serveradminblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . To install tftp server on RH based distros, follow the next steps</p>
<p>Install tftp-server with</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># yum install tftp-server xinetd</pre></div></div>

<p>Now you will need to set up some things before you can start and use tftp server</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># nano /etc/xinetd.d/tftp</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">service tftp
{
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -s /var/lib/tftpboot
        disable                 = no
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}</pre></div></div>

<p>To enable tftp server, set “disable” to no. Also, check server_args. In this case, all files will be/must be in /var/lib/tftpboot. If you have any problems with permissions, try to chmod 777 /var/lib/tftpboot and fix perms later. </p>
<p>Restart xinetd to apply settings you just made</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># service xinetd restart</pre></div></div>

<p>Setting &#8220;disable&#8221; to yes will disable tftp server and for security reasons, you should disable tftp whenever you don&#8217;t need it. </p>
<p>TFTP has been implemented on top of the User Datagram Protocol (UDP) using port number 69. TFTP is designed to be small and easy to implement, therefore, lacks most of the features of a regular FTP. TFTP only reads and writes files (or mail) from/to a remote server. It cannot list directories, and currently has no provisions for user authentication.</p>
<p>In TFTP, any transfer begins with a request to read or write a file, which also serves to request a connection. If the server grants the request, the connection is opened and the file is sent in fixed length blocks of 512 bytes. Each data packet contains one block of data, and must be acknowledged by an acknowledgment packet before the next packet can be sent. A data packet of less than 512 bytes signals termination of a transfer. If a packet gets lost in the network, the intended recipient will timeout and may retransmit his last packet (which may be data or an acknowledgment), thus causing the sender of the lost packet to retransmit that lost packet. The sender has to keep just one packet on hand for retransmission, since the lock step acknowledgment guarantees that all older packets have been received. Notice that both machines involved in a transfer are considered senders and receivers. One sends data and receives acknowledgments, the other sends acknowledgments and receives data.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.serveradminblog.com/2010/01/tftp-server-on-centosrhelfedora/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
