This commit is contained in:
		
							parent
							
								
									3cd26878b3
								
							
						
					
					
						commit
						04b1308238
					
				@ -48,7 +48,7 @@ fi
 | 
			
		||||
 | 
			
		||||
# Swap out display_c command for dummy command if they don't want
 | 
			
		||||
# output when command is run.
 | 
			
		||||
if [[ "${DisplayDetailedOutput" == "yes" ]]; then
 | 
			
		||||
if [[ "${DisplayDetailedOutput}" == "yes" ]]; then
 | 
			
		||||
	display="display_c"
 | 
			
		||||
else
 | 
			
		||||
	display="true"
 | 
			
		||||
@ -61,11 +61,9 @@ if [[ "${EnableIPv4}" == "yes" ]]; then
 | 
			
		||||
	# Create the chain sets we'll need and the ones that can be
 | 
			
		||||
	# customized by users in their custom rules
 | 
			
		||||
	setup_iptables_chains ipv4
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [[ "${EnableIPv6}" == "yes" ]]; then
 | 
			
		||||
	# First flush all rules
 | 
			
		||||
	iptables_rules_flush ipv6
 | 
			
		||||
fi
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
@ -18,6 +18,7 @@
 | 
			
		||||
#    You should have received a copy of the GNU General Public License
 | 
			
		||||
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# iptables_rules_flush (ipv6|ipv4)
 | 
			
		||||
# Clear all rules from iptables - be very careful in how this is called as it
 | 
			
		||||
# could easily lock out the user from the network.  Best way to be safe, is to
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user