Browse Source

tags/v2.01a1
bbruns 7 years ago
parent
commit
bbbf5646f4
2 changed files with 10 additions and 6 deletions
  1. +5
    -1
      CHANGELOG
  2. +5
    -5
      lib/iptables.inc

+ 5
- 1
CHANGELOG View File

@@ -1,7 +1,11 @@
2.00 Alpha 2 - 04/11/2014
- Slightly better documentation
- Kernel module loading - 4/11/2014
- Add syn matching to acl.conf rules
- The next two changes affect config files:
- Add syn matching to acl.conf rules - this may break existing rules
- Add syn and port/protocol matching to forward.conf rules - this will not
break existing rules since it adds 4 new options at the end that can
be omitted completely.

2.00 Alpha 1 - 04/10/2014
- Complete code rewrite and restructure to solve some long standing issues with v1


+ 5
- 5
lib/iptables.inc View File

@@ -378,9 +378,9 @@ function enable_forwarding {
[[ ${syn} == "notsyn" ]] && syn="! --syn"
[[ ${dstport} != "-" ]] && dstport="--dport ${dstport}"
[[ ${srcport} != "-" ]] && srcport="--sport ${srcport}"
([[ ${bidirectional} == "yes" ]] && [[ ${srcport} != "-" ]]) && revsrcport="--dport ${srcport}"
([[ ${bidirectional} == "yes" ]] && [[ ${dstport} != "-" ]]) && revdstport="--sport ${dstport}"
[[ ${protocol} != "-" ]] && protocol="-p ${protocol}"
([[ ${bidirectional} == "yes" ]] && [[ ${srcport} != "-" ]] && [[ ${srcport} != ""]]) && revsrcport="--dport ${srcport}"
([[ ${bidirectional} == "yes" ]] && [[ ${dstport} != "-" ]] && [[ ${dstport} != ""]]) && revdstport="--sport ${dstport}"
([[ ${protocol} != "-" ]] && [[ ${protocol} != ""]]) && protocol="-p ${protocol}"
${debug} ${DebugColor} "${FUNCNAME}:${DEFAULT_COLOR}${action} ${srcinterface} ${srcaddress} ${dstinterface} ${dstaddress} ${bidirectional} ${src-port} ${dst-port} ${protocol} ${syn}"
@@ -389,8 +389,8 @@ function enable_forwarding {
[[ ${dstinterface} == "-" ]] && dstinterface=""
[[ ${dstaddress} == "-" ]] && dstaddress=""
[[ ${srcaddress} == "-" ]] && srcaddress=""
[[ ${dstport} == "-" ]] && dstport=""
[[ ${srcport} == "-" ]] && srcport=""
([[ ${dstport} == "-" ]] && [[ ${dstport} != ""]]) && dstport=""
([[ ${srcport} == "-" ]] && [[ ${srcport} != ""]]) && srcport=""
[[ ${syn} == "-" ]] && syn=""
[[ ${bidirectional} == "-" ]] && bidirectional="no"


Loading…
Cancel
Save