Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions systemvm/debian/opt/cloud/templates/conntrackd.conf.templ
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,9 @@ General {
# ESTABLISHED CLOSED TIME_WAIT CLOSE_WAIT for TCP
# }
}
Stats {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@shawniverson
should this be a separated section or under the "General" section ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@shawniverson I want to merge this but can you explain the consequences of question first, please?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Let me double check this for everybody and ensure it is at the right level.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This PR cannot proceed. I did not place this block at the right level and when placed at the right level I am getting an error

conntrackd[6835]: [Thu Oct 13 12:46:05 2022] (pid=6835) [ERROR] cannot use both `Stats' and `Sync' clauses in conntrackd.conf

Apologies for the trouble. I will go back to the drawing board on this. Still a problem.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

It looks like there are no options in Sync to just disable logging there. I was trying to avoid turning off logging in the General block. It seems to be the only option.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I will need some advice from CloudStack developers on this. I can revise this PR or submit a new PR with logging off in in the General block instead, but I need feedback on whether any of the conntrackd logging is even being used before proceeding.

@ghost ghost Oct 13, 2022 •

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

from the man page for the General section:

[LogFile <on|off|filename>]
    Enable [conntrackd(8)] to log to a file.

    Example: LogFile on

    Default is off. The default logfile is /var/log/conntrackd.log.

[Syslog <on|off|facility>]
    Enable connection logging via Syslog. If you set the facility, use the same as in the Stats section, otherwise you'll get a warning message.

    Example: Syslog local0

    Default is off.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@shawniverson there was talk of creating a central logging facility once. For that the syslog facility would be nice.
If you turn off logging I would say it should be done with a global setting. I am not sure if the logging of conntrackd is used functionally but I imagine that it is useful for people running redundant routers.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@DaanHoogland A global setting makes sense. I'll study this and see what I can do.

LogFile off
}

# default debian service unit file is of Type=notify
Systemd on
Expand Down