LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 10-25-2003, 02:14 PM   #1
aelms
LQ Newbie
 
Registered: Oct 2003
Posts: 1

Rep: Reputation: 0
Automating firewall reload on i/f (ppp) restart


Hi,
on a RH9 machine I have my firewall setup as outline in the IP-Masquerade HOW-TO. My setup is a ppp connection to the Internet and a local ethernet. The masquerading and firewall all work fine.

The one problem I ran into is that I have the ppp connection configured to autmoatically reconnect. When I reconnect and get a new ip address my firewall rules are not automatically flushed and reloaded with the new ip.

To handle this I changed the firewall rules from being loaded at boot time via chkconfig to explicitly called (restart) in /etc/ppp/ip-up.local:

/etc/rc.d/init.d/firewall-2.4 restart


This is the only place it is started. This seems to make the most sense since it will be (re)started whenever my Internet connection comes up. It also works but being relatively new I would like to know if this is an advisable setup? I have searched high and low for anything covering how to flush and restart a firewall when the i/f restarts but all I see is hw to load at boot (via chkconfig or rc.local).

Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to link linux ppp client to windows ppp server? cyz Linux - Networking 2 12-11-2008 05:01 AM
reload rh9 bobby_hawk Linux - Software 1 05-28-2005 09:07 AM
console command, to restart my rc.firewall ruleset w/out restarting my pc linuxboy_inside Linux - Networking 2 01-04-2004 08:24 PM
My iptables/firewall setup for ppp--It may help someone. BearClaw Slackware 7 09-11-2003 03:55 AM
SuSE7.2 Firewall, how do I restart it, without a reboot Led*Zep Linux - Security 1 03-19-2003 09:59 AM


All times are GMT -5. The time now is 09:31 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration