Networking Forums

Networking Forums > Computer Networking > Linux Networking > NIS yppasswd command and iptables?? RPC: unable to receive

Reply
Thread Tools Display Modes

NIS yppasswd command and iptables?? RPC: unable to receive

 
 
Ryan Hubbard
Guest
Posts: n/a

 
      05-05-2004, 06:10 PM
I was wondering how to set up the iptables on an NIS server so the
yppasswd command will work form a NIS client. Currently with the
iptables on I can invoke the yppasswd command and enter the passsword
information but i get a RPC: Unable to receive error. Witht the
iptables off I no longer get this problem. Can someone help me out.
Thanks

--ERROR--
Changing NIS account information for <USER> on <HOST>.
Please enter old password:
Changing NIS password for <USER> on <HOST>.
Please enter new password:
Please retype new password:
RPC: Unable to receive
 
Reply With Quote
 
 
 
 
PDock
Guest
Posts: n/a

 
      05-06-2004, 01:43 AM
Ryan Hubbard wrote:

> I was wondering how to set up the iptables on an NIS server so the
> yppasswd command will work form a NIS client. Currently with the
> iptables on I can invoke the yppasswd command and enter the passsword
> information but i get a RPC: Unable to receive error. Witht the
> iptables off I no longer get this problem. Can someone help me out.
> Thanks
>
> --ERROR--
> Changing NIS account information for <USER> on <HOST>.
> Please enter old password:
> Changing NIS password for <USER> on <HOST>.
> Please enter new password:
> Please retype new password:
> RPC: Unable to receive

My /etc/services shows rpc to use port 111; so modify your iptables early on
to jump to accept for port 111. THEN use tcp wrappers (host allow/deny) to
limit what ypserv listens to.


 
Reply With Quote
 
P Gentry
Guest
Posts: n/a

 
      05-06-2004, 03:13 AM
(E-Mail Removed) (Ryan Hubbard) wrote in message news:<(E-Mail Removed). com>...
> I was wondering how to set up the iptables on an NIS server so the
> yppasswd command will work form a NIS client. Currently with the
> iptables on I can invoke the yppasswd command and enter the passsword
> information but i get a RPC: Unable to receive error. Witht the
> iptables off I no longer get this problem. Can someone help me out.


Not without seeing your iptable's rules ...

> Thanks
>
> --ERROR--
> Changing NIS account information for <USER> on <HOST>.
> Please enter old password:
> Changing NIS password for <USER> on <HOST>.
> Please enter new password:
> Please retype new password:
> RPC: Unable to receive


Sure by now that others have requested your iptables -L output.

My question is more along the lines of, "why does he run iptables on
this NIS server"?

NIS/rpc can get a little tricky to filter effectively -- in fact, it's
hard enough that no one recommends exposing this service to the
internet partly for this difficulty. Sure there's not a better
"solution" to your problem/concerns?

prg
email above disabled
 
Reply With Quote
 
Ryan Hubbard
Guest
Posts: n/a

 
      05-06-2004, 02:58 PM
Thanks for the replies. Well I already have the appropiate ips in the
host allow/deny and I already have the 111 rule in there. Prg do you
know if it is possible to restrict NIS to only bind to a specific
adapter? Say eth0 and eth1 are the adapters would it be possible to
say to only allow it to bind to eth1? I know this isn't really
securing it since I have heard of hacks to gain access to eth1 through
eth0 but just out of curousity?

(E-Mail Removed) (P Gentry) wrote in message news:<(E-Mail Removed). com>...
> (E-Mail Removed) (Ryan Hubbard) wrote in message news:<(E-Mail Removed). com>...
> > I was wondering how to set up the iptables on an NIS server so the
> > yppasswd command will work form a NIS client. Currently with the
> > iptables on I can invoke the yppasswd command and enter the passsword
> > information but i get a RPC: Unable to receive error. Witht the
> > iptables off I no longer get this problem. Can someone help me out.

>
> Not without seeing your iptable's rules ...
>
> > Thanks
> >
> > --ERROR--
> > Changing NIS account information for <USER> on <HOST>.
> > Please enter old password:
> > Changing NIS password for <USER> on <HOST>.
> > Please enter new password:
> > Please retype new password:
> > RPC: Unable to receive

>
> Sure by now that others have requested your iptables -L output.
>
> My question is more along the lines of, "why does he run iptables on
> this NIS server"?
>
> NIS/rpc can get a little tricky to filter effectively -- in fact, it's
> hard enough that no one recommends exposing this service to the
> internet partly for this difficulty. Sure there's not a better
> "solution" to your problem/concerns?
>
> prg
> email above disabled

 
Reply With Quote
 
P Gentry
Guest
Posts: n/a

 
      05-06-2004, 07:51 PM
