<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: RHEL vs SLES:  netstat -a</title>
	<link>http://ask.metafilter.com/61251/RHEL-vs-SLES-netstat-a/</link>
	<description>Comments on Ask MetaFilter post RHEL vs SLES:  netstat -a</description>
	<pubDate>Tue, 24 Apr 2007 14:54:11 -0800</pubDate>
	<lastBuildDate>Tue, 24 Apr 2007 14:54:11 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: RHEL vs SLES:  netstat -a</title>
		<link>http://ask.metafilter.com/61251/RHEL-vs-SLES-netstat-a</link>	
		<description>Why doesn&apos;t &quot;netstat -a&quot; work with forwarded ports on SLES 10x64? &lt;br /&gt;&lt;br /&gt; I&apos;m doing some testing work on local port forwarding thru ssh.  Everything is going along swimmingly as I develop my tests on my RedHat ES4 box.  When I go to run my test against a SLES10 x64 machine, things don&apos;t work.  I believe I have narrowed down the issue to a problem with &quot;netstat -a&quot; not working as expected on the SLES box.&lt;br&gt;
&lt;br&gt;
On the RHEL4 box:&lt;br&gt;
&lt;br&gt;
[x@localrh .ssh2]$ ssh -oPort=22 -n -L 3434:dragontail:23 x@dragontail sleep 15 &amp;amp;&lt;br&gt;
[1] 26644&lt;br&gt;
[x@localrh .ssh2]$ Authentication successful.&lt;br&gt;
netstat -a | grep 3434&lt;br&gt;
tcp        0      0 localhost.attachmate.c:3434 *:*                         LISTEN&lt;br&gt;
tcp        0      0 ip6-localhost:3434          *:*                         LISTEN&lt;br&gt;
[x@localrh .ssh2]$&lt;br&gt;
[1]+  Done                    ssh -oPort=22 -n -L 3434:dragontail:23 x@dragontail sleep 15&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
But on SLES10 x64 box:&lt;br&gt;
&lt;br&gt;
x@dragontail:~/.ssh2&amp;gt; ssh -oPort=22 -n -L 3434:localrh:23 x@localrh sleep 15 &amp;amp;&lt;br&gt;
[1] 17294&lt;br&gt;
x@dragontail:~/.ssh2&amp;gt; Authentication successful.&lt;br&gt;
x@dragontail:~/.ssh2&amp;gt; netstat -a | grep 3434&lt;br&gt;
x@dragontail:~/.ssh2&amp;gt;&lt;br&gt;
[1]+  Done                    ssh -oPort=22 -n -L 3434:localrh:23 x@localrh sleep 15&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
I&apos;ve verified that the forwarded ports are available and active on the SLES box, just like on the RHEL box, but I can&apos;t figure out why it&apos;s not showing up in my netstat.  A quick googling for SLES and netstat didn&apos;t report any unusual behavior.  Am I missing something obvious?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2007:site.61251</guid>
		<pubDate>Tue, 24 Apr 2007 14:33:09 -0800</pubDate>
		<dc:creator>nomisxid</dc:creator>
		
			<category>RHEL</category>
		
			<category>SLES</category>
		
			<category>x64</category>
		
			<category>netstat</category>
		
			<category>unix</category>
		
			<category>networking</category>
		
			<category>forwarding</category>
		
	</item> <item>
		<title>By: Malor</title>
		<link>http://ask.metafilter.com/61251/RHEL-vs-SLES-netstat-a#922194</link>	
		<description>Have you tested to make sure that the ports are actually forwarding correctly?  There are settings in /etc/ssh/ssh_client that can disable port forwarding.  &lt;br&gt;
&lt;br&gt;
I&apos;d suggest running the first command without the &amp;amp; sign and seeing if you get any output... the &amp;amp; might be consigning some kind of error into the bitbucket.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.61251-922194</guid>
		<pubDate>Tue, 24 Apr 2007 14:54:11 -0800</pubDate>
		<dc:creator>Malor</dc:creator>
	</item><item>
		<title>By: Malor</title>
		<link>http://ask.metafilter.com/61251/RHEL-vs-SLES-netstat-a#922195</link>	
		<description>Sorry, that&apos;s /etc/ssh_config, as opposed to /etc/sshd_config.  The D configures the local daemon... the no-d version does the local client.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.61251-922195</guid>
		<pubDate>Tue, 24 Apr 2007 14:54:56 -0800</pubDate>
		<dc:creator>Malor</dc:creator>
	</item><item>
		<title>By: nomisxid</title>
		<link>http://ask.metafilter.com/61251/RHEL-vs-SLES-netstat-a#922198</link>	
		<description>I did verify that forwarding is active and working as expected, even when it doesn&apos;t show up in the netstat.&lt;br&gt;
  &lt;br&gt;
