Unix Technical Forum

Firewall Question

This is a discussion on Firewall Question within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I was wondering how to execute /etc/rc.d/rc.sfirewall automaticaly when my ppp0 connects. The problem is that when it disconnects, ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 01:50 PM
brian
 
Posts: n/a
Default Firewall Question

I was wondering how to execute /etc/rc.d/rc.sfirewall automaticaly when
my ppp0 connects.
The problem is that when it disconnects, it automatically reconnects,
but i need to load that script to access the internet
any help would be great
thanks
Brian
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 01:50 PM
J. Random
 
Posts: n/a
Default Re: Firewall Question

On Tue, 17 Aug 2004 23:57:07 +0000, brian wrote:

> I was wondering how to execute /etc/rc.d/rc.sfirewall automaticaly when
> my ppp0 connects.



Assuming you use pppd:
# ln -s /etc/rc.d/rc.firewall /etc/ppp/ip-up
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 01:51 PM
Nuno Paquete
 
Posts: n/a
Default Re: Firewall Question

brian wrote:

> I was wondering how to execute /etc/rc.d/rc.sfirewall automaticaly when
> my ppp0 connects.
> The problem is that when it disconnects, it automatically reconnects,
> but i need to load that script to access the internet
> any help would be great
> thanks
> Brian


Hi Brian.
Search inside /etc/rc.d/rc.inet2 file for this lines:
if [ -x /etc/rc.d/rc.firewall ]; then
/etc/rc.d/rc.firewall start
fi

Uncomment it and it will work.
You should call the script from rc.inet2 because the script should always
run after all network cards have started (rc.inet1).
Be sure that your script name match with the lines above (rc.firewall) and
you have execution permissions (chmod 755 rc.firewall).
I hope this could help.

Regards,
Nuno Paquete
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:19 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com