Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Firewall program at boottime
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
craftyc
Guru
Guru


Joined: 23 May 2002
Posts: 443
Location: Behind You.

PostPosted: Fri May 24, 2002 10:02 pm    Post subject: Firewall program at boottime Reply with quote

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. :oops:

Thanks in advance.
_________________
Postcount ++
Back to top
View user's profile Send private message
Rylan
n00b
n00b


Joined: 08 May 2002
Posts: 41

PostPosted: Sat May 25, 2002 2:57 am    Post subject: Reply with quote

Check the Gentoo security guide
http://www.gentoo.org/doc/en/gentoo-security.xml

Down towards the bottom is a decent rc.firewall script that you can edit to your personal needs.
Back to top
View user's profile Send private message
craftyc
Guru
Guru


Joined: 23 May 2002
Posts: 443
Location: Behind You.

PostPosted: Sat May 25, 2002 11:08 am    Post subject: Reply with quote

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
View user's profile Send private message
tebers
Tux's lil' helper
Tux's lil' helper


Joined: 24 Apr 2002
Posts: 115
Location: Germany, Kirchheim near Munich

PostPosted: Sun May 26, 2002 6:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
lamer
n00b
n00b


Joined: 16 May 2002
Posts: 16
Location: St. Paul, Mn

PostPosted: Sun May 26, 2002 9:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
craftyc
Guru
Guru


Joined: 23 May 2002
Posts: 443
Location: Behind You.

PostPosted: Sun May 26, 2002 9:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
craftyc
Guru
Guru


Joined: 23 May 2002
Posts: 443
Location: Behind You.

PostPosted: Sun May 26, 2002 9:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum