Fix open ports and cleaning default firewall.conf
This commit is contained in:
parent
9df7935f90
commit
1785bd3b8f
|
@ -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
|
||||
|
|
2
firewall
2
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
|
||||
}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
IPTABLES=/sbin/iptables
|
||||
|
||||
# WAN configuration
|
||||
WAN_INT='zefezfez'
|
||||
IP='122.122.122.122'
|
||||
WAN_INT=''
|
||||
IP=''
|
||||
|
||||
# Allow ping
|
||||
PING=1
|
||||
|
|
Reference in New Issue