bbruns 2014-04-12 19:07:19 +00:00
Parent f196177c1e
révision bbbf5646f4
2 fichiers modifiés avec 10 ajouts et 6 suppressions

Voir le fichier

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

Voir le fichier

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