At 11:11 am, Monday, January 7 2002, Alister Waller mumbled: > problem I have is when the internet is not up (phone line has dropped etc) > and one of the remote users dials in then that user is given ppp0 for > themselves and then the dialup for the internet wont work as it has to use > ppp1 or ppp2. The firewall scripts (IP tables) uses ppp0. > > anyone got the same sort of scenario and has an outline of the best > solution? > > I was thinking that if it was possible to assign ppp1 or ppp2 to the dialup > users statically and leave ppp0 free that it would solve the problem?? is > this possible...from what I can find on the net, probably not. > One real solution is to bring up the firewall script with a ip-up script. You could most likely test $4, which is your local address, to see if it's similar to the one your ISP gives you, and then run the firewall up on that interface.
From man pppd:
/etc/ppp/ip-up
A program or script which is executed when the link
is available for sending and receiving IP packets
(that is, IPCP has come up). It is executed with
the parameters
interface-name tty-device speed local-IP-address
remote-IP-address ipparam
--
Steve
Real programmers use chmod +x /dev/random and cross their fingers.
msg19233/pgp00000.pgp
Description: PGP signature
