<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - nft --json list ruleset crashes"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1463#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - nft --json list ruleset crashes"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1463">bug 1463</a>
from <span class="vcard"><a class="email" href="mailto:abrian@netapp.com" title="abrian@netapp.com">abrian@netapp.com</a>
</span></b>
<pre>We do the configuration programmatically, some based on user provided
configuration. Here are the commands that set up the rules in the example I
provided above:
iptables -A INPUT -p tcp --syn -m multiport --dports 8082,8083,8084,8085 -m
connlimit --connlimit-above 20000 --connlimit-mask 0 -j REJECT --reject-with
tcp-reset
iptables -A INPUT -p tcp --syn -m multiport --dports 18082,18083,18084,18085 -m
connlimit --connlimit-above 10000 --connlimit-mask 0 -j REJECT --reject-with
tcp-reset
ip6tables -A INPUT -p tcp --syn -m multiport --dports 8082,8083,8084,8085 -m
connlimit --connlimit-above 20000 --connlimit-mask 0 -j REJECT --reject-with
tcp-reset
ip6tables -A INPUT -p tcp --syn -m multiport --dports 18082,18083,18084,18085
-m connlimit --connlimit-above 10000 --connlimit-mask 0 -j REJECT --reject-with
tcp-reset
Here are examples of the type of commands we use based on the user's
configuration:
iptables -t nat -A OUTPUT -o $IFACE -p $PROTO --dport $D_PORT -j DNAT
--to-destination :$S_PORT
iptables -t nat -A PREROUTING -i $IFACE -p $PROTO --dport $S_PORT -j REDIRECT
--to-port $D_PORT</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>