Fix open ports and cleaning default firewall.conf

This commit is contained in:
Jérôme Schneider 2011-03-16 21:01:07 +01:00
parent 9df7935f90
commit 1785bd3b8f
3 changed files with 9 additions and 3 deletions

6
debian/changelog vendored
View File

@ -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

View File

@ -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
}

View File

@ -1,8 +1,8 @@
IPTABLES=/sbin/iptables
# WAN configuration
WAN_INT='zefezfez'
IP='122.122.122.122'
WAN_INT=''
IP=''
# Allow ping
PING=1