View previous topic :: View next topic |
Author |
Message |
craftyc Guru
Joined: 23 May 2002 Posts: 443 Location: Behind You.
|
Posted: Fri May 24, 2002 10:02 pm Post subject: Firewall program at boottime |
|
|
I would like to start a firewall program at boottime. Can someone help me write a script for this. It is the first time I am writing an init-script.
Thanks in advance. _________________ Postcount ++ |
|
Back to top |
|
|
Rylan n00b
Joined: 08 May 2002 Posts: 41
|
|
Back to top |
|
|
craftyc Guru
Joined: 23 May 2002 Posts: 443 Location: Behind You.
|
Posted: Sat May 25, 2002 11:08 am Post subject: |
|
|
All I need to do is start a program, which inturn will start iptables. Here is what I need to do.
I have a program located at /usr/local/bin/endoshield. I want to write a script that would initiate this progam, which will start iptables at boottime.
Any ideas? _________________ Postcount ++ |
|
Back to top |
|
|
tebers Tux's lil' helper
Joined: 24 Apr 2002 Posts: 115 Location: Germany, Kirchheim near Munich
|
Posted: Sun May 26, 2002 6:09 pm Post subject: |
|
|
There is an updated ebuild with iptables now, which installs as well an init-script .
Read the remark at the end of the emerge for more details.
Thorsten |
|
Back to top |
|
|
lamer n00b
Joined: 16 May 2002 Posts: 16 Location: St. Paul, Mn
|
Posted: Sun May 26, 2002 9:01 pm Post subject: |
|
|
tebers wrote: | There is an updated ebuild with iptables now, which installs as well an init-script .
Read the remark at the end of the emerge for more details.
Thorsten |
Woah! You're fast! I just committed that today Be sure to send me a mail if it doesn't work for you. I'm looking at other stuff to add like endoshield, ferm and what not as well. |
|
Back to top |
|
|
craftyc Guru
Joined: 23 May 2002 Posts: 443 Location: Behind You.
|
Posted: Sun May 26, 2002 9:31 pm Post subject: |
|
|
Thanks for the info. I'm emergeing now.
Anyway I have created a very very simple script. This is what it looks like:
Code: | #!/sbin/runscript
depend() {
after *
}
start() {
ebegin "Starting endoshield"
/sbin/endoshield
eend $? "Failed to start endoshield"
}
|
I get an error at boottime about permission being denied to do something to the file /mnt/.init.d/softscripts/firewall. Any ideas? _________________ Postcount ++ |
|
Back to top |
|
|
craftyc Guru
Joined: 23 May 2002 Posts: 443 Location: Behind You.
|
Posted: Sun May 26, 2002 9:51 pm Post subject: |
|
|
After emerging the latest iptables I have found it does the main job that I wanted it to do ... Stop port scanners. So for now I am happy, until I learn a little more about firewalling in Linux. _________________ Postcount ++ |
|
Back to top |
|
|
|