Hi, there is even a better solution. The ip-up and ip-down scipts are called automatically in the appropriate case. But instead of modifieng these scripts and calling your own scipt from there, you could integrate the calls to your scripts into ip-up.local and ip-down.local. If these two exist, they are also automatically called when ip-up/ip-down are executed. The benefit is, that these .local scipts are newer overwritten when your system changes, e.g. pkgs are installed or removed, but when you use the non .local scripts your own changes may break. HtH Appeldorn wrote:
Its quite simple.
There are two ( in real is it one and a link) scripts in /etc/ppp called ip-up and ip-down.
If the interface-ip of your pppX-device changes even if a new connection is up or a running connection comes down these scripts are running.
Simply call the firewallscript in the right start/stop section of the ip-up/down-script
Michael
-----Ursprüngliche Nachricht----- Von: Jost Schoeler [mailto:charly123@web.de] Gesendet: Mittwoch, 27. Juni 2001 17:04 An: suse-security@suse.com Betreff: [suse-security] personal-firewall and an addon-script.
Hello,
who can help me? I have Suse7.1 as NAT-Router and PacketFilter. Its running a PersonalFirewall but after the starting the personal-firewall I modified the system with "ipchains-restore < /etc/ipchains-rules to update the rules, I want to use.
That's working fine, but when my dynamic-IP-Provider have canceled the Connection (after 24 hours) , I must always restart my script.
What can I do after an IP-Change on PPP to do that automatic? Can I put the script in the IP-Up-Script?
Sorry, my english isn't very good ;)
Bye, Jost Schöler
-- To unsubscribe, e-mail: suse-security-unsubscribe@suse.com For additional commands, e-mail: suse-security-help@suse.com
-- To unsubscribe, e-mail: suse-security-unsubscribe@suse.com For additional commands, e-mail: suse-security-help@suse.com