Skip to content

T-pot not finding the right network interface after reboot #1726

Closed Answered by CountyWorker
CountyWorker asked this question in Q&A
Discussion options

You must be logged in to vote

I think I've solved it, will post back if it doesn't.

Solution that seems to work:

  1. Fixed IP-address
  2. Added a service that wait for domain lookup to work:
[Unit]
DefaultDependencies=no
After=nss-lookup.target
Before=network-online.target

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=sh -c 'until ping -c 1 example.com; do sleep 1; done'

[Install]
WantedBy=network-online.target

Solution that doesn't:

  1. Added some specifics to tpot-service:
[Unit]
Description=T-Pot
BindsTo=sys-subsystem-net-devices-{INTERFACE_NAME}.device
Wants=docker.service network-online.target sys-subsystem-net-devices-{INTERFACE_NAME}.device
After=docker.service network-online.target sys-subsystem-net-devices-…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by CountyWorker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
no basic support info Please follow the guidelines so we can help
2 participants
Converted from issue

This discussion was converted from issue #1725 on January 03, 2025 18:26.