Delete temporary nat chain used in capabilities detection.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2009-12-31 10:33:37 -08:00
parent 55c3b02292
commit 57d1ffd8ec

View File

@ -1977,8 +1977,8 @@ sub determine_capabilities( $ ) {
if ( $capabilities{NAT_ENABLED} ) { if ( $capabilities{NAT_ENABLED} ) {
if ( qt1( "$iptables -t nat -N $sillyname" ) ) { if ( qt1( "$iptables -t nat -N $sillyname" ) ) {
$capabilities{PERSISTENT_SNAT} = qt1( "$iptables -t nat -A $sillyname -j SNAT --to-source 1.2.3.4 --persistent" ); $capabilities{PERSISTENT_SNAT} = qt1( "$iptables -t nat -A $sillyname -j SNAT --to-source 1.2.3.4 --persistent" );
qt1( "$iptables -t NAT -F $sillyname" ); qt1( "$iptables -t nat -F $sillyname" );
qt1( "$iptables -t NAT -X $sillyname" ); qt1( "$iptables -t nat -X $sillyname" );
} }
} }