Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to move some RPC-based services behind a firewall (the ancient NIS+ service, specifically).
Is there any potential way to control/specify the range of RPC ports so I can more easily firewall this machine? The default behavior seems to be that RPC services can attach anywhere from the mid-30000s to the mid-60000s. Thanks in advance for any assistance.
The answer is yes.
I think you need to add lines such the below in (I have never really set up NIS) one of /etc/sysconfig/network, /etc/sysconfig/nis, /etc/ypserv.conf.
YPSERV_ARGS="-p 10001" # This is obviously the main TCP port you want to fix to a not used high port
YPPASSWDD_ARGS="-p 10002" # If you also run the service that enables the password change
YPXFRD_ARGS="-p 10003" # If you also have replication, slave or secondary NIS servers
I spoke to Oracle/Solaris support about this issue, and there is no way to predefine the port range of the ports the NIS+ services listen on. To move this service behind a hardware firewall that is not stateful, the NIS+ master must be allowed to communicate to basically TCP/UDP 32000 to TCP/UDP 65000 on the NIS+ client.
From Oracle Support, "There is no method of determining which ports will be used, hence there is no way to configure fixed port numbers to achieve this."
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Quote:
Originally Posted by tshikose
Yeah, I had just noticed it is a Solaris / OpenSolaris forum.
But still try what I had suggested.
It might work. Who knows!
It won't as not only Solaris doesn't has/use the configuration files you suggested but the OP is asking about NIS+ which is a very very different beast than NIS.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.