[Gllug] imasq inconsistent

Paul Cupis paul at cupis.co.uk
Thu Nov 14 01:01:50 UTC 2002


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

On Wednesday 13 November 2002 23:14, Branden Faulls wrote:

> Internal network configured on eth0 using 192.168.0.0/24 address space.
>  Physically this is just an ethernet card crossover cabled to a wireless
> access point and linux and m$ boxes  connected over wireless.
>
> Dialup access on ppp0 to ISP.
>
> /etc/ppp/ip-up.d  and /etc/network/if-up.d/   each contain 00ipmasq
> which is:
>
> #!/bin/bash
> #
> # ipmasq.ip-up    Reinitializes the ipmasq settings when PPP comes up
> #
> # v1.0    19 July 1998
> #####
>
> test -x /usr/sbin/ipmasq || exit 0
>
> if [ -e /etc/ipmasq/ppp ]; then
>     /etc/init.d/ipmasq restart
> fi
>
> Of all the combinations, it will only work if I restart the eth0
> interface and rerun ipmasq after starting the ppp0 connection.

Hmmm, in that case, why not have a script /etc/ppp/ip-up.d/00eth0 which 
restarts eth0 (runs ifdown eth0; ifup eth0) and move the script 00ipmasq to 
20ipmasq? That should mean that activating ppp0 will sort that out for you.

Unless you are saying that activating ppp0 (using pon/poff) does not run 
00ipmasq either, in which case you need somehow to find out why it is not. 
Checking any other configuration files in /etc/ppp would be my first port of 
call in this case.

Paul Cupis
- -- 
paul at cupis.co.uk

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE90vYZIzuKV+SHX/kRAoPqAJ4oZvpdk5d1wkfK3+jp3nfAzw7QBQCfVt1Q
r3NG0Xbpt5BgZn5eZyIdrdM=
=D5bx
-----END PGP SIGNATURE-----

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list