Browse Source

ok - after a short discussion on #rocklinux we decided that the firewall

keywords should be named accept, reject and drop


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@1849 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 21 years ago
parent
commit
745f76f0de
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      package/base/iptables/rocknet_iptables.sh

+ 3
- 3
package/base/iptables/rocknet_iptables.sh

@ -29,19 +29,19 @@ iptales_parse_conditions() {
shift; shift
;;
*)
error "Unkown allow/deny/drop condition: $1"
error "Unkown accept/reject/drop condition: $1"
shift
esac
done
}
public_allow() {
public_accept() {
iptales_parse_conditions "$@"
addcode up 1 5 "iptables -A firewall_$if $iptables_cond -j ACCEPT"
iptables_init_if
}
public_deny() {
public_reject() {
iptales_parse_conditions "$@"
addcode up 1 5 "iptables -A firewall_$if $iptables_cond -j REJECT"
iptables_init_if

Loading…
Cancel
Save