Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 04-23-2004, 03:45 AM   #1
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


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
Registered: Jul 2003
Distribution: Gentoo
Posts: 168

Rep: Reputation: 30

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
chmod +x firewall.fw
Then execute it as root
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
iptables -L | less


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 01:10 PM.

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