LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-06-2005, 09:40 PM   #1
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
Can't get NIS/YP to work remotely, only locally


portmap, ypbind, ypserv and rpc.yppasswdd (in that order) are running on the server. portmap, ypbind and rpc.yppasswdd are running on the client. I have already run /usr/lib/yp/ypinit -m on the server.

The yp* commands (ypcat, yppasswd) work when run locally on the server,but when run from the client, I get domain not bound errors. eg do_ypcall: clnt_call: RPC: Timed out YPBINDPROC_DOMAIN: Domain not bound, yppasswd: can't find the master ypserver: RPC failure on NIS

The most success I've got is when explicitly specifying the server (-h option)
with ypcat which works.

Code:
NIS client (myclient) config:
rpcinfo -p myserver output:
   program vers proto   port
    100000    2   tcp    111  rpcbind
    100000    2   udp    111  rpcbind
    100004    2   udp    791  ypserv
    100004    1   udp    791  ypserv
    100004    2   tcp    794  ypserv
    100004    1   tcp    794  ypserv
    100007    2   udp    794  ypbind
    100007    1   udp    794  ypbind
    100007    2   tcp    797  ypbind
    100007    1   tcp    797  ypbind
    100009    1   udp    796  yppasswdd

rpcinfo -p localhost output:
   program vers proto   port
    100000    2   tcp    111  rpcbind
    100000    2   udp    111  rpcbind
    100007    2   udp    794  ypbind
    100007    1   udp    794  ypbind
    100007    2   tcp    797  ypbind
    100007    1   tcp    797  ypbind
    100009    1   udp    796  yppasswdd

/etc/yp.conf:
domain localdomain server 192.168.0.1

/etc/ypserv.conf:
dns: no
files: 30
slp: no
slp_timeout: 3600
xfr_check_port: yes
*                          : *       : shadow.byname    : port
*                          : *       : passwd.adjunct.byname : port

/etc/nsswitch.conf:
passwd:     files nis
shadow:     files nis
group:      files nis
hosts:      files nis dns
bootparams: nisplus [NOTFOUND=return] files
ethers:     files nis
netmasks:   files nis
networks:   files nis
protocols:  files nis
rpc:        files nis
services:   files nis
netgroup:   files nis
publickey:  nis
automount:  files nis
aliases:    files nis

NIS Master server (myserver) config:
rpcinfo -p localhost output:
   program vers proto   port
    100000    2   tcp    111  rpcbind
    100000    2   udp    111  rpcbind
    100004    2   udp    791  ypserv
    100004    1   udp    791  ypserv
    100004    2   tcp    794  ypserv
    100004    1   tcp    794  ypserv
    100007    2   udp    794  ypbind
    100007    1   udp    794  ypbind
    100007    2   tcp    797  ypbind
    100007    1   tcp    797  ypbind
    100009    1   udp    796  yppasswdd

/etc/yp.conf:
ypserver 192.168.0.1
domain localdomain server 192.168.0.1

/etc/nsswitch.conf (same as client)

Last edited by ugenn; 03-06-2005 at 09:45 PM.
 
Old 03-07-2005, 04:20 AM   #2
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Original Poster
Rep: Reputation: 30
I solved it. Was a firewall problem. However, the next question is: do rpc daemons bind to random ports, or is there a way to have them listen on a fixed port so that I can determine how to configure my filtering rules?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
centos 4.2: terminal bell works remotely, but not locally hawarden Linux - General 2 10-28-2005 02:39 PM
vsftpd server: can connect locally, not remotely propz Linux - Networking 2 10-24-2005 12:59 AM
tightVNC works locally but not remotely? mikeli Linux - Software 2 02-01-2005 04:48 AM
Reboots locally not remotely dolem98 Linux - Software 2 07-08-2004 09:05 AM
Reboots locally not remotely dolem98 Slackware 10 07-08-2004 02:28 AM


All times are GMT -5. The time now is 07:31 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration