LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices



Reply
 
Search this Thread
Old 04-23-2004, 03:45 AM   #1
Skunk_Face
Member
 
Registered: Jan 2004
Posts: 54

Rep: Reputation: 15
how to generate iptables script using fwbuilder


can someone plz tell me how i can create an iptables bash script from fwbuilder. Its my first time using fwbuilder so plz forgive me if i've missed something...ok heres what i did

#fwbuilder

used the rules/help me build firewall policy ...entered all the details (ie. interface details) then i proceeded to compile rules/compile.

This generated 2 files in my /firewall folder ( ie. firewall.fw and *.xml)

now in a separate console i type

#fwb_install -f *.xml
Objects Firewall/*.xml not found

what am i doing wrong here?
 
Old 04-23-2004, 11:06 PM   #2
gundelgauk
Member
 
Registered: Jul 2003
Distribution: Gentoo
Posts: 168

Rep: Reputation: 30
Cool

The two files you get seem ok to me.

The .xml file is the save file from fwbuilder and the .fw one should be a shell script which loads modules, settings and the actual firewall rules.

Make the .fw file executable, for example
Code:
chmod +x firewall.fw
Then execute it as root
Code:
su -c './firewall.fw'
You should be prompted for the root password and after you enter it, the script will be executed. By now your firewall should be up and running. You can verify this, for example
Code:
iptables -L | less
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using firestarter to generate an iptables script jc materi Linux - Security 2 03-28-2005 11:15 PM
FWBuilder + iptables + fedora -> port forwarding the_reen Linux - Security 2 09-04-2004 01:34 PM
Snort, prelude, fwbuilder, bastille or iptables ? christophe.dr Linux - Security 5 10-28-2003 02:59 PM
Perl Script Reading a txt file and generate html to be published! kofi Linux - Software 1 09-22-2003 06:12 PM
FWBuilder Help: Can't get it to load script automatically on boot puma1824 Linux - Security 3 09-11-2003 10:20 PM


All times are GMT -5. The time now is 08:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration