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

Re: Firewall not applying some rules on startup



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Powell wrote:
> Hello List,
> 
> When my LAMP server first fires up it runs a firewall script, but 
> doesn't seem to be applying the rules that allow NFS connections.  If I 
> then rerun the script manually, the NFS connections work again.
> 
> My script has the following sections (other stuff, hopefully not 
> relevant has been snipped).
> 
> <-- Start Firewall script -->
> # Get the ports for NFS mountd
> NFSPORTS_ARRAY=`rpcinfo -p | awk '/mountd/ {print $4}' | sort | uniq`
> for PORT_NUM in $NFSPORTS_ARRAY
> do
>      if [ ! $NFSPORTS ]
>      then
>          NFSPORTS=$PORT_NUM
>      else
>          NFSPORTS="${NFSPORTS},${PORT_NUM}"
>      fi
> done

I'd say your firewall is starting up before nfs in your rc scripts, so
your NFSPORTS_ARRAY is empty. Try changing the firewall to start up
after nfs.


- --

/phil


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFCWSZRGbd/rBLcaFwRAgTWAJ93vZNORaEvYm+UDEnYbLu3bZsBKgCgz/X2
JSyZdNXyb2LlAr7M5mn0DKg=
=WZMu
-----END PGP SIGNATURE-----



Reply to: