This commit is contained in:
		
							parent
							
								
									f196177c1e
								
							
						
					
					
						commit
						bbbf5646f4
					
				@ -1,7 +1,11 @@
 | 
				
			|||||||
2.00 Alpha 2 - 04/11/2014
 | 
					2.00 Alpha 2 - 04/11/2014
 | 
				
			||||||
	- Slightly better documentation
 | 
						- Slightly better documentation
 | 
				
			||||||
	- Kernel module loading - 4/11/2014
 | 
						- 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
 | 
					2.00 Alpha 1 - 04/10/2014
 | 
				
			||||||
	- Complete code rewrite and restructure to solve some long standing issues with v1
 | 
						- Complete code rewrite and restructure to solve some long standing issues with v1
 | 
				
			||||||
 | 
				
			|||||||
@ -378,9 +378,9 @@ function enable_forwarding {
 | 
				
			|||||||
			[[ ${syn} == "notsyn" ]] && syn="! --syn"
 | 
								[[ ${syn} == "notsyn" ]] && syn="! --syn"
 | 
				
			||||||
			[[ ${dstport} != "-" ]] && dstport="--dport ${dstport}"
 | 
								[[ ${dstport} != "-" ]] && dstport="--dport ${dstport}"
 | 
				
			||||||
			[[ ${srcport} != "-" ]] && srcport="--sport ${srcport}"
 | 
								[[ ${srcport} != "-" ]] && srcport="--sport ${srcport}"
 | 
				
			||||||
			([[ ${bidirectional} == "yes" ]] && [[ ${srcport} != "-" ]]) && revsrcport="--dport ${srcport}"
 | 
								([[ ${bidirectional} == "yes" ]] && [[ ${srcport} != "-" ]] && [[ ${srcport} != ""]]) && revsrcport="--dport ${srcport}"
 | 
				
			||||||
			([[ ${bidirectional} == "yes" ]] && [[ ${dstport} != "-" ]]) && revdstport="--sport ${dstport}"
 | 
								([[ ${bidirectional} == "yes" ]] && [[ ${dstport} != "-" ]] && [[ ${dstport} != ""]]) && revdstport="--sport ${dstport}"
 | 
				
			||||||
			[[ ${protocol} != "-" ]] && protocol="-p ${protocol}"
 | 
								([[ ${protocol} != "-" ]] && [[ ${protocol} != ""]]) && protocol="-p ${protocol}"
 | 
				
			||||||
			
 | 
								
 | 
				
			||||||
			${debug} ${DebugColor} "${FUNCNAME}:${DEFAULT_COLOR}${action} ${srcinterface} ${srcaddress} ${dstinterface} ${dstaddress} ${bidirectional} ${src-port} ${dst-port} ${protocol} ${syn}"
 | 
								${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=""
 | 
								[[ ${dstinterface} == "-" ]] && dstinterface=""
 | 
				
			||||||
			[[ ${dstaddress} == "-" ]] && dstaddress=""
 | 
								[[ ${dstaddress} == "-" ]] && dstaddress=""
 | 
				
			||||||
			[[ ${srcaddress} == "-" ]] && srcaddress=""
 | 
								[[ ${srcaddress} == "-" ]] && srcaddress=""
 | 
				
			||||||
			[[ ${dstport} == "-" ]] && dstport=""
 | 
								([[ ${dstport} == "-" ]] && [[ ${dstport} != ""]]) && dstport=""
 | 
				
			||||||
			[[ ${srcport} == "-" ]] && srcport=""
 | 
								([[ ${srcport} == "-" ]] && [[ ${srcport} != ""]]) && srcport=""
 | 
				
			||||||
			[[ ${syn} == "-" ]] && syn=""
 | 
								[[ ${syn} == "-" ]] && syn=""
 | 
				
			||||||
			[[ ${bidirectional} == "-" ]] && bidirectional="no"
 | 
								[[ ${bidirectional} == "-" ]] && bidirectional="no"
 | 
				
			||||||
			
 | 
								
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user