Re: nfs-kernel-server and firewalls

2004-07-04 Thread Tadeusz Bak
On Fri, 2 Jul 2004, Tom Allison wrote: > I guess what I should be asking is where/how do I bind specific ports? > > I can't find anything in the man pages (at least the ones I'm looking > at) to set this up. I am running the kernel based server so I may have What I had in mind was to add the o

Re: nfs-kernel-server and firewalls

2004-07-03 Thread Tom Allison
Ernest Johanson wrote: Right. It can go in /etc/init.d or in /etc/network/interfaces. Probably better in interfaces so the rules are applied as soon as the interfaces are up. I got the distinct impression that running firewall scripts using the /etc/network/if-up.d and /etc/network/if-down.d dire

Re: nfs-kernel-server and firewalls

2004-07-03 Thread Ernest Johanson
Right. It can go in /etc/init.d or in /etc/network/interfaces. Probably better in interfaces so the rules are applied as soon as the interfaces are up. On Sat, 3 Jul 2004, Tom Allison wrote: > Ernest Johanson wrote: > > Good refinement to tighten things up. > > > > > > Thanks. > > I thought it w

Re: nfs-kernel-server and firewalls

2004-07-02 Thread Tom Allison
Ernest Johanson wrote: Good refinement to tighten things up. Thanks. I thought it would be necessary to re-run rpcinfo each time I booted because I can't find anything that says these ports are a certainty. That, and I only have NFS 3 support that I have to worry about. # NFS # First you open

Re: nfs-kernel-server and firewalls

2004-07-02 Thread Ernest Johanson
Good refinement to tighten things up. On Fri, 2 Jul 2004, Tom Allison wrote: > Ernest Johanson wrote: > > Been following this thread and understand that the goal is to configure a > > firewall to control access to the ports used for NFS. If so, then suggest > > the following: > > > > #!/bin/sh >

Re: nfs-kernel-server and firewalls

2004-07-02 Thread Tom Allison
Ernest Johanson wrote: Been following this thread and understand that the goal is to configure a firewall to control access to the ports used for NFS. If so, then suggest the following: #!/bin/sh NFSPORTS=`rpcinfo -p | awk '/tcp/||/udp/ {print $4}' | sort | uniq` for PORT_NUM in $NFSPORTS do

Re: nfs-kernel-server and firewalls

2004-07-02 Thread Alvin Oga
On Fri, 2 Jul 2004, Tom Allison wrote: > /etc/exports: > /var/www192.168.1.0/24(rw,no_root_squash) > > These are identical on both machines > /etc/hosts.allow is identical on both machines (empty) to allow only certain machines to connect and disallow others on the NFS server: server

Re: nfs-kernel-server and firewalls

2004-07-02 Thread Ernest Johanson
Been following this thread and understand that the goal is to configure a firewall to control access to the ports used for NFS. If so, then suggest the following: #!/bin/sh NFSPORTS=`rpcinfo -p | awk '/tcp/||/udp/ {print $4}' | sort | uniq` for PORT_NUM in $NFSPORTS do iptables -A INPUT -j

Re: nfs-kernel-server and firewalls

2004-07-02 Thread Thomas Adam
--- [EMAIL PROTECTED] wrote: > But I'm wondering what it is that I'm missing. > Is this the difference between kernel and user nfs servers? > Are there some args to pass at modprobe time? Not in terms of options -- NFS configuration is done in the userland level usually. -- Thomas Adam = "

Re: nfs-kernel-server and firewalls

2004-07-02 Thread tallison
> On Fri, 02 Jul 2004 05:10:10 +0200, Tom Allison wrote: >> Portmapper sits on one port, but it's redirecting the nfs connection all >> over the place. I can't seem to nail it down to one set of ports. > > The only way I can think of sorting this out would be to allow any > packets between the ser

Re: nfs-kernel-server and firewalls

2004-07-02 Thread Stephen Patterson
On Fri, 02 Jul 2004 05:10:10 +0200, Tom Allison wrote: > Portmapper sits on one port, but it's redirecting the nfs connection all > over the place. I can't seem to nail it down to one set of ports. The only way I can think of sorting this out would be to allow any packets between the server and

Re: nfs-kernel-server and firewalls

2004-07-02 Thread Tom Allison
Tadeusz Bak wrote: On Thu, 1 Jul 2004, Tom Allison wrote: Portmapper sits on one port, but it's redirecting the nfs connection all over the place. I can't seem to nail it down to one set of ports. The rpc services called by portmaper can be binded to specific ports, see man pages for details. To

Re: nfs-kernel-server and firewalls

2004-07-02 Thread Tom Allison
Tadeusz Bak wrote: On Thu, 1 Jul 2004, Tom Allison wrote: Portmapper sits on one port, but it's redirecting the nfs connection all over the place. I can't seem to nail it down to one set of ports. The rpc services called by portmaper can be binded to specific ports, see man pages for details. To

Re: nfs-kernel-server and firewalls

2004-07-01 Thread Tadeusz Bak
On Thu, 1 Jul 2004, Tom Allison wrote: > Portmapper sits on one port, but it's redirecting the nfs connection all > over the place. I can't seem to nail it down to one set of ports. The rpc services called by portmaper can be binded to specific ports, see man pages for details. To find out wha

Re: nfs-kernel-server and firewalls

2004-07-01 Thread Tom Allison
Thomas Adam wrote: --- Tom Allison <[EMAIL PROTECTED]> wrote: What are my options? Do I have to hard code the port number into the /etc/default/nfs-kernel-server and the client fstab files and the iptables script? What about changing the port that portmapper listens on? Portmapper sits on one

Re: nfs-kernel-server and firewalls

2004-07-01 Thread Thomas Adam
--- Tom Allison <[EMAIL PROTECTED]> wrote: > What are my options? > > Do I have to hard code the port number into the > /etc/default/nfs-kernel-server and the client fstab files and the > iptables script? What about changing the port that portmapper listens on? -- Thomas Adam = "The Lin