public inbox for sig-arm@lists.ipfire.org
 help / color / mirror / Atom feed
* Re: net-tools
       [not found] <512773E2.8000902@gmx.de>
@ 2013-02-22 16:06 ` Michael Tremer
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Tremer @ 2013-02-22 16:06 UTC (permalink / raw)
  To: sig-arm

[-- Attachment #1: Type: text/plain, Size: 3337 bytes --]

On Fri, 2013-02-22 at 14:34 +0100, Thomas Ebert wrote:
> Oh no. 
> I'm not interested in using ipv6 (not usefull for only 10 Clients),
> but the httpd processes appeard under the tcp6 process list. I'm not
> sure why, because on i586 ipfire they are showing under the tcp
> process list as you can see on the process list of netstat. Maybe it
> isn't a problem of the command "netstat", because if i use the "ss"
> command with the option "ipv4" the processes are not showing: 
> 
> # ss -anp4 
> State       Recv-Q Send-Q
> Local Address:Port                                                Peer
> Address:Port 
> LISTEN      0 128 *:51488 *:*      users:(("rpc.mountd",2976,4)) 
> LISTEN      0 128 192.168.11.5:800 *:*      users:(("squid",2677,37)) 
> LISTEN      0 32 *:993 *:*      users:(("master",3312,13)) 
> LISTEN      0 32 *:995 *:*      users:(("master",3312,25)) 
> LISTEN      0 100 127.0.0.1:10025 *:*      users:(("master",3243,97)) 
> LISTEN      0 50 127.0.0.1:3306 *:*      users:(("mysqld",3364,10)) 
> LISTEN      0 1 *:1194 *:*      users:(("openvpn",2874,7)) 
> LISTEN      0 50 192.168.11.5:139 *:*      users:(("smbd",3397,29)) 
> LISTEN      0 50 127.0.0.1:139 *:*      users:(("smbd",3397,27)) 
> LISTEN      0 32 *:110 *:*      users:(("master",3312,19)) 
> LISTEN      0 32 *:143 *:*      users:(("master",3312,7)) 
> LISTEN      0 128 *:111 *:*      users:(("portmap",2953,5)) 
> LISTEN      0 128 *:43666 *:*      users:(("rpc.statd",2989,8)) 
> LISTEN      0 5 *:53 *:*      users:(("dnsmasq",2470,5)) 
> LISTEN      0 128 *:22 *:*      users:(("sshd",3164,4)) 
> LISTEN      0 128 *:631 *:*      users:(("cupsd",3008,4)) 
> LISTEN      0 100 *:25 *:*      users:(("master",3243,12)) 
> LISTEN      0 50 192.168.11.5:445 *:*      users:(("smbd",3397,28)) 
> LISTEN      0 50 127.0.0.1:445 *:*      users:(("smbd",3397,26)) 
> ESTAB       0 0 192.168.11.5:22 192.168.11.13:59354
> users:(("sshd",3417,5)) 
> 
> # ss -anp6 
> State       Recv-Q Send-Q
> Local Address:Port                                                Peer
> Address:Port 
> LISTEN      0 32 :::993 :::*      users:(("master",3312,16)) 
> LISTEN      0 32 :::995 :::*      users:(("master",3312,28)) 
> LISTEN      0 128 :::1001 :::*
> users:(("httpd",3610,9),("httpd",3608,9)) 
> LISTEN      0 32 :::110 :::*      users:(("master",3312,22)) 
> LISTEN      0 32 :::143 :::*      users:(("master",3312,10)) 
> LISTEN      0 128 :::81 :::*
> users:(("httpd",3610,5),("httpd",3608,5)) 
> LISTEN      0 128 :::22 :::*      users:(("sshd",3164,5)) 
> LISTEN      0 128 :::631 :::*      users:(("cupsd",3008,6)) 
> LISTEN      0 128 :::444 :::*
> users:(("httpd",3610,7),("httpd",3608,7)) 
> 
> It doesn't matter me who the problem relies. I think it is very hard
> to debug and it is easier to expand the command "netstat" with ipv6
> support. 

If course we can do that. Patches can be found in the IPFire 3
repository. You can apply them to the build of net-tools in IPFire 2 and
send me a branch to merge.

It would be a good idea to add all the patches up into one big one or
just pick the one that are really needed.

net-tools if deprecated since 1996. So there is no further development
and we actually removed ifconfig and some other commands from IPFire 3.
If you write scripts, please use the tools from ip-route2 instead.

Michael



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: net-tools
  2013-02-22  8:59 net-tools Thomas Ebert
@ 2013-02-22 11:51 ` Michael Tremer
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Tremer @ 2013-02-22 11:51 UTC (permalink / raw)
  To: sig-arm

