<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi,</span><div style="font-family:arial,sans-serif;font-size:13px">What is the best way to implement a firewall <span id="mySelectedSpan"><span class="searchword8f44ef">in</span></span> a container ? </div>
<div style="font-family:arial,sans-serif;font-size:13px">Currently, Iam thinking of associating an interface ( lets say veth21) to a container and apply <span class="searchword7cf6b4">iptable</span> rules on that interface.<br>
</div><div style="font-family:arial,sans-serif;font-size:13px">veth21 will be bridged to host interface.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
This way I can filter traffic going in/out host network.<br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Please comment.</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">Thx.</div></div>