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? |
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 Code:
su -c './firewall.fw' Code:
iptables -L | less |
All times are GMT -5. The time now is 12:26 AM. |