From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: sig-arm@lists.ipfire.org Subject: Re: net-tools Date: Fri, 22 Feb 2013 12:51:21 +0100 Message-ID: <1361533881.28061.303.camel@rice-oxley.tremer.info> In-Reply-To: <51273382.7010301@gmx.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6863829915231976798==" List-Id: --===============6863829915231976798== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Thomas, yes I can see why this is happening. IPFire 2 mainly has IPv6 disabled so there is no need to show those protocols. In IPFire 3, we have ported a lot of additional patches from Fedora that provide things like IPv6 support: http://git.ipfire.org/?p=3Dipfire-3.x.git;a=3Dtree;f=3Dnet-tools;h=3D415379b8= e22ba68b1609c49c94040010273aceb2;hb=3DHEAD What's the motivation behind this? Are you playing around with IPv6? -Michael On Fri, 2013-02-22 at 09:59 +0100, Thomas Ebert wrote: > The netstat command under the arm-Platform is somehow buggy, because it=20 > doesn't implement a tcp6 output and therefore i didn't see all used ports. >=20 > Here are the output of the original command from the original package: > Proto Recv-Q Send-Q Local Address Foreign Address State =20 > PID/Program name > tcp 0 0 0.0.0.0:42592 0.0.0.0:* LISTEN - > tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN =20 > 3411/master > tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN =20 > 3411/master > tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN =20 > 3432/mysqld > tcp 0 0 0.0.0.0:1194 0.0.0.0:* LISTEN =20 > 2946/openvpn > tcp 0 0 192.168.11.5:139 0.0.0.0:* LISTEN 3462/smbd > tcp 0 0 127.0.0.1:139 0.0.0.0:* LISTEN 3462/smbd > tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN =20 > 3411/master > tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN =20 > 3411/master > tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN =20 > 3085/portmap > tcp 0 0 0.0.0.0:43602 0.0.0.0:* LISTEN =20 > 3121/rpc.statd > tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN =20 > 2387/dnsmasq > tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 3257/sshd > tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN 3140/cupsd > tcp 0 0 0.0.0.0:45756 0.0.0.0:* LISTEN =20 > 3108/rpc.mountd > tcp 0 0 192.168.11.5:445 0.0.0.0:* LISTEN 3462/smbd > tcp 0 0 127.0.0.1:445 0.0.0.0:* LISTEN 3462/smbd > tcp 0 0 192.168.11.5:705 192.168.11.3:2049 ESTABLISHED - > tcp 0 148 192.168.11.5:22 192.168.11.13:57738=20 > ESTABLISHED 18509/0 >=20 > That is the output of the version i've self compiled: > tcp 0 0 0.0.0.0:42592 0.0.0.0:* LISTEN - > tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN =20 > 3411/master > tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN =20 > 3411/master > tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN =20 > 3432/mysqld > tcp 0 0 0.0.0.0:1194 0.0.0.0:* LISTEN =20 > 2946/openvpn > tcp 0 0 192.168.11.5:139 0.0.0.0:* LISTEN 3462/smbd > tcp 0 0 127.0.0.1:139 0.0.0.0:* LISTEN 3462/smbd > tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN =20 > 3411/master > tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN =20 > 3411/master > tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN =20 > 3085/portmap > tcp 0 0 0.0.0.0:43602 0.0.0.0:* LISTEN =20 > 3121/rpc.statd > tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN =20 > 2387/dnsmasq > tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 3257/sshd > tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN 3140/cupsd > tcp 0 0 0.0.0.0:45756 0.0.0.0:* LISTEN =20 > 3108/rpc.mountd > tcp 0 0 192.168.11.5:445 0.0.0.0:* LISTEN 3462/smbd > tcp 0 0 127.0.0.1:445 0.0.0.0:* LISTEN 3462/smbd > tcp 0 0 192.168.11.5:705 192.168.11.3:2049 ESTABLISHED - > tcp 0 0 192.168.11.5:22 192.168.11.13:57738=20 > ESTABLISHED 18509/sshd: root(a)pt > tcp6 0 0 :::993 :::* LISTEN 3411/master > tcp6 0 0 :::995 :::* LISTEN 3411/master > tcp6 0 0 :::1001 :::* LISTEN 7816/httpd > tcp6 0 0 :::110 :::* LISTEN 3411/master > tcp6 0 0 :::143 :::* LISTEN 3411/master > tcp6 0 0 :::81 :::* LISTEN 7816/httpd > tcp6 0 0 :::22 :::* LISTEN 3257/sshd > tcp6 0 0 :::631 :::* LISTEN 3140/cupsd > tcp6 0 0 :::444 :::* LISTEN 7816/httpd >=20 > The Problem occurs under IPFire 2.11 and 2.13. >=20 > Here is the output of a test installation IPFire 2.13 i586: > Active Internet connections (servers and established) > Proto Recv-Q Send-Q Local Address Foreign Address State =20 > PID/Program name > tcp 0 0 0.0.0.0:81 0.0.0.0:* LISTEN 4108/httpd > tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN =20 > 3623/dnsmasq > tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 4088/sshd > tcp 0 0 0.0.0.0:444 0.0.0.0:* LISTEN 4108/httpd > tcp 0 300 192.168.11.41:22 192.168.11.13:57750=20 > ESTABLISHED 10723/0 >=20 > You see that the process "httpd" doesn't show in the original netstat=20 > command of a default arm installation (kirkwood or dove). >=20 > The sourcecode i've taken to test compile is taken from the gentoo git=20 > repository > git://git.overlays.gentoo.org/proj/net-tools.git >=20 > No more additional patches are made, i've taken the above code. >=20 > Can anybody check this on his arm-Platform > _______________________________________________ > SIG-ARM mailing list > SIG-ARM(a)lists.ipfire.org > http://lists.ipfire.org/mailman/listinfo/sig-arm --===============6863829915231976798==--