[-- Attachment #1: Type: text/plain, Size: 5983 bytes --]

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=ipfire-3.x.git;a=tree;f=net-tools;h=415379b8e22ba68b1609c49c94040010273aceb2;hb=HEAD

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 
> doesn't implement a tcp6 output and therefore i didn't see all used ports.
> 
> Here are the output of the original command from the original package:
> Proto Recv-Q Send-Q Local Address           Foreign Address State       
> 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      
> 3411/master
> tcp        0      0 0.0.0.0:995             0.0.0.0:* LISTEN      
> 3411/master
> tcp        0      0 127.0.0.1:3306          0.0.0.0:* LISTEN      
> 3432/mysqld
> tcp        0      0 0.0.0.0:1194            0.0.0.0:* LISTEN      
> 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      
> 3411/master
> tcp        0      0 0.0.0.0:143             0.0.0.0:* LISTEN      
> 3411/master
> tcp        0      0 0.0.0.0:111             0.0.0.0:* LISTEN      
> 3085/portmap
> tcp        0      0 0.0.0.0:43602           0.0.0.0:* LISTEN      
> 3121/rpc.statd
> tcp        0      0 0.0.0.0:53              0.0.0.0:* LISTEN      
> 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      
> 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 
> ESTABLISHED 18509/0
> 
> 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      
> 3411/master
> tcp        0      0 0.0.0.0:995             0.0.0.0:* LISTEN      
> 3411/master
> tcp        0      0 127.0.0.1:3306          0.0.0.0:* LISTEN      
> 3432/mysqld
> tcp        0      0 0.0.0.0:1194            0.0.0.0:* LISTEN      
> 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      
> 3411/master
> tcp        0      0 0.0.0.0:143             0.0.0.0:* LISTEN      
> 3411/master
> tcp        0      0 0.0.0.0:111             0.0.0.0:* LISTEN      
> 3085/portmap
> tcp        0      0 0.0.0.0:43602           0.0.0.0:* LISTEN      
> 3121/rpc.statd
> tcp        0      0 0.0.0.0:53              0.0.0.0:* LISTEN      
> 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      
> 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 
> 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
> 
> The Problem occurs under IPFire 2.11 and 2.13.
> 
> 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       
> 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      
> 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 
> ESTABLISHED 10723/0
> 
> You see that the process "httpd" doesn't show in the original netstat 
> command of a default arm installation (kirkwood or dove).
> 
> The sourcecode i've taken to test compile is taken from the gentoo git 
> repository
> git://git.overlays.gentoo.org/proj/net-tools.git
> 
> No more additional patches are made, i've taken the above code.
> 
> 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* net-tools
@ 2013-02-22  8:59 Thomas Ebert
  2013-02-22 11:51 ` net-tools Michael Tremer
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Ebert @ 2013-02-22  8:59 UTC (permalink / raw)
  To: sig-arm

[-- Attachment #1: Type: text/plain, Size: 5022 bytes --]

The netstat command under the arm-Platform is somehow buggy, because it 
doesn't implement a tcp6 output and therefore i didn't see all used ports.

Here are the output of the original command from the original package:
Proto Recv-Q Send-Q Local Address           Foreign Address State       
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      
3411/master
tcp        0      0 0.0.0.0:995             0.0.0.0:* LISTEN      
3411/master
tcp        0      0 127.0.0.1:3306          0.0.0.0:* LISTEN      
3432/mysqld
tcp        0      0 0.0.0.0:1194            0.0.0.0:* LISTEN      
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      
3411/master
tcp        0      0 0.0.0.0:143             0.0.0.0:* LISTEN      
3411/master
tcp        0      0 0.0.0.0:111             0.0.0.0:* LISTEN      
3085/portmap
tcp        0      0 0.0.0.0:43602           0.0.0.0:* LISTEN      
3121/rpc.statd
tcp        0      0 0.0.0.0:53              0.0.0.0:* LISTEN      
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      
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 
ESTABLISHED 18509/0

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      
3411/master
tcp        0      0 0.0.0.0:995             0.0.0.0:* LISTEN      
3411/master
tcp        0      0 127.0.0.1:3306          0.0.0.0:* LISTEN      
3432/mysqld
tcp        0      0 0.0.0.0:1194            0.0.0.0:* LISTEN      
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      
3411/master
tcp        0      0 0.0.0.0:143             0.0.0.0:* LISTEN      
3411/master
tcp        0      0 0.0.0.0:111             0.0.0.0:* LISTEN      
3085/portmap
tcp        0      0 0.0.0.0:43602           0.0.0.0:* LISTEN      
3121/rpc.statd
tcp        0      0 0.0.0.0:53              0.0.0.0:* LISTEN      
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      
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 
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

The Problem occurs under IPFire 2.11 and 2.13.

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       
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      
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 
ESTABLISHED 10723/0

You see that the process "httpd" doesn't show in the original netstat 
command of a default arm installation (kirkwood or dove).

The sourcecode i've taken to test compile is taken from the gentoo git 
repository
git://git.overlays.gentoo.org/proj/net-tools.git

No more additional patches are made, i've taken the above code.

Can anybody check this on his arm-Platform

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-02-22 16:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <512773E2.8000902@gmx.de>
2013-02-22 16:06 ` net-tools Michael Tremer
2013-02-22  8:59 net-tools Thomas Ebert
2013-02-22 11:51 ` net-tools Michael Tremer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox