GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — close 53 by andrijapanicsb · Pull Request #46 · shapeblue/cloudstack

Conversation

@andrijapanicsb

@andrijapanicsb andrijapanicsb commented Oct 11, 2019 •
edited by DaanHoogland
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

close 53 (udp port 53 that is, and tcp ;)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@andrijapanicsb
Update CsApp.py
dbcd26c
@DaanHoogland

DaanHoogland commented Oct 18, 2019

Copy link
Copy Markdown
Member

@andrija, what is this with port 67?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

DaanHoogland
DaanHoogland previously approved these changes Oct 18, 2019
View reviewed changes

@DaanHoogland DaanHoogland left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should delete the commented code. if need be replace with a regular comment and submit to security.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@DaanHoogland
remove completely if not used
08b1267
@DaanHoogland
DaanHoogland dismissed their stale review October 18, 2019 12:55

now cause of the motherload of the change

@DaanHoogland

DaanHoogland commented Oct 18, 2019

Copy link
Copy Markdown
Member

@nvazquez @andrijapanicsb @rhtyd @PaulAngus I just removed the entire class from the code as it was not doing anything anymore. But to be sure: BOOTP 67 isn't used ?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@DaanHoogland

DaanHoogland commented Oct 18, 2019

Copy link
Copy Markdown
Member

@blueorangutan package

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@PaulAngus

PaulAngus commented Oct 18, 2019

Copy link
Copy Markdown

thb , i don't know, but i'd hope that it was there for a reason..

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@DaanHoogland

DaanHoogland commented Oct 18, 2019

Copy link
Copy Markdown
Member

bootp when you have dhcp, does not seem to have a valid use-case? the only thing i can think of is some older component needing support that doesn't speak dhcp.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@PaulAngus

PaulAngus commented Oct 19, 2019

Copy link
Copy Markdown

What worries more, is the possibility that there are VPC configurations which would no longer be able to use their DNS because they are not instanciated 'properly' but worked because DNS was 'wide-open'

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@DaanHoogland

DaanHoogland commented Oct 19, 2019

Copy link
Copy Markdown
Member

Agree, extensive testing needed. Should we share on sec@ yet?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@PaulAngus

PaulAngus commented Oct 19, 2019

Copy link
Copy Markdown

My comment really relates to this possible fix, and is really only valid if we propose simply removing this section of code. I don't know/understand the detailed model being followed to suggest alternatives, I am simply wary that;
a. 'we' didn't realise that this code was there, which made our community fix ineffective, and that we could misunderstand the reason for the port being made open here (this piece of code) the second time around as well.
b. others' work may have appeared to properly allow DNS ingress, but through luck rather than judgement.

removing this section of code may well be the correct solution, but 'once bitten, twice shy'

DaanHoogland reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@DaanHoogland DaanHoogland closed this Oct 19, 2019
@DaanHoogland DaanHoogland reopened this Oct 19, 2019
@andrijapanicsb

andrijapanicsb commented Oct 19, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Author

Need to check why I didn't see any of those comments - ah it went into the subfolder next to other 8500+ emails... right.

Whatever ports are needed for the VM on the network to work - those have to be opened in that other file CsAddress.py, next to other ports like 53 and 8080

We aleady briefly tested 10d ago: 10.2.2.216
UDP port number 67 is the destination port of a DHCP server (and UDP port number 68 is used by the client)
In that test env above, VMs were getting IPs just fine, since (what a coincidence) there were also rules to allow port 67 there, next to 53, and 8080 in that second file CsAddress!

So yes, testing is required - but considering the wording "self.config.has_dns()" - I'm pretty sure was written by someone "unsecure by default" in mind - Nicolas has traced this to date back to pre-4.6 release and some more ago... - so it's really ancient code.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@andrijapanicsb

andrijapanicsb commented Oct 19, 2019

Copy link
Copy Markdown
Author

i.e.:

cloudstack/systemvm/debian/opt/cloud/bin/cs/CsAddress.py

Lines 406 to 423 in 08b1267

if self.get_type() in ["guest"]:
guestNetworkCidr = self.address['network']
self.fw.append(
["filter", "", "-A INPUT -i %s -p udp -m udp --dport 67 -j ACCEPT" % self.dev])
self.fw.append(
["filter", "", "-A INPUT -i %s -p udp -m udp --dport 53 -s %s -j ACCEPT" % (self.dev, guestNetworkCidr)])
self.fw.append(
["filter", "", "-A INPUT -i %s -p tcp -m tcp --dport 53 -s %s -j ACCEPT" % (self.dev, guestNetworkCidr)])
self.fw.append(
["filter", "", "-A INPUT -i %s -p tcp -m tcp --dport 80 -m state --state NEW -j ACCEPT" % self.dev])
self.fw.append(
["filter", "", "-A INPUT -i %s -p tcp -m tcp --dport 8080 -m state --state NEW -j ACCEPT" % self.dev])
self.fw.append(
["filter", "", "-A FORWARD -i %s -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT" % self.dev])
self.fw.append(
["filter", "", "-A FORWARD -i %s -o %s -m state --state NEW -j ACCEPT" % (self.dev, self.dev)])
self.fw.append(
["filter", "", "-A FORWARD -i eth0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT"])

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@DaanHoogland

DaanHoogland commented Oct 21, 2019

Copy link
Copy Markdown
Member

@andrija, we will need to test shared networks as well (and maybe even basic zones)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@yadvr yadvr closed this in 21036bf Jan 20, 2021
@yadvr yadvr reopened this Jan 20, 2021
shwstppr pushed a commit that referenced this pull request Aug 16, 2021
@nvazquez @shwstppr
[4.9.1.0-shapeblue17.2] Fix worker VM HW version numeric value instea…
e694ed9
…d of formatted (#46)
shwstppr pushed a commit that referenced this pull request Nov 23, 2021
@nvazquez
[4.9.1.0-shapeblue17.2] Fix worker VM HW version numeric value instea…
d29ea18
…d of formatted (#46)
@github-actions github-actions Bot added the status:has-conflicts label Apr 8, 2022
@github-actions

github-actions Bot commented Apr 8, 2022

Copy link
Copy Markdown

Hi @dependabot[bot], your pull request has merge conflicts. Can you fix the conflicts and sync your branch with the base branch?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@DaanHoogland DaanHoogland DaanHoogland left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

status:has-conflicts

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@andrijapanicsb @DaanHoogland @PaulAngus @yadvr
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.