(E-Mail Removed) (Ryan Hubbard) wrote in message news:<(E-Mail Removed). com>...
> Thanks for the replies. Well I already have the appropiate ips in the
> host allow/deny and I already have the 111 rule in there. Prg do you
> know if it is possible to restrict NIS to only bind to a specific
> adapter? Say eth0 and eth1 are the adapters would it be possible to
> say to only allow it to bind to eth1? I know this isn't really
> securing it since I have heard of hacks to gain access to eth1 through
> eth0 but just out of curousity?

[snip]

Get a handle on rpc and the portmapper and you'll understand (kinda
sorta) the problems when filtering NIS.

The same problems crop up re: trying to "bind" the apps (ie., port #s)
to a particular interface. With policy routing -- using multiple
routing tables with rulesets "bound" to particular interfaces -- you
can get more control for routing/filtering net traffic.
http://lartc.org/howto/
http://linux-ip.net/
http://www.policyrouting.org/PolicyR...NLINE/TOC.html

But the rpc/NFS (portmapper/NFS) ports are the only ones
pre-determined (by default) with apps registering _random_ port
numbers with the portmapper. There's not really enough info (known
beforehand) in the packet headers to provide effective, granular
filtering of apps that run behind the port mapper.

You can "fix" the ports to pre-determeined #s for some of the apps.
Look here:
http://ike.room17.com/pipermail/ale/...30/002564.html
for an NFS example with iptables (it's for RH though).

These may be useful also:
http://www.lowth.com/LinWiz/nfs_help.html
http://www.redhat.com/docs/manuals/l...erver-nis.html
http://nfs.sourceforge.net/nfs-howto/security.html

With this and policy routing you can get "more" control, but whether
it's enough I can't say. With the other access controls it could work
OK for you. But know that I've never tried to run NFS/NIS on a
multi-homed host /:-)

hth,
prg
email above disabled
 
Reply With Quote
 
Ryan Hubbard
Guest
Posts: n/a

 
      05-10-2004, 06:39 PM
Thanks for the explanation. Can't say that I'm going to try it (most
likely cause I'll mess something up), but I greatly appreciate the
explanation and links.

(E-Mail Removed) (P Gentry) wrote in message news:<(E-Mail Removed). com>...
> (E-Mail Removed) (Ryan Hubbard) wrote in message news:<(E-Mail Removed). com>...
> > Thanks for the replies. Well I already have the appropiate ips in the
> > host allow/deny and I already have the 111 rule in there. Prg do you
> > know if it is possible to restrict NIS to only bind to a specific
> > adapter? Say eth0 and eth1 are the adapters would it be possible to
> > say to only allow it to bind to eth1? I know this isn't really
> > securing it since I have heard of hacks to gain access to eth1 through
> > eth0 but just out of curousity?

> [snip]
>
> Get a handle on rpc and the portmapper and you'll understand (kinda
> sorta) the problems when filtering NIS.
>
> The same problems crop up re: trying to "bind" the apps (ie., port #s)
> to a particular interface. With policy routing -- using multiple
> routing tables with rulesets "bound" to particular interfaces -- you
> can get more control for routing/filtering net traffic.
> http://lartc.org/howto/
> http://linux-ip.net/
> http://www.policyrouting.org/PolicyR...NLINE/TOC.html
>
> But the rpc/NFS (portmapper/NFS) ports are the only ones
> pre-determined (by default) with apps registering _random_ port
> numbers with the portmapper. There's not really enough info (known
> beforehand) in the packet headers to provide effective, granular
> filtering of apps that run behind the port mapper.
>
> You can "fix" the ports to pre-determeined #s for some of the apps.
> Look here:
> http://ike.room17.com/pipermail/ale/...30/002564.html
> for an NFS example with iptables (it's for RH though).
>
> These may be useful also:
> http://www.lowth.com/LinWiz/nfs_help.html
> http://www.redhat.com/docs/manuals/l...erver-nis.html
> http://nfs.sourceforge.net/nfs-howto/security.html
>
> With this and policy routing you can get "more" control, but whether
> it's enough I can't say. With the other access controls it could work
> OK for you. But know that I've never tried to run NFS/NIS on a
> multi-homed host /:-)
>
> hth,
> prg
> email above disabled

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Vista - Unable To Receive ICMP Destination Unreachable - P Tom Windows Networking 0 11-15-2008 05:06 PM
Unable to send/receive signal from wireless adapter. Crackles McFarly Network Routers 0 12-26-2007 10:16 AM
iptables command ignored? AAW Linux Networking 8 09-28-2007 10:11 PM
OTish:Unable to receive email in my domain account Stephen@mailinator.com Broadband 0 07-31-2007 10:57 AM
help with iptables command richard noel fell Linux Networking 3 09-26-2003 06:31 PM



1 2 3 4 5 6 7 8 9 10 11