There is no additional output from ssh when the command is run in the foreground. &lt;br&gt;
&lt;br&gt;
x@dragontail:~/.ssh2&amp;gt; ssh -oPort=22 -n -L 3434:localrh:23 x@localrh sleep 15 &amp;amp;&lt;br&gt;
[1] 18656&lt;br&gt;
x@dragontail:~/.ssh2&amp;gt; Authentication successful.&lt;br&gt;
telnet localhost 3434&lt;br&gt;
Trying 127.0.0.1...&lt;br&gt;
Connected to localhost.&lt;br&gt;
Escape character is &apos;^]&apos;.&lt;br&gt;
Red Hat Enterprise Linux ES release 4 (Nahant Update 4)&lt;br&gt;
Kernel 2.6.9-42.0.10.EL on an i686&lt;br&gt;
&#242;login: x&lt;br&gt;
Password:&lt;br&gt;
Last login: Sat Apr 14 01:52:00 from sugar.attachmate.com&lt;br&gt;
You have new mail.&lt;br&gt;
[x@localrh ~]$</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.61251-922198</guid>
		<pubDate>Tue, 24 Apr 2007 14:58:44 -0800</pubDate>
		<dc:creator>nomisxid</dc:creator>
	</item><item>
		<title>By: nomisxid</title>
		<link>http://ask.metafilter.com/61251/RHEL-vs-SLES-netstat-a#922207</link>	
		<description>FYI, I get the same good results on Solaris 9 and 10.  I get the same lack-of-results on SLES9-i386.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.61251-922207</guid>
		<pubDate>Tue, 24 Apr 2007 15:24:22 -0800</pubDate>
		<dc:creator>nomisxid</dc:creator>
	</item><item>
		<title>By: donut</title>
		<link>http://ask.metafilter.com/61251/RHEL-vs-SLES-netstat-a#922208</link>	
		<description>just an idea, but did you grep for 3434 in netstat -an ?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.61251-922208</guid>
		<pubDate>Tue, 24 Apr 2007 15:26:09 -0800</pubDate>
		<dc:creator>donut</dc:creator>
	</item><item>
		<title>By: nomisxid</title>
		<link>http://ask.metafilter.com/61251/RHEL-vs-SLES-netstat-a#922214</link>	
		<description>How interesting, the &quot;-n&quot; flag did indeed help.  Oddly enough though,&lt;br&gt;
&lt;br&gt;
x@dragontail:~/.ssh2&amp;gt; netstat -an | grep 3434&lt;br&gt;
tcp        0      0 127.0.0.1:3434          0.0.0.0:*               LISTEN&lt;br&gt;
tcp        0      0 ::1:3434                :::*                    LISTEN&lt;br&gt;
x@dragontail:~/.ssh2&amp;gt; netstat -a | wc -l&lt;br&gt;
317&lt;br&gt;
x@dragontail:~/.ssh2&amp;gt; netstat -an | wc -l&lt;br&gt;
318</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.61251-922214</guid>
		<pubDate>Tue, 24 Apr 2007 15:38:17 -0800</pubDate>
		<dc:creator>nomisxid</dc:creator>
	</item><item>
		<title>By: nomisxid</title>
		<link>http://ask.metafilter.com/61251/RHEL-vs-SLES-netstat-a#922216</link>	
		<description>Ah-ha moment.  SLES appearently ships with something called &quot;openCM&quot; with a predefined port of 3434 in /etc/services.  Much is explained.  Thanks all&apos;round for the help.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.61251-922216</guid>
		<pubDate>Tue, 24 Apr 2007 15:41:14 -0800</pubDate>
		<dc:creator>nomisxid</dc:creator>
	</item>
	</channel>
</rss>
