Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-35989

ss command with `-4` ommit * sockets (that are both ipv6 and ipv4

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-9.4
    • iproute
    • None
    • None
    • Moderate
    • sst_networking_core
    • ssg_networking
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • x86_64
    • None

      What were you trying to do that didn't work?

      I expect the output of `ss -anplt -4` to include sockets that are listening on both ipv4 and ipv6

      in this output:
      ```
      [root@yknmstate-worker-0 ~]# ss -anplt -6
      State   Recv-Q  Send-Q   Local Address:Port    Peer Address:Port  Process                                                      
      LISTEN  0       4096                 :9001               *:      users("kube-rbac-proxy",pid=3574,fd=7))                   
      LISTEN  0       4096              [::]:33725           [::]:*      users("rpc.statd",pid=1500,fd=10))                        
      LISTEN  0       4096                 :9103               *:      users("kube-rbac-proxy",pid=35326,fd=7))                  
      LISTEN  0       4096                 :9105               *:      users("kube-rbac-proxy",pid=35377,fd=7))                  
      LISTEN  0       4096              [::]:111             [::]:*      users("rpcbind",pid=1481,fd=6),("systemd",pid=1,fd=190))  
      LISTEN  0       4096                 :53                 *:      users("coredns",pid=3313,fd=8))                           
      LISTEN  0       128               [::]:22              [::]:*      users("sshd",pid=1362,fd=4))                              
      LISTEN  0       4096                 :18080              :*      users("coredns",pid=3313,fd=7))                           
      LISTEN  0       4096                 :1936               *:      users("openshift-route",pid=6637,fd=3))                   
      LISTEN  0       4096                 :9537               *:      users("crio",pid=2887,fd=11))                             
      LISTEN  0       4096                 :9637               *:      users("kube-rbac-proxy",pid=3838,fd=7))                   
      LISTEN  0       4096                 :10250              :*      users("kubelet",pid=2991,fd=19))                          
      LISTEN  0       4096                 :10256              :*      users("ovnkube",pid=35714,fd=15))                         
      [root@yknmstate-worker-0 ~]# ss -anplt -4
      State   Recv-Q  Send-Q     Local Address:Port    Peer Address:Port Process                                                     
      LISTEN  0       4096             0.0.0.0:37517        0.0.0.0:*     users("rpc.statd",pid=1500,fd=8))                        
      LISTEN  0       4096          10.135.0.2:9107         0.0.0.0:*     users("ovnkube",pid=35714,fd=17))                        
      LISTEN  0       4096           127.0.0.1:10248        0.0.0.0:*     users("kubelet",pid=2991,fd=18))                         
      LISTEN  0       4096     192.168.123.190:38285        0.0.0.0:*     users("crio",pid=2887,fd=12))                            
      LISTEN  0       4096           127.0.0.1:9100         0.0.0.0:*     users("node_exporter",pid=7613,fd=3))                    
      LISTEN  0       4096           127.0.0.1:8797         0.0.0.0:*     users("machine-config-",pid=4122,fd=3))                  
      LISTEN  0       4096             0.0.0.0:111          0.0.0.0:*     users("rpcbind",pid=1481,fd=4),("systemd",pid=1,fd=188)) 
      LISTEN  0       4096             0.0.0.0:80           0.0.0.0:*     users("haproxy",pid=1040869,fd=5))                       
      LISTEN  0       128              0.0.0.0:22           0.0.0.0:*     users("sshd",pid=1362,fd=3))                             
      LISTEN  0       4096             0.0.0.0:443          0.0.0.0:*     users("haproxy",pid=1040869,fd=6))                       
      LISTEN  0       4096           127.0.0.1:29105        0.0.0.0:*     users("ovnkube",pid=35714,fd=18))                        
      LISTEN  0       4096           127.0.0.1:29103        0.0.0.0:*     users("ovnkube",pid=35714,fd=3))                         
      LISTEN  0       4096     192.168.123.190:9100         0.0.0.0:*     users("kube-rbac-proxy",pid=7669,fd=11))    
      ```

      see ipv6 list with sockets such as `*:53` coredns, or the crio one..
      which are missing from the ipv4 output

      Please provide the package NVR for which bug is seen:

      iproute-6.2.0-5.el9.x86_64

      How reproducible:

      everytime

      Steps to reproduce

      1. run a service that listens on both ipv4 and ipv6 such as crio
      2. run `ss -anplt -4`
      3. and compare with `ss -anplt -6`

      Expected results

      `*:` sockets should appear in both ipv6 and ipv4

      Actual results

      they are missing in ipv4

            rh-ee-aclaudi Andrea Claudi
            ykashtan Yuval Kashtan
            Lior Noy (Inactive), Sabina Aledort
            Andrea Claudi Andrea Claudi
            Mingyu Shi Mingyu Shi
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: