Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge modbus2023 to main branch #159

Merged
merged 10 commits into from
Dec 22, 2023
2 changes: 1 addition & 1 deletion osect_sensor/Application/edge_cron/common/common_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
YAF_ENABLE = True
""" yaf use flag """

BACNET_ENABLE = True
BACNET_ENABLE = False
""" Bacnetトラフィックを取り込むか否か """

MODBUS_ENABLE = False
Expand Down
8 changes: 4 additions & 4 deletions osect_sensor/Infrastructure/edge_cron/Dockerfile
Copy link
Contributor

Choose a reason for hiding this comment

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

  • zkg refresh は消して良いんだっけ?
  • パッケージのインストールは各行にまとめているので、元の165目を以下のようにしてほしい。
icsnpp-modbus --version 03de54df8b0a8c1e6264876167f80dccae74902a

Copy link
Collaborator Author

@helenwangjia helenwangjia Dec 22, 2023

Choose a reason for hiding this comment

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

  • zkg refresh は消して良いんだっけ?

消したら良くないと思います。
消したら、https://github.com/zeek/packages/blob/master/nttcom/zkg.index にあるパッケージは何か修正があれば、反映できなくなります。

Copy link
Collaborator Author

@helenwangjia helenwangjia Dec 22, 2023

Choose a reason for hiding this comment

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

zkg install icsnpp-modbus --version 03de54df8b0a8c1e6264876167f80dccae74902a --force --skiptest \

  && zkg install --force --skiptest \
  icsnpp-modbus \
  zeek/corelight/zeek-long-connections \
  zeek-af_packet-plugin \
  zeek-parser-CCLinkFieldBasic \
  zeek-parser-CCLinkField-CCLinkControl \
  zeek-parser-CIFS-COM \
  zeek-parser-CIFS-NBNS-COM \
  zeek-parser-DHCPv4-COM \
  zeek-parser-DHCPv6-COM \
  zeek-parser-SSDP-COM

は二つ部分です。
&&がありますね。versionが指定されたものと指定されていないものを一緒にすることはできません。そのため、165行目に移動できないです。
移動したい場合、このstepの最後に移動できます。

Copy link
Contributor

Choose a reason for hiding this comment

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

OK

ではzkg refreshを戻しておいて。

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ではzkg refreshを戻しておいて。

戻しました。

Original file line number Diff line number Diff line change
Expand Up @@ -154,16 +154,16 @@ ENV PATH $PATH:/root/.cargo/bin
# zkgパッケージ(必要なものだけ入れる)
ENV PATH $PATH:/usr/local/zeek/bin
# RUN zkg autoconfig
RUN zkg refresh && \
zkg install --force --skiptest \
RUN zkg install icsnpp-modbus --version 03de54df8b0a8c1e6264876167f80dccae74902a --force --skiptest \
&& zkg refresh \
&& zkg install --force --skiptest \
# zeek-plugin-bacnet \
# zeek-plugin-enip \
# zeek-plugin-profinet \
# zeek-plugin-s7comm \
# icsnpp-ethercat \
# icsnpp-opcua-binary \
icsnpp-modbus \
# icsnpp-bacnet \
# icsnpp-bacnet \
zeek/corelight/zeek-long-connections \
zeek-af_packet-plugin \
zeek-parser-CCLinkFieldBasic \
Expand Down
2 changes: 1 addition & 1 deletion osect_sensor/conf/local.zeek
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ redef LogAscii::enable_utf_8 = F;
#@load zeek-plugin-profinet
#@load zeek-plugin-s7comm
#@load icsnpp-ethercat
#@load icsnpp-modbus
@load icsnpp-modbus
@load zeek-long-connections
@load zeek-af_packet-plugin
@load zeek-parser-CCLinkFieldBasic
Expand Down
Loading