Cores
🌐
This page explains how to configure and set up the following cores.
As explained, MarzNode uses the following three cores as its central cores. Click on each tab to view the corresponding details.
ℹ️
When MarzNode is installed, the Xray core is activated by default. No additional configuration is required for this core.
To disable the Xray core, set the following variable:
XRAY_ENABLED:
"False"
/ "True"
XRAY_ENABLED: "False"
ℹ️
Follow the certificate generation guide for MarzNode to generate a certificate for your node and add it to the Hysteria inbound configuration to activate the Hysteria core.
Download the Hysteria2 Config File:
- Use the following command to download the config file and save it to the specified path:
curl -L https://github.com/marzneshin/marznode/raw/master/hysteria.yaml > /var/lib/marznode/hysteria.yaml
Edit the MarzNode Configuration File:
- Navigate to the MarzNode directory and open the Docker Compose configuration file:
cd marznode && nano compose.yml
Add the Following Variables to the Docker Configuration File:
HYSTERIA_CONFIG_PATH: "/var/lib/marznode/hysteria.yaml"
HYSTERIA_ENABLED: "True"
Restart MarzNode:
After making the changes, restart the MarzNode service using:
docker compose down && docker compose up -d
Download the Hysteria2 Config File:
- Use the following command to download the config file and save it to the specified path:
curl -L https://github.com/marzneshin/marznode/raw/master/hysteria.yaml > /var/lib/marznode/hysteria.yaml
Edit the Local Node Configuration File:
- For the local node, edit the following file:
nano /etc/opt/marzneshin/docker-compose.yml
Add the following variables under the environment
section of the marznode
part in the Docker file
HYSTERIA_EXECUTABLE_PATH: "/usr/local/bin/hysteria"
HYSTERIA_CONFIG_PATH: "/var/lib/marznode/hysteria.yaml"
HYSTERIA_ENABLED: "True"
Restart the Marzneshin panel:
marzneshin restart
To disable the Hysteria core, set the following variable:
HYSTERIA_ENABLED:
"False"
/True
HYSTERIA_ENABLED: "False"
Download the Sing-Box Config File:
Use the following command to download the config file and save it to the specified path:
curl -L https://raw.githubusercontent.com/MarzneshinsCommunity/files/refs/heads/main/sing-box.json > /var/lib/marznode/sing-box.json
Edit the MarzNode Configuration File:
- Navigate to the MarzNode directory and open the Docker Compose configuration file:
cd marznode && nano compose.yml
Add the Following Variables to the Docker Configuration File:
SING_BOX_ENABLED: "True" SING_BOX_CONFIG_PATH: "/var/lib/marznode/sing-box.json"
Restart MarzNode:
- After making the changes, restart the MarzNode service using:
docker compose down && docker compose up -d
Download the Sing-Box Config File:
Use the following command to download the config file and save it to the specified path:
curl -L https://raw.githubusercontent.com/MarzneshinsCommunity/files/refs/heads/main/sing-box.json > /var/lib/marznode/sing-box.json
Edit the Local Node Configuration File:
- For the local node, edit the following file:
nano /etc/opt/marzneshin/docker-compose.yml
Add the following variables under the environment:
section of the marznode:
part in the Docker file
SING_BOX_ENABLED: "True"
SING_BOX_EXECUTABLE_PATH: "/usr/local/bin/sing-box"
SING_BOX_CONFIG_PATH: "/var/lib/marznode/sing-box.json"
Restart the Marzneshin panel:
marzneshin restart
To disable the SingBox core, set the following variable:
SING_BOX_ENABLED:
"False"
/"True"
SING_BOX_ENABLED: "False"