-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
rhel-8.6.0
-
None
-
Moderate
-
rhel-sst-cs-databases
-
5
-
False
-
-
None
-
None
-
None
-
None
-
If docs needed, set a value
-
-
Unspecified
-
None
Description of problem:
ypxfrd is not using a static port as configured in /etc/sysconfig/network .
Version-Release number of selected component (if applicable):
ypserv-4.1-1.el8.x86_64
RHEL8.6
How reproducible:
Steps to Reproduce:
- From my testbox:
=======
1. Configure NIS server on RHEL8.6 machine
2. Add below in "/etc/sysconfig/network"
-----------
- Created by anaconda
NISDOMAIN = rh8nis.local #<== change NIS domain a per the environment
YPSERV_ARGS="-p 834"
YPXFRD_ARGS="-p 835"
----------
Actual results:
ypxfrd bound to some other port but not on static configured one.
=======
. # rpcinfo -p
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100009 1 udp 1010 yppasswdd
100009 1 tcp 1010 yppasswdd
100007 3 udp 1017 ypbind
100007 2 udp 1017 ypbind
100007 1 udp 1017 ypbind
100007 3 tcp 1017 ypbind
100007 2 tcp 1017 ypbind
100007 1 tcp 1017 ypbind
100004 2 udp 834 ypserv
100004 1 udp 834 ypserv
100004 2 tcp 834 ypserv
100004 1 tcp 834 ypserv
600100069 1 udp 836 fypxfrd #<== different from static configured port
600100069 1 tcp 836 fypxfrd
=========
Expected results:
ypxfrd should bind to the port 835 as configured in "/etc/sysconfig/network"
Additional info:
- Also, tried with selinux in permissive mode but results were same in RHEL8.6
- I have tried to configure the same on RHEL7.9 to verify and observed that it is working as expected i.e bound to the static configured port:
- From RHEL7.9 testbox
-------------------
[root@nis ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.9 (Maipo)
[root@nis ~]# cat /etc/sysconfig/network
- Created by anaconda
NISDOMAIN = nis.master.com
YPSERV_ARGS="-p 834"
YPXFRD_ARGS="-p 835" <=======
[root@nis ~]# getenforce
Permissive
[root@nis ~]# rpcinfo -p
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100009 1 udp 788 yppasswdd
100007 2 udp 857 ypbind
100007 1 udp 857 ypbind
100007 2 tcp 860 ypbind
100007 1 tcp 860 ypbind
600100069 1 udp 835 fypxfrd <========
600100069 1 tcp 835 fypxfrd
100004 2 udp 834 ypserv
100004 1 udp 834 ypserv
100004 2 tcp 834 ypserv
100004 1 tcp 834 ypserv
[root@nis ~]#
-------------------
- external trackers