<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div dir="auto">
<div><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">17 янв. 2017 г. 9:05 PM пользователь Andrey Vagin <avagin@virtuozzo.com> написал:<br type="attribution">
<blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><font size="2"><span style="font-size:10pt"></span></font>
<div>On Mon, Jan 16, 2017 at 07:04:50PM +0300, Stanislav Kinsburskiy wrote:<br>
> The intention of commit 61b8fc264f55e15dea90350834a50d551d33bffa was to drop<br>
> local traffic only.<br>
> But there was a side effect: iptables rules were blocking all the traffic<br>
> including external communication.<br>
> While it's not a big problem by itself, it significantly complicates external<br>
> communication when needed (say, in case of NFS files), because forces one to<br>
> unmask NFS routes within container.<br>
> Let's get rid of this side effect by limiting rules to loopback interface.<br>
> External traffic blocking is controlled outside containers anyway.<br>
<br>
* Does it controlled for venet?<br>
</div>
</div>
</blockquote>
</div>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">Sorry, I don't understand the question.</div>
<div dir="auto"><br>
</div>
<div dir="auto">
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div>* Both ends of a local tcp connection can be bond to an ip address<br>
(which is set to any interface). I am not sure that this hack will<br>
work for this case.<br>
</div>
</div>
</blockquote>
</div>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">Well, I was assured, that even it this case traffic is considered as local, and transfered via loopback.</div>
<div dir="auto"><br>
</div>
<div dir="auto">
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div><br>
> <br>
> Signed-off-by: Stanislav Kinsburskiy <skinsbursky@virtuozzo.com><br>
> ---<br>
> criu/net.c | 8 ++++----<br>
> 1 file changed, 4 insertions(+), 4 deletions(-)<br>
> <br>
> diff --git a/criu/net.c b/criu/net.c<br>
> index 080c617..d75c9fa 100644<br>
> --- a/criu/net.c<br>
> +++ b/criu/net.c<br>
> @@ -1547,8 +1547,8 @@ static int network_lock_internal()<br>
> {<!-- --><br>
> char conf[] = "*filter\n"<br>
> ":CRIU - [0:0]\n"<br>
> - "-I INPUT -j CRIU\n"<br>
> - "-I OUTPUT -j CRIU\n"<br>
> + "-I INPUT -i lo -j CRIU\n"<br>
> + "-I OUTPUT -o lo -j CRIU\n"<br>
> "-A CRIU -j DROP\n"<br>
> "COMMIT\n";<br>
> int ret = 0, nsret;<br>
> @@ -1571,8 +1571,8 @@ static int network_unlock_internal()<br>
> {<!-- --><br>
> char conf[] = "*filter\n"<br>
> ":CRIU - [0:0]\n"<br>
> - "-D INPUT -j CRIU\n"<br>
> - "-D OUTPUT -j CRIU\n"<br>
> + "-D INPUT -i lo -j CRIU\n"<br>
> + "-D OUTPUT -o lo -j CRIU\n"<br>
> "-X CRIU\n"<br>
> "COMMIT\n";<br>
> int ret = 0, nsret;<br>
> <br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</body>
</html>