Community discussions

MikroTik App
 
celLproject
just joined
Topic Author
Posts: 1
Joined: Thu Jul 04, 2024 9:41 am

Heimdall container on AX3

Sat Aug 03, 2024 10:45 am

Hello everyone,
I just wanted to share my experience with heimdall a simple hompage dashboard on mikrotik.

So I thought that it would be ok to host it on the router since it is kinda light and if it fails then whatever its not a big deal.

I created one environment the time zone : TZ
And one mount point heimdall/config to /config

Now what I found out is that without enabling the Logging option it starts and the stops right after.

Also directories permission must Be CHANGED ON ANOTHER LINUX I used
sudo chown -R 1000:1000 .
sudo chmod -R 777 .
I even used my old config and everything worked out of the box (didn't work without this )


Regarding networking part I simply created a veth interface and assigned it a Ip from the local network, it was very easy since heimdall is using port 80 and 443

I have seen this from YouTube how to set up cloudflare tunnel on mikrotik


Conclusion:
For some small testing and playing around in the homelab its fine, wouldn't recommend for production environment as alot features are missing.
 
Bloemetjesgordijn
just joined
Posts: 5
Joined: Mon Dec 09, 2024 4:02 pm

Re: Heimdall container on AX3

Mon Dec 09, 2024 4:04 pm

Hi Cellproject,

Can you please elaborate somewhat more on how you got it working.

I have been trying to have this working for some time now..and i need some advice

Especially on your mount point

Kind regads,

Bloemetjesgordijn
 
holvoetn
Forum Guru
Forum Guru
Posts: 6825
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Heimdall container on AX3

Mon Dec 09, 2024 5:52 pm

What ROS version are you using ?
I seem to recall there have been some fixes especially for this permission problem.
 
Bloemetjesgordijn
just joined
Posts: 5
Joined: Mon Dec 09, 2024 4:02 pm

Re: Heimdall container on AX3

Tue Dec 10, 2024 1:30 pm

Hi,

I just now upgraded from 7.8 to 7.16

Kind regards,

Bloemetjesgordijn
Last edited by Bloemetjesgordijn on Tue Dec 10, 2024 8:54 pm, edited 1 time in total.
 
Bloemetjesgordijn
just joined
Posts: 5
Joined: Mon Dec 09, 2024 4:02 pm

Re: Heimdall container on AX3

Tue Dec 10, 2024 1:57 pm

Updated Works (on RB5009)
I forgot to add the IP to the container. It updated in steps below

Well I have it running. these are the steps it worked for me
Note:
I have already a pihole & unbound container running so the following steps are already performed (for the running container Pihole &Unbound)
1. Enable Container mode
/system/device-mode/update container=yes
and/or validate
/system/device-mode/print
2. Add interface and setup NAT
Add interface
/interface/bridge/add name=docker
/ip/address/add address=192.168.34.1/24 interface=docker
Setup NAT for outgoing traffic:
/ip/firewall/nat/add chain=srcnat action=masquerade src-address=192.168.34.0/24

Steps taken to install Heimdall (as a second container ):
A - Setup Interface and NAT stuff
/ip/address/add address=192.168.35.1/24 interface=docker
/interface/veth/add name=veth2 address=192.168.35.2/24 gateway=192.168.35.1
/interface/bridge/port add bridge=docker interface=veth2
Setup NAT for outgoing traffic:
/ip/firewall/nat/add chain=srcnat action=masquerade src-address=192.168.35.0/24
Make Heimdall available via Miktorik ip#
/ip firewall nat add action=dst-nat chain=dstnat dst-address=192.168.88.1 dst-port=8080 protocol=tcp to-addresses=192.168.35.2 to-ports=80
B - Setup container stuff
add enviroments variables
/container/envs/add name=heimdall_envs key=TZ value="Europe/Amsterdam"
/container/envs/add name=heimdall_envs key=PUID value="1000"
/container/envs/add name=heimdall_envs key=PGID value="1000"
/container/mounts/add name=heimdall src=usb1/heimdall dst=/etc/heimdall
/container/mounts/add name=heimdall src=/heimdall/config dst=/config
C - get container image image
/container/add remote-image=linuxserver/heimdall:latest interface=veth2 root-dir=usb1/heimdall mounts=heimdall envlist=heimdall_envs logging=yes start-on-boot=yes
D -Start container
/container/print
/container/start 1

Current status:
- Container is running
- I can reach it (http://192.168.88.1:8080/

Remaining items
I have some minor issues regarding saving custom Icons
Last edited by Bloemetjesgordijn on Tue Dec 10, 2024 9:54 pm, edited 6 times in total.
 
holvoetn
Forum Guru
Forum Guru
Posts: 6825
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Heimdall container on AX3

Tue Dec 10, 2024 3:19 pm

Wouldn't it be sensible then to present your config for review ?
 
Bloemetjesgordijn
just joined
Posts: 5
Joined: Mon Dec 09, 2024 4:02 pm

Re: Heimdall container on AX3

Tue Dec 10, 2024 8:53 pm

It works :lol: :lol: :lol:
I have updated my manual
 
holvoetn
Forum Guru
Forum Guru
Posts: 6825
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Heimdall container on AX3

Tue Dec 10, 2024 9:04 pm

Nice job :D
 
Bloemetjesgordijn
just joined
Posts: 5
Joined: Mon Dec 09, 2024 4:02 pm

Re: Heimdall container on AX3

Tue Dec 10, 2024 9:51 pm

Thx

I have some minor issues regarding saving custom Icons
I think that is due to some missing authorization PUID and PGID settings..

But is is fast (faster then my rasp4).

Kind regards,

Who is online

Users browsing this forum: thenetworks and 0 guests