Date: Wed, 19 Nov 1997 17:28:43 -0500 From: Brian McGovern <bmcgover@cisco.com> To: questions@freebsd.org Subject: Changing YPSERV to fixed port... Message-ID: <199711192228.RAA21347@bmcgover-pc.cisco.com>
next in thread | raw e-mail | index | archive | help
Quick question for you. Due to some firewalling that I want to do, I want to be able to bind either ypserv or ypbind (not sure which yet) to a fixed port number, so I can open a firewall hole for the service, so that the firewalled server can provide NIS, without allowing telnet, or other services TO the server. I've been digging through yp_main.c of ypserv, and ran across the line transp = svcudp_create(sock); I looked this up under "man rpc", and found that this will create a new socket, and bind it to an arbitrary port number. I was wondering, therefore, if I wanted to force it to a particular socket, whether I'd have to make the socket() call myself to get a valid TCP socket, then bind() it to a particular port, then call svcudp_create with that new socket descriptor, or am I going about it the hard way? -Brian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711192228.RAA21347>