<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Just do manually what the stop script done for you, ie flush the
iptables rules:<br>
<br>
# Sets default policies so you don't get kicked out.<br>
iptables -P INPUT ACCEPT<br>
iptables -P FORWARD ACCEPT<br>
iptables -P OUTPUT ACCEPT<br>
<br>
for table in filter nat mangle; do<br>
# Flush chains (deletes all rules)<br>
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
iptables -t ${table} -F<br>
<br>
# Delete chains<br>
iptables -t ${table} -X<br>
<br>
# Zero counters<br>
iptables -t ${table} -Z<br>
done<br>
<div class="moz-signature">
<div id="sig-container" style="margin-top: 15px; padding-top: 6px;
border-top: 1px dashed #ddd;">
<div style="margin-top:0px;" id="sigDetailsWrapper">
<p style="font-family: Helvetica, sans-serif; font-size: 12px;
line-height: 14px; color: #333; margin-top:0; margin-left:0;
padding-left:0;"> <strong><span id="sigName"
style="font-size: 15px;">M. Hamzah Khan</span></strong><br>
<span>Email/XMPP: <a href="mailto:hamzah@hamzahkhan.com"
id="sigEmail" style="color:#428BCA;">hamzah@hamzahkhan.com</a></span>
<br>
<span id="sigURL">URL: <a href="http://www.hamzahkhan.com"
id="sigWebsite" style="color:#428BCA;" rel="nofollow">http://www.hamzahkhan.com</a></span><br>
<span id="sigMobile">Telephone: <a href="tel:+442071006644"
style="color:#428BCA;">+44 (0)2071006644</a></span> <br>
<span id="sigTelephone">Mobile: <a href="tel:+447525663951"
style="color:#428BCA;">+44 (0)7525663951</a></span> <br>
<span id="twitterIcon" style="display: inline;"> <a
style="text-decoration: none;"
href="https://twitter.com/mhamzahkhan"> <img
src="cid:part5.09050102.05000105@hamzahkhan.com"
height="20px" width="20px"> </a> </span> <span
id="facebookIcon" style="display: inline;"> <a
style="text-decoration: none;"
href="https://www.facebook.com/mhamzahkhan"> <img
src="cid:part7.09090203.02090607@hamzahkhan.com"
height="20px" width="20px"> </a> </span> <span
id="gplusIcon" style="display: inline;"> <a
style="text-decoration: none;"
href="http://plus.google.com/+mhamzahkhan"> <img
src="cid:part9.05090708.01020007@hamzahkhan.com"
height="20px" width="20px"> </a> </span> <span
id="linkedinIcon" style="display: inline;"> <a
style="text-decoration: none;"
href="https://uk.linkedin.com/in/mhamzahkhan"> <img
src="cid:part11.01060502.00090903@hamzahkhan.com"
height="20px" width="20px"> </a> </span> <br>
<span style="margin-left: 4px;"></span> </p>
</div>
</div>
</div>
<div class="moz-cite-prefix">On 24/10/15 12:40, gvim wrote:<br>
</div>
<blockquote cite="mid:562B6E27.6040501@gmail.com" type="cite">On
CentOS 6 I had a fairly complex iptables firewall script which ran
happily from /etc/rc3.d and which I could reboot with a small
script:
<br>
<br>
#!/bin/bash
<br>
<br>
service iptables stop
<br>
/root/fw
<br>
iptables -L
<br>
<br>
After upgrading to CentOS 7 I changed the first line of this to:
<br>
<br>
systemctl stop iptables
<br>
<br>
... but the results are erratic. Sometimes it duplicates
directives, and at other times it seems to mixed up with other
systemd items. Any advice on how to get a custom iptables firewall
working on CentOS 7 appreciated.
<br>
<br>
gvim
<br>
<br>
<br>
_______________________________________________
<br>
GLLUG mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:GLLUG@mailman.lug.org.uk">GLLUG@mailman.lug.org.uk</a>
<br>
<a class="moz-txt-link-freetext" href="https://mailman.lug.org.uk/mailman/listinfo/gllug">https://mailman.lug.org.uk/mailman/listinfo/gllug</a>
<br>
</blockquote>
<br>
</body>
</html>