DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2010-02-09 11:55:58

kelad
Member
Registered: 2009-07-28
Posts: 22

NFS: hosts.deny, hosts.allow

Hi, big n00b here. I've successfully got NFS running on my DNS-313 with my WDTV live. Reading the info from nfs.sourceforge.net as recommended by Fonz, it has some good stuff about security. I'm going through it but can't find the files hosts.deny and hosts.allow on the DNS-313. Do i have to install extra packages to get these as indicated in post http://dns323.kood.org/forum/viewtopic.php?id=2666. I assume this will work ok with the DNS-313 ? Also, how can i get command 'rpcinfo' to work ?
Thanks heaps !

Offline

 

#2 2010-02-09 12:07:29

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: NFS: hosts.deny, hosts.allow

rpcinfo is part of glibc which is not used in ffp. Use rpcinfo on another Linux computer (any Live CD should do).

/etc/hosts.deny and /etc/hosts.allow are not installed by ffp. If you want to use them, create them yourself. See hosts_access(5) (man 5 hosts_access) or google for documentation.
Note that /etc will be reset on reboot, so you need to reinstall the files after each reboot.

Offline

 

#3 2010-02-09 22:51:02

marek.koszalin
Member
Registered: 2009-12-31
Posts: 34

Re: NFS: hosts.deny, hosts.allow

1. Create hosts.allow and hosts.deny in /ffp/etc
2. put in fun_plug script under:

# create /ffp link
echo "ln -snf $FFP_PATH /ffp"
ln -snf $FFP_PATH /ffp
...
ln -snf /mnt/HD_a4/ffp/etc/hosts.allow /etc/hosts.allow
ln -snf /mnt/HD_a4/ffp/etc/hosts.deny /etc/hosts.deny
...

3. In hosts.allow and hosts.deny put your roules
4. Remember, that hosts.deny is more important then hosts.allow.

After reboot you will be yours files always.

Thats all

Last edited by marek.koszalin (2010-02-09 23:11:44)

Offline

 

#4 2010-02-10 10:46:37

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: NFS: hosts.deny, hosts.allow

marek.koszalin wrote:

2. put in fun_plug script under:

No, please leave fun_plug alone. Use /ffp/etc/fun_plug.local, instead. (There's an example in ffp/etc/examples)

Offline

 

#5 2010-02-10 11:03:35

marek.koszalin
Member
Registered: 2009-12-31
Posts: 34

Re: NFS: hosts.deny, hosts.allow

Ok - this is a good solve too smile

Offline

 

#6 2010-02-10 12:28:27

kelad
Member
Registered: 2009-07-28
Posts: 22

Re: NFS: hosts.deny, hosts.allow

Thanks for info.. will give it a crack !

Offline

 

#7 2010-06-26 12:43:47

kelad
Member
Registered: 2009-07-28
Posts: 22

Re: NFS: hosts.deny, hosts.allow

This worked great guys, thats for that. For other N00Bs, here are more specifics:

copied fun_plug.local from /ffp/etc/examples to /ffp/etc; this file has the following in it.
---------------------------------------------------------------------------
#!/ffp/bin/sh
PATH=/ffp/sbin:/ffp/bin

ln -snf /mnt/HD_a4/ffp/etc/hosts.allow /etc/hosts.allow
ln -snf /mnt/HD_a4/ffp/etc/hosts.deny /etc/hosts.deny

---------------------------------------------------------------------------

Create 2 files in /ffp/etc called hosts.allow and hosts.deny
Here are mine ( I only want 192.168.0.11 to have access):

hosts.allow:
portmap: 192.168.0.11

hosts.deny:
portmap: ALL

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB