diff --git a/content/docs/configuration/marznode.md b/content/docs/configuration/marznode.md index b1a7e9f..756074a 100644 --- a/content/docs/configuration/marznode.md +++ b/content/docs/configuration/marznode.md @@ -1,40 +1,60 @@ --- -title: Marznode + +title: Marznode weight: 2 ---- -Easy installation method : -1- installing docker and pulling marznode with this commend : +--- -```apt-get update -y && apt-get upgrade -y && curl -fsSL https://get.docker.com | sh && git clone https://github.com/khodedawsh/marznode && cd marznode && docker compose up -d``` +### Easy Installation Method: -2- Copy Marznode certificate from settings in Marzneshin Panel and pase it in this file : +1. Installing Docker and pulling Marznode with this command: -```nano /var/lib/marznode/client.pem``` +```bash +apt-get update -y && apt-get upgrade -y && curl -fsSL https://get.docker.com | sh && git clone https://github.com/khodedawsh/marznode && cd marznode && docker compose up -d +``` -3-Downloading Xray core in This Directory : * Files are we downloading now is the latest version of XrayCore , IF you want you can download each version you desire with just putting the Version number in the commend ! +2. Copy the Marznode certificate from settings in the Marzneshin panel and paste it into this file: -```cd && mkdir -p /var/lib/marznode/data && cd /var/lib/marznode/data``` +```bash +nano /var/lib/marznode/client.pem +``` -```wget https://github.com/XTLS/Xray-core/releases/download/v24.9.30/Xray-linux-64.zip && unzip Xray-linux-64.zip && rm Xray-linux-64.zip``` +3. Downloading the Xray core in this directory: + *Files we are downloading now are the latest version of Xray Core. If you want, you can download any version you desire by just putting the version number in the command!* -4-Moving xray_config.json Files to Marznode Directory : +```bash +cd && mkdir -p /var/lib/marznode/data && cd /var/lib/marznode/data +``` -```cp /root/marznode/xray_config.json /var/lib/marznode/xray_config.json``` +```bash +wget https://github.com/XTLS/Xray-core/releases/download/v24.9.30/Xray-linux-64.zip && unzip Xray-linux-64.zip && rm Xray-linux-64.zip +``` -5-Moving Xray Files to Marznode Directory : +4. Moving `xray_config.json` file to the Marznode directory: -```cp /var/lib/marznode/data/xray /var/lib/marznode/xray``` +```bash +cp /root/marznode/xray_config.json /var/lib/marznode/xray_config.json +``` -6-Editing Compose File : +5. Moving Xray files to the Marznode directory: -```cd && cd marznode``` +```bash +cp /var/lib/marznode/data/xray /var/lib/marznode/xray +``` -```rm -rf compose.yml && nano compose.yml``` +6. Editing the Compose file: -7-Copy and paste this code in your compose.yml file and save it ! +```bash +cd && cd marznode +``` +```bash +rm -rf compose.yml && nano compose.yml ``` + +7. Copy and paste this code into your `compose.yml` file and save it: + +```yaml services: marznode: image: dawsh/marznode:latest @@ -54,14 +74,20 @@ services: - /var/lib/marznode:/var/lib/marznode ``` -8-Now just stop docker service and start again: +8. Now, just stop the Docker service and start it again: -```docker compose down --remove-orphans; docker compose up -d``` +```bash +docker compose down --remove-orphans; docker compose up -d +``` + +9. Now, go to the Marzneshin panel, then go to the Node section. Create a new node, add the node's IP and port `5566`, and save it. Done! -9-Now Go to Marzneshin Panel and then Go to Node Section Create New node and add Node ip and port 5566 and save it , Done ! +**Note:** You have to whitelist your node's IP in the master server, whitelist the master IP in your node, and also open the port of the API as well as the ports that you need for configuration inside `xray_core.json`: -note : you have to white list your node ip in master server and master ip in your node also open the port of api and also port's that you need for configuration inside xray_core.json : +```bash +ufw allow 5566 +``` -```ufw allow 5566``` +For more information on changing and modifying Xray Core settings, you can go to the Node section in the Marzneshin panel. -For more you can changing and moddifyng xraycore settings you can go to node section in Node section marzneshin panel +---