Cannot install firewall using fwbuilder on Ubuntu 11.04

Asked by Pedro Cunha

Well, I've tried creating a simple ssh firewall following this guide ( after MANY unsuccessful attempts on my own, using fwbuilder.

Well, as it turns out, there seems to be a recurring problem, no matter what I do. Here's the log:

* Running as user : seltor
* Firewall name : firewall
* Installer uses user name : seltor
* Management address :
* Platform : iptables
* Host OS : linux24
* Loading configuration from file /home/seltor/sltwlan.fwb

Installation plan:
Copy file: /home/seltor/firewall.fw --> /etc/fw/firewall.fw
Run script echo '--**--**--'; chmod +x /etc/fw/firewall.fw; sudo -S /etc/fw/firewall.fw && ( test -f /var/run/ && sudo -S shutdown -c; echo 'Policy activated' )
Copying /home/seltor/firewall.fw ->
Running command '/usr/bin/fwbuilder -Y scp -o ConnectTimeout=30 -q /home/seltor/firewall.fw seltor@'
lost connection
SSH session terminated, exit status: 1
Firewall policy installation failed


So, I'm accessing the network through a wireless connection, which means the interface is wlan0. My network submask is, according to the network info Ubuntu is giving me, and my internal IP is, which is static.

Can anyone help me?

Question information

English Edit question
Ubuntu fwbuilder Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Vadim Kurland (vadim-fwbuilder) said :

FWbuilder built-in policy installer uses ssh to communicate with the firewall. From the installer log it looks like either sshd is not installed or not running on your system. Check if package "openssh-server " is installed. If it is installed and daemon is running, try to log in using simple command "ssh" and troubleshoot ssh access to make it work.

Also check if the directory /etc/fw exists and create it if it does not. Make sure permissions on the directory are set up so that user "seltor" can create files in it.

finally you need to make sure user seltor is allowed to use sudo. This may already be the case though.

This chapter of Firewall Builder Users Guide shows how to set this up using dedicated firewall administration account:

Can you help with this problem?

Provide an answer of your own, or ask Pedro Cunha for more information if necessary.

To post a message you must log in.