<?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>itsMine &#187; tip</title>
	<atom:link href="http://blog.itsmine.co.uk/tag/tip/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.itsmine.co.uk</link>
	<description></description>
	<lastBuildDate>Sun, 18 Apr 2010 02:28:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<atom:link rel="next" href="http://blog.itsmine.co.uk/tag/tip/feed/?page=2" />

		<item>
		<title>How to force mountd to use a static port on Red Hat</title>
		<link>http://blog.itsmine.co.uk/2009/04/03/how-to-force-mountd-to-use-a-static-port-on-red-hat/</link>
		<comments>http://blog.itsmine.co.uk/2009/04/03/how-to-force-mountd-to-use-a-static-port-on-red-hat/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 13:06:16 +0000</pubDate>
		<dc:creator>rob</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://blog.itsmine.co.uk/2009/04/03/how-to-force-mountd-to-use-a-static-port-on-red-hat/</guid>
		<description><![CDATA[So I&#8217;ve been working with a very strict firewall on an AIX host which is mouting an NFS share on Red Hat 5.3 hosts and since NFSD on Red Hat utilises the RPC protocol (port 111) and NFS (port 2049) which are static, it unfortunately also uses rpc.mountd (aka mountd) which (by default) doesn&#8217;t run ]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve been working with a very strict firewall on an AIX host which is mouting an NFS share on Red Hat 5.3 hosts and since NFSD on Red Hat utilises the RPC protocol (port 111) and NFS (port 2049) which are static, it unfortunately also uses rpc.mountd (aka mountd) which (by default) doesn&#8217;t run using a static port, instead, every time it starts up, it asks the RPC portmap service for a free port number, and uses that.</p>
<p>I just couldn&#8217;t have this happening on Red Hat, since the AIX firewall is locked down as tight as can be, with even anomalous outbound tcp/ack&#8217;s being disallowed. I know that the portmap service gets its free port numbers from (among other sources) /etc/services so I decided to grab the current port number that mountd was running on&#8230;
<pre class="brush: bash;">rpcinfo -p | grep mountd</pre>
<p>and make an entry into /etc/services in the hope that rpc.mountd would see the mountd entry and automatically use that port number, and only that port number, such an example entry:
<pre class="brush: plain;">mountd          672/tcp                         # Rob's Edit - binds mountd to a static port
mountd          672/udp                         # Rob's Edit - binds mountd to a static port</pre>
<p>I restarted portmap and nfs, and ran rpcinfo again&#8230;
<pre class="brush: bash;">service portmap restart
service nfs restart
rpcinfo -p | grep mountd
</pre>
<p>&#8230; and lo-and-behold rpc.mountd had binded to the static port specified.</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=823fec30-f2f0-81f8-ba1c-60f15509eacc" /></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.itsmine.co.uk/2009/04/03/how-to-force-mountd-to-use-a-static-port-on-red-hat/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
