You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by sai <sa...@gmail.com> on 2024/08/27 19:50:31 UTC
Query on VPC keeping virtual router running without firewall rules
Hi All,
I have hit similar issue as https://github.com/apache/cloudstack/issues/8729
and trying to understand the code fixed in the PR
https://github.com/apache/cloudstack/pull/8787, unfortunately I couldn't
understand. can anyone please try to explain the fix?
Summary: When having a VPC without associated vms, there are no firewall
rules defined (iptables). And that's a problem because it leaves the
vrouter vulnerable to receiving a packet on port 35999, and if that
happens, HAProxy will start logging in a loop until it fills the vrouter's
disk.
Thanks,
sai
Re: Query on VPC keeping virtual router running without firewall rules
Posted by sai <sa...@gmail.com>.
Hi @ustcweizhou/Wei ZHOU
Sorry I was not available and couldn't reply you back.
Thank you so much for explaining, it was very helpful.
On Tue, Aug 27, 2024 at 3:34 PM Wei ZHOU <us...@gmail.com> wrote:
> Hi Sai,
>
> I was the author of the PR. Let me explain.
>
> In old behavior, it
> - firstly applies some iptables rules by update_config.py
> - then restores the iptables rules from rules.v4 file.
> The rules in first step is gone in step 2, which causes the issue.
>
> In the PR, it firstly restores the iptables rules from file and then
> applies some new rules (including the default rules for system vms and
> virtual routers).
>
> Hope it helps you.
>
> -Wei
>
>
>
>
> On Tuesday, August 27, 2024, sai <sa...@gmail.com> wrote:
>
> > Hi All,
> >
> > I have hit similar issue as https://github.com/apache/
> > cloudstack/issues/8729
> > and trying to understand the code fixed in the PR
> > https://github.com/apache/cloudstack/pull/8787, unfortunately I couldn't
> > understand. can anyone please try to explain the fix?
> >
> > Summary: When having a VPC without associated vms, there are no firewall
> > rules defined (iptables). And that's a problem because it leaves the
> > vrouter vulnerable to receiving a packet on port 35999, and if that
> > happens, HAProxy will start logging in a loop until it fills the
> vrouter's
> > disk.
> >
> > Thanks,
> > sai
> >
>
Re: Query on VPC keeping virtual router running without firewall rules
Posted by Wei ZHOU <us...@gmail.com>.
Hi Sai,
I was the author of the PR. Let me explain.
In old behavior, it
- firstly applies some iptables rules by update_config.py
- then restores the iptables rules from rules.v4 file.
The rules in first step is gone in step 2, which causes the issue.
In the PR, it firstly restores the iptables rules from file and then
applies some new rules (including the default rules for system vms and
virtual routers).
Hope it helps you.
-Wei
On Tuesday, August 27, 2024, sai <sa...@gmail.com> wrote:
> Hi All,
>
> I have hit similar issue as https://github.com/apache/
> cloudstack/issues/8729
> and trying to understand the code fixed in the PR
> https://github.com/apache/cloudstack/pull/8787, unfortunately I couldn't
> understand. can anyone please try to explain the fix?
>
> Summary: When having a VPC without associated vms, there are no firewall
> rules defined (iptables). And that's a problem because it leaves the
> vrouter vulnerable to receiving a packet on port 35999, and if that
> happens, HAProxy will start logging in a loop until it fills the vrouter's
> disk.
>
> Thanks,
> sai
>