[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: NFS + iptables: (re)boot sequence



On Fri, Jul 28, 2006 at 03:08:33AM +1000, Joseph Le-Phan wrote:
> Hello,
>    
> I'm trying to implement some iptables rules for my
> system. Unfortunately, (on etch) it appears that the boot sequence
> doesn't allow for nfs mounts to be located (as nfs+portmap appear to
> get started _before_ I've established an internet connection with my
> network interface which relies on dhcp.)
> 
> Is there a way to specify the boot-order so that nfs-mounts are only
> possible once the network is up and running?
> 
You can change the order in which things are started at boot by
rearranging the symlinks in /etc/rc2.d/ (assuming you boot run level 2
by default).

> Also, related somewhat to reboot sequence, I have an 'inactive' ruleset
> for iptables that pretty much denies all internet access when I go for a
> shutdown. Unfortunately, it appears that nfs mounts aren't unmounted
> before then, and so i portmap complains when it's time for it to unmount
> the nfs shares (as there's no more internet connection) and stalls the
> shutdown process indefinitely.
> 
> Is it possible to prevent this from happening?
> 
Not sure.

-Roberto
-- 
Roberto C. Sanchez
http://familiasanchez.net/~roberto

Attachment: signature.asc
Description: Digital signature


Reply to: