summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérôme Schneider <jschneider@entrouvert.com>2011-03-16 20:01:07 (GMT)
committerJérôme Schneider <jschneider@entrouvert.com>2011-03-16 20:01:07 (GMT)
commit1785bd3b8f8ac7b6b770220672f3f1a4a7c93e57 (patch)
tree1c9a049ee2271c4ab9c0ec6cf3c2c4244c3348ee
parent9df7935f908426fcc1e3d1566529dd5593394ed5 (diff)
downloadeofirewall-1785bd3b8f8ac7b6b770220672f3f1a4a7c93e57.zip
eofirewall-1785bd3b8f8ac7b6b770220672f3f1a4a7c93e57.tar.gz
eofirewall-1785bd3b8f8ac7b6b770220672f3f1a4a7c93e57.tar.bz2
Fix open ports and cleaning default firewall.conf
-rw-r--r--debian/changelog6
-rwxr-xr-xfirewall2
-rw-r--r--firewall.conf4
3 files changed, 9 insertions, 3 deletions
diff --git a/debian/changelog b/debian/changelog
index 2f7118b..95ed2fa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+eofirewall (0.1-20110316.1) unstable; urgency=low
+
+ * Add test, support destination, change config file syntax
+
+ -- Jérôme Schneider <jschneider@entrouvert.com> Wed, 16 Mar 2011 20:47:24 +0100
+
eofirewall (0.1-20110308.1) unstable; urgency=low
* Fix ! position
diff --git a/firewall b/firewall
index f0167e2..b4a457a 100755
--- a/firewall
+++ b/firewall
@@ -93,7 +93,7 @@ open_port()
source=$1
for port in $(echo $ports | sed 's/,/ /g'); do
echo "+ Open port $port from $source to $destination for protocol $proto"
- $IPTABLES -A INPUT -i $WAN_INT -p $proto -s $source -d $IP --dport $port -m state ! --state INVALID -j ACCEPT
+ $IPTABLES -A INPUT -i $WAN_INT -p $proto -s $source -d $destination --dport $port -m state ! --state INVALID -j ACCEPT
critical_return
done
}
diff --git a/firewall.conf b/firewall.conf
index c62c2a5..1b4e580 100644
--- a/firewall.conf
+++ b/firewall.conf
@@ -1,8 +1,8 @@
IPTABLES=/sbin/iptables
# WAN configuration
-WAN_INT='zefezfez'
-IP='122.122.122.122'
+WAN_INT=''
+IP=''
# Allow ping
PING=1