Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th March 2007, 18:40
daveb daveb is offline
Senior Member
 
Join Date: Dec 2006
Location: St Louis Mo
Posts: 272
Thanks: 43
Thanked 41 Times in 37 Posts
Default bastille firewall help needed

Hello,

I have a question to do with the bastille firewall. The system Ubuntu 6.10, ispconfig 2.2.11. I have a few custom rules that I use via /etc/Bastille/firewall.d/post-rule-setup.sh. My problem is everytime the server is rebooted I must create a directory /var/lock/subsys otherwise I get the error
"touch: cannot touch `/var/lock/subsys/bastille-firewall': No such file or directory"
My question is how can I keep from having the dir /var/lock/subsys removed everytime the server is rebooted?
Reply With Quote
Sponsored Links
  #2  
Old 28th March 2007, 16:55
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

You could modify /etc/init.d/ispconfig_server. Change

Code:
case "$1" in
    start)
        echo "Starting ISPConfig system..."
        {INITDIR}/mysqld start &> /dev/null
        {INITDIR}/mysql start &> /dev/null
        sleep 3
        /root/ispconfig/httpd/bin/apachectl startssl
        /root/ispconfig/sv/ispconfig_wconf &> /dev/null &
        /root/ispconfig/php/php -q /root/ispconfig/scripts/shell/firewall.php
to
Code:
case "$1" in
    start)
        echo "Starting ISPConfig system..."
        {INITDIR}/mysqld start &> /dev/null
        {INITDIR}/mysql start &> /dev/null
        sleep 3
        /root/ispconfig/httpd/bin/apachectl startssl
        /root/ispconfig/sv/ispconfig_wconf &> /dev/null &
        mkdir -p /var/lock/subsys
        /root/ispconfig/php/php -q /root/ispconfig/scripts/shell/firewall.php
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 28th March 2007, 21:27
daveb daveb is offline
Senior Member
 
Join Date: Dec 2006
Location: St Louis Mo
Posts: 272
Thanks: 43
Thanked 41 Times in 37 Posts
 
Default

falko,
Thank you, works like a charm.
Reply With Quote
Reply

Bookmarks

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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
High Availability (Load Balancing) behind a firewall geek.de.nz Server Operation 7 4th January 2011 14:58
Firewall webfrontend planet_fox Technical 5 21st March 2007 12:43
Bastille - firewall in ISPConfig. keybd_user Installation/Configuration 4 26th June 2006 13:19
Help....package missing sbovisjb1 Installation/Configuration 3 31st March 2006 12:14
I need a suitable firewall. agul Server Operation 4 23rd November 2005 01:12


All times are GMT +2. The time now is 06:57.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.