En:HOWTO: Setting Guarddog Firewall init script

From Sabayon Wiki
Revision as of 22:09, 12 February 2009 by Zambayoni (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

1. Install Guarddog with Stritz Package Manager

2. In terminal run guarddog (use su after) and configure rules. Guarddog generate a file /etc/rc.firewall.

3. Create this file and gave it chmod +x: [1]

File: /etc/init.d/firewall
 depend() { 
          after iptables
	  before ddclient 
 start() { 
          ebegin "Applying firewall rules - Guarddog" 
          eend $? "Firewall rules not set" 

4. Now should register the firewall script in terminal (use su after)

# rc-update add firewall default

5. Now you rebooting the system and enjoy!!


[1] The script was created by jakomo in http://bugs.gentoo.org/182373.
[2] This guide is derivated from http://forum.sabayonlinux.org/viewtopic.php?f=59&p=91840
[3] http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=4 how create init scripts.

--zambayoni 18:09, 12 February 2009 (UTC)