d6599b2933
* started todo list for rework * startd long todo list * startd long todo list * remove ts docs from ts sdk dir * started new docs draft * rearranged code example dir structure * modified code component filepaths * first pass rust sdk * small shift typescript org * updated todo list * consolidating images folders in one place * first pass @ operator docs * gen updates * sdk in its own dir * first pass developers structure * first pass network structure * structure * add licensing * moved old docs -> old_docs dir for clarity when devving * moving around new docs - think this is the final dir structure * updated todo list * new autodoc version (#4781) * Update rework_todo.md * quick first sketch of landing page * rework of structure of developers * added arch and concepts stubs * add new bits to todo list * new list * tweak to overview * mixnet node overview * tweak overview * first pass new arch * first pass concepts * first pass traffic * more network docs * moved some chain files to the dev portal stubs * removed old reference to archive * note to client * concepts 2nd pass * crypto first proper pass, sphinx * stub for not p2p * structure change * traffic 2nd pass * misc * hid root index * overhaul arch * overhaul arch * add links + tweaks * update todo list * updating nyx section * added zknym docs * added zknym docs * note on where to find deployed info * smart contracts done * started moving integrations docs over from ts sdk * pass @ integration page * todo for the tldr overview * added ffi stub files * updated todo list * move sdks to developers * initial pass at new clients overview for developers * rework intro * add echo serv to tools * sidebar autocollapse * integration overview work + tools * concepts overview for devporta * stub * more for networking pages * added to concepts in dev portal * updated arch * crypto overview page * typo fix * add credential stub * first pass concepts done * start reorg of rust sdk docs * reorg + added FFI table * added no scroll to inline code * finished ffi overview page * first pass @ rest of rust sdk doc * first pass ffi * tweaks * added testnet example + note to custom topology example overview * stripped unnecessary stuff from TS * tweaks to ffi * updated faq * first pass tcpproxy * commit before moving image dir * moved images/ to correct place * started on client redo * chain first pass * moved cli wallet out of tools * first pass new ws client * new chain info, left todo links in * links * more links * chain registry * added echo server to tools * rust sdk links * ts sdk links * final linkchecks * redo acks diagram as mermaid * add mermaid flow diagram * added links for codecs + full flow diagram * removed todo * remove forced dark mode * diagram + concepts overview * small correction re tcpproxy ffi * remove diagram title * new sock5 diagram, minor client docs tweaks * diagrams * change order in list * added note for standalone: can be accessed via sdk * tweaks * replaced old diagram with mermaid * fixed link * hardcoded import version for the moment * update deps * remove test component * recreated tools dir * remove tools dir moved to wrong palce * prebuild and predev script for autodoc commands * make script own command instead of prebuild * made code blocks sh * updated autogenerated docs * temp * auto commit generated command files * add link to autodoc generated files * updated autodoc for committing changing else exit * auto commit generated command files * updated readme * make subcommand headers smaller * removed mdbook related scripts * update readme * update readme * removed backups of root meta.json * cherry pick yana commits + some extra config in theme * update readme * update theme: width of page and padding * some more themeing * changed erroneous note * docs redirects first pass * tweaking * new pages + rest of redirects for old docs/ * brought in archive + done rewrites for devportal * cherry pick yana landingpage * tweaked landing page component * changed theme of mermaid diagram to match everything else * updated todo list * [DOCs]: Operators rework to next.js (#4930) * initialise operators guides v2 * new introduction page * add variables csv and page * add baseurl to allow short path * add sandbox page * added building from source page * add binary pages * add preliminary steps * clean preliminary steps dir * syntax edit * syntax edit * add configuration page * create new proxy configuration page * create new proxy configuration page * create bonding.mdx page * correct images path * syntax edit * add new validator setup page * add api setup page * add nyx configuration page * add nym node and maintenance pages * finish maintenance and add nymvisor conf page * add manual upgrade page * add nymvisor upgrade page * add performance testing page and dir * add node api check page * add explore nym scripts page * add testing pages * fix menu issue by moving snippets to coomponents * add all troubleshooting pages * add general faq page * add nym node faq page * add nyx faq page * revamp legal forum to community counsel and add all pages * rewire relative paths to new structure * simplify setup and remove lock file * syntax fix * rm package.json * re add package.json, rm package-lock.json * removed old books from commit * address review comments --------- Co-authored-by: mfahampshire <maxhampshire@pm.me> Co-authored-by: mx <33262279+mfahampshire@users.noreply.github.com> * tweak client links * also moved matrix images to correct place * Max/fix links new docs framework (#4989) * tweak client links * standardise images in public/ * old images move to public/archive * rename overview to more descriptive * links (#4990) * links * removed todos * updated todo list * minor themeing * operator redirects * pick yana's edits: remove specified callout theming * added todo comments for old ts sdk redirects * [new/docs/operators]: Create archive section - PR ready to merge (#5004) * [new-docs/operators] : Fix callout syntax (#5006) * fix callout syntax from color to type * correct callout from danger to warning * update footer * updated footer * finalised rewrites * tweaks to clients and reintroduced old examples page * update todo * Max/individual command autodocs (#5015) * auto commit generated command files * added to autodoc.sh: build all binaries before running * autodoc move individual command outputs to components * Max/individual command autodocs (#5018) * updated autodoc script * updated autodoc script for fix + reintroduced gitignore file for generated markdown * auto commit generated command files * auto commit generated command files * added command-outputs to autodoc script * fix merge conflicts * repush components * remove old docs dirs * auto commit generated command files * auto commit generated command files * updated messages paradigm with the standalone proxies * [NEW-DOCs/operators]: Command output, accordion, api scraping & all final tasks (#5026) * add custom scripts, create prebuild to import data to pages * update after latest prebuild * auto commit generated command files * add accordion component * add changbelog page * add node_api_check outputs * finish all command outputs * more accordions beautifications * finish accordion * PR ready to go * address review comments --------- Co-authored-by: mfahampshire <maxhampshire@pm.me> * Adjust padding * Fix responsive design * cherry pick yana landingpage flex update * reremove old docs * added dependencies to readme * pushing build attempt changes * fix merge errors, path errors, dump uselss dinosaurs - BUILT THE F*N DOCS w success * moved prebuild to its own script * generate timenow * auto commit generated command files * remove comment * auto commit generated command files * auto commit generated command files * auto commit generated command files * build from new configs * add mdx type as explicit dep * remove rc from version in package * change predev script * update readme with scripts * update general info * add license * auto commit generated command files * add updated components * removed old examples page for the moment * remove old list will reintroduce hidden behind gitignore for future * reintroduce todo list behind gitignore * added standalone tcpproxy binary info * nothing change for redeploy test * make build standalone * updated readme * working on new cd * remove export * updated ci/cd for docs * added ci script for dist * hide text on laptop wide screen * add pnpm to ci/cd * add pnpm version to ci/cd * add default dir to ci/cd * change path to script * update projct name ci * lint ci branch ignore * add basePath to next.config.js * update doc rewrites * revert basePath addition * update basePath * add mobile styles * fix responsive style * remove old ts sdk docs workflow * temp remove autodoc from workspace * update sidebar for clarity: crypto = cryptography * ignore documentation in pr-validation workflow --------- Co-authored-by: Yana <yanok87@users.noreply.github.com> Co-authored-by: import this <97586125+serinko@users.noreply.github.com> Co-authored-by: fmtabbara <fmtabbara@hotmail.co.uk>
433 lines
18 KiB
Plaintext
433 lines
18 KiB
Plaintext
import { Callout } from 'nextra/components';
|
||
import { Tabs } from 'nextra/components';
|
||
import { VarInfo } from 'components/variable-info.tsx';
|
||
import { Steps } from 'nextra/components';
|
||
import { AccordionTemplate } from 'components/accordion-template.tsx'
|
||
|
||
export const ManagerIPOutput = () => (
|
||
<div>
|
||
Correct <code>./network_tunnel_manager.sh fetch_and_display_ipv6</code> output
|
||
</div>
|
||
);
|
||
|
||
export const ManagerTablesOutput = () => (
|
||
<div>
|
||
Correct <code>./network_tunnel_manager.sh check_nymtun_iptables</code> output
|
||
</div>
|
||
);
|
||
|
||
export const ShowTun = () => (
|
||
<div>
|
||
Correct <code>ip addr show nymtun0</code> output
|
||
</div>
|
||
);
|
||
|
||
|
||
|
||
# Nym Node Configuration
|
||
|
||
<VarInfo />
|
||
|
||
## Basic Changes
|
||
|
||
Nym Node can be configured directly by editing the config file (`config.toml`) located at `~/.nym/nym-nodes/<ID>/config/config.toml` (by default `~/.nym/nym-nodes/default-nym-node/config/config.toml`) or through commands on the binary.
|
||
|
||
### Node Description
|
||
|
||
Operators can add a description themselves to share more information about their `nym-node` publicly.
|
||
|
||
To add or change `nym-node` description is done by editing `description.toml` file located in `~/.nym/nym-nodes/<ID>/data/description.toml`. After saving, don't forget to reload and restart your node [service](#systemd) or simply restart your `nym-node` if you run it without a service (not recommended).
|
||
|
||
**Query description**
|
||
|
||
Nodes description can be queried from API endpoint `/api/v1/description` or via Swagger API UI page `/api/v1/swagger/#/Node/description`.
|
||
|
||
```bash
|
||
curl -X 'GET' \
|
||
'http://<PUBLIC_IP>:8080/api/v1/description' \
|
||
-H 'accept: application/json'
|
||
|
||
# or for https reversed proxy or WSS setup
|
||
curl -X 'GET' \
|
||
'https://<HOSTNAME>/api/v1/description' \
|
||
-H 'accept: application/json'
|
||
```
|
||
|
||
## Commands & Examples
|
||
|
||
Disable sharing of system hardware info with the network:
|
||
|
||
```sh
|
||
./nym-node run --id <ID> --deny-init --mode entry-gateway -w --expose-system-hardware false --expose-system-info false
|
||
```
|
||
|
||
Alternatively these values can be changed in `config.toml` of your node. After saving, don't forget to reload and restart your node [service](#systemd) or simply restart your `nym-node` if you run it without a service (not recommended).
|
||
|
||
> Note: `--expose-system-info false` supersedes `--expose-system-hardware false`. If both are present with conflicting values, the system hardware will not be shown.
|
||
|
||
## VPS Setup and Automation
|
||
|
||
> Replace `<NODE>` variable with type of node you run, in majority of cases this will be `nym-node` (depreciated `nym-mixnode`, `nym-gateway` or `nym-network-requester` are no longer supported).
|
||
|
||
Although it’s not totally necessary, it's useful to have `nym-node` automatically start at system boot time. We recommend to run your remote operation via [`tmux`](#tmux) for easier management and a handy return to your previous session. For full automation, including a failed node auto-restart and `ulimit` setup, [`systemd`](#systemd) is a recommended choice for all operators, as it allows much more automation leading to better uptime and performance.
|
||
|
||
> Do any of these steps and run your automated node before you start bonding process!
|
||
|
||
### nohup
|
||
|
||
`nohup` is a command with which your terminal is told to ignore the `HUP` or 'hangup' signal. This will stop the node process ending if you kill your session.
|
||
|
||
```sh
|
||
nohup ./<NODE> run <ARGUMENTS> # use all the flags you use to run your node
|
||
```
|
||
|
||
### tmux
|
||
|
||
One way is to use `tmux` shell on top of your current VPS terminal. Tmux is a terminal multiplexer, it allows you to create several terminal windows and panes from a single terminal. Processes started in `tmux` keep running after closing the terminal as long as the given `tmux` window was not terminated.
|
||
|
||
Use the following command to get `tmux`.
|
||
|
||
| Platform | Install Command |
|
||
| :--- | :--- |
|
||
| Arch Linux|`pacman -S tmux` |
|
||
| Debian or Ubuntu|`apt install tmux` |
|
||
| Fedora|`dnf install tmux` |
|
||
| RHEL or CentOS|`yum install tmux` |
|
||
| macOS (using Homebrew | `brew install tmux` |
|
||
| macOS (using MacPorts) | `port install tmux` |
|
||
| openSUSE | `zypper install tmux` |
|
||
|
||
In case it didn't work for your distribution, see how to build `tmux` from [version control](https://github.com/tmux/tmux#from-version-control).
|
||
|
||
**Running tmux**
|
||
|
||
Now you have installed tmux on your VPS, let's run a Mix Node on tmux, which allows you to detach your terminal and let your `<NODE>` run on its own on the VPS.
|
||
|
||
* Pause your `<NODE>`
|
||
* Start tmux with the command
|
||
```sh
|
||
tmux
|
||
```
|
||
* tmux terminal should open in the same working directory, just the layout changed into tmux default layout.
|
||
* Start the `<NODE>` again with a command:
|
||
```sh
|
||
./<NODE> run <ARGUMENTS> # use all the flags you use to run your node
|
||
```
|
||
* Now, without closing the tmux window, you can close the whole terminal and the `<NODE>` (and any other process running in tmux) will stay active.
|
||
* Next time just start your teminal, ssh into the VPS and run the following command to attach back to your previous session:
|
||
```sh
|
||
tmux attach-session
|
||
```
|
||
* To see keybinding options of tmux press `ctrl`+`b` and after 1 second `?`
|
||
|
||
### systemd
|
||
|
||
<Steps>
|
||
|
||
###### 1. Create a service file
|
||
|
||
To automate with `systemd` use this init service file by saving it as `/etc/systemd/system/nym-node.service` and follow the [next steps](#2-following-steps-for-nym-node-running-as-systemd-service).
|
||
|
||
- Open service file in a text editor
|
||
```sh
|
||
nano /etc/systemd/system/nym-node.service
|
||
```
|
||
|
||
- Paste this config file, substitute `<USER>` and `<PATH>` with your correct values and add all flags to run your `nym-node` to `ExecStart` line instead of `<ARGUMENTS>`:
|
||
```ini
|
||
[Unit]
|
||
Description=Nym Node
|
||
StartLimitInterval=350
|
||
StartLimitBurst=10
|
||
|
||
[Service]
|
||
User=<USER>
|
||
LimitNOFILE=65536
|
||
ExecStart=<PATH>/nym-node run <ARGUMENTS> # add all the flags you use to run your node
|
||
KillSignal=SIGINT
|
||
Restart=on-failure
|
||
RestartSec=30
|
||
|
||
[Install]
|
||
WantedBy=multi-user.target
|
||
```
|
||
|
||
<Callout type="info" emoji="ℹ️">
|
||
[Accepting T&Cs](setup.md#terms--conditions) is done via a flag `--accept-operator-terms-and-conditions` added explicitly to `nym-node run` command every time. If you use systemd automation, add the flag to your service file's `ExecStart` line.
|
||
</Callout>
|
||
|
||
- Save config and exit
|
||
|
||
<Callout>
|
||
Make sure your `ExecStart <PATH>` and `run` command `<ARGUMENTS>` are correct!
|
||
|
||
Example: If you have built nym in the `$HOME` directory on your server, your username is `jetpanther`, and node `<ID>` is `puma`, then the `ExecStart` line (command) in the script located in `/etc/systemd/system/nym-node.service` for might look like this:
|
||
`ExecStart=/home/jetpanther/nym/target/release/nym-node run --id puma`.
|
||
|
||
Basically, you want the full path to `nym-node`. If you are unsure about your `<PATH>`, then `cd` to your directory where you run your `<NODE>` from and run `pwd` command which returns the full path for you.
|
||
</Callout>
|
||
|
||
###### 2. Following steps for `nym-node` running as `systemd` service
|
||
|
||
Once your service file is saved follow these steps.
|
||
|
||
- Reload systemctl to pickup the new unit file:
|
||
```sh
|
||
systemctl daemon-reload
|
||
```
|
||
|
||
- Enable the newly created service:
|
||
```sh
|
||
systemctl enable nym-node.service
|
||
```
|
||
|
||
- Start your `<NODE>` as a `systemd` service:
|
||
```sh
|
||
service nym-node start
|
||
```
|
||
|
||
This will cause your `<NODE>` to start at system boot time. If you restart your machine, your `<NODE>` will come back up automatically.
|
||
|
||
###### 3. Useful `systemd` commands for easier management
|
||
|
||
- You can monitor system logs of your node by running:
|
||
```sh
|
||
journalctl -u nym-node -f
|
||
```
|
||
|
||
- Or check service status by running:
|
||
```sh
|
||
systemctl status nym-node.service
|
||
# for example systemctl status nym-node.service
|
||
```
|
||
|
||
- You can also do `service <NODE> stop` or `service <NODE> restart`.
|
||
|
||
<Callout type="info" emoji="ℹ️">
|
||
Anytime you make any changes to your `systemd` script after you've enabled it, you will need to run:
|
||
```sh
|
||
systemctl daemon-reload
|
||
service nym-node restart
|
||
```
|
||
|
||
This lets your operating system know it's ok to reload the service configuration and restarts the node in a graceful way.
|
||
</Callout>
|
||
</Steps>
|
||
|
||
|
||
## Connectivity Test and Configuration
|
||
|
||
During our ongoing testing events [Fast and Furious](https://nymtech.net/events/fast-and-furious) we found out, that after introducing IP Packet Router (IPR) and [Nym exit policy](https://nymtech.net/.wellknown/network-requester/exit-policy.txt) on embedded Network Requester (NR) by default, only a fragment of Gateways routes correctly through IPv4 and IPv6. We built a useful monitor to check out your Gateway (`nym-node --mode exit-gateway`) at [harbourmaster.nymtech.net](https://harbourmaster.nymtech.net/).
|
||
|
||
IPv6 routing is not only a case for gateways. Imagine a rare occasion when you run a `mixnode` without IPv6 enabled and a client will sent IPv6 packets through the Mixnet through such route:
|
||
```ascii
|
||
[client] -> [entry-gateway] -> [mixnode layer 1] -> [your mixnode] -> [IPv6 mixnode layer3] -> [exit-gateway]
|
||
```
|
||
In this (unusual) case your `mixnode` will not be able to route the packets. The node will drop the packets and its performance would go down. For that reason it's beneficial to have IPv6 enabled when running a `mixnode` functionality.
|
||
|
||
<Callout>
|
||
We recommend operators to configure their `nym-node` with the full routing configuration.
|
||
|
||
However, most of the time the packets sent through the Mixnet are IPv4 based. The IPv6 packets are still pretty rare and therefore it's not mandatory from operational point of view to have this configuration implemented if you running only `mixnode` mode.
|
||
|
||
If you preparing to run a `nym-node` with all modes enabled in the future, this setup is required.
|
||
</Callout>
|
||
|
||
<Callout type="info" emoji="ℹ️">
|
||
For everyone participating in Delegation Program or Service Grant program, this setup is a requirement!
|
||
</Callout>
|
||
|
||
### Quick IPv6 Check
|
||
|
||
You can always check IPv6 address and connectivity by using some of these methods:
|
||
<br />
|
||
<AccordionTemplate name="Testing IPv6 methods">
|
||
```sh
|
||
# locally listed IPv6 addresses
|
||
ip -6 addr
|
||
|
||
# globally reachable IPv6 addresses
|
||
ip -6 addr show scope global
|
||
|
||
# with DNS
|
||
dig -6 TXT +short o-o.myaddr.l.google.com @ns1.google.com
|
||
dig -t aaaa +short myip.opendns.com @resolver1.opendns.com
|
||
|
||
# https check
|
||
curl -6 https://ifconfig.co
|
||
curl -6 https://ipv6.icanhazip.com
|
||
|
||
# using telnet
|
||
telnet -6 ipv6.telnetmyip.com
|
||
```
|
||
</AccordionTemplate>
|
||
|
||
<Callout type="warning" emoji="⚠️">
|
||
Make sure to keep your IPv4 address enabled while setting up IPv6, as the majority of routing goes through that one!
|
||
</Callout>
|
||
|
||
### Routing Configuration
|
||
|
||
While we're working on Rust implementation to have these settings as a part of the binary build, to solve these connectivity requirements in the meantime we wrote a script [`network_tunnel_manager.sh`](https://gist.github.com/tommyv1987/ccf6ca00ffb3d7e13192edda61bb2a77) to support operators to configure their servers and address all the connectivity requirements.
|
||
|
||
Networking configuration across different ISPs and various operation systems does not have a generic solution. If the provided configuration setup doesn't solve your problem check out [IPv6 troubleshooting](../../troubleshooting/vps-isp.mdx#ipv6-troubleshooting) page. Be aware that you may have to do more research, customised adjustments or contact your ISP to change settings for your VPS.
|
||
|
||
The `nymtun0` interface is dynamically managed by the `exit-gateway` service. When the service is stopped, `nymtun0` disappears, and when started, `nymtun0` is recreated.
|
||
|
||
The `nymwg` interface is used for creating a secure wireguard tunnel as part of the Nym Network configuration. Similar to `nymtun0`, the script manages iptables rules specific to `nymwg` to ensure proper routing and forwarding through the wireguard tunnel. The `nymwg` interface needs to be correctly configured and active for the related commands to function properly. This includes applying or removing iptables rules and running connectivity tests through the `nymwg` tunnel.
|
||
|
||
The script should be used in a context where `nym-node` is running to fully utilise its capabilities, particularly for fetching IPv6 addresses or applying network rules that depend on the `nymtun0` and `nymwg` interfaces and to establish a WireGuard tunnel.
|
||
|
||
**Before starting with the following configuration, make sure you have the [latest `nym-node` binary](https://github.com/nymtech/nym/releases) installed and your [VPS setup](../preliminary-steps/vps-setup.mdx) finished properly!**
|
||
|
||
<Steps>
|
||
|
||
###### 1. Download `network_tunnel_manager.sh`, make executable and run:
|
||
|
||
```sh
|
||
curl -L https://gist.githubusercontent.com/tommyv1987/ccf6ca00ffb3d7e13192edda61bb2a77/raw/74241cc06492b955e582052939090f57a285a65e/network_tunnel_manager.sh -o network_tunnel_manager.sh && \
|
||
chmod +x network_tunnel_manager.sh && \
|
||
./network_tunnel_manager.sh
|
||
```
|
||
|
||
###### 2. Make sure your `nym-node` service is up and running and bond
|
||
|
||
- **If you setting up a new node and not upgrading an existing one, keep it running and [bond](bonding.mdx) your node now**. Then come back here and follow the rest of the configuration.
|
||
|
||
<Callout type="warning" emoji="⚠️">
|
||
**Run the following steps as root or with `sudo` prefix!**
|
||
</Callout>
|
||
|
||
|
||
###### 3. Setup IP tables rules
|
||
|
||
- Apply the rules for IPv4 and IPv6:
|
||
```sh
|
||
./network_tunnel_manager.sh apply_iptables_rules
|
||
```
|
||
|
||
- The process may prompt you if you want to save current IPv4 and IPv6 rules, choose yes.
|
||
|
||

|
||
|
||
- At this point you should see a `global ipv6` address.
|
||
```sh
|
||
./network_tunnel_manager.sh fetch_and_display_ipv6
|
||
```
|
||
<br />
|
||
<AccordionTemplate name={<ManagerTablesOutput/>}>
|
||
```sh
|
||
iptables-persistent is already installed.
|
||
Using IPv6 address: 2001:db8:a160::1/112 #the address will be different for you
|
||
operation fetch_ipv6_address_nym_tun completed successfully.
|
||
```
|
||
</AccordionTemplate>
|
||
|
||
###### 4. Check Nymtun IP tables:
|
||
|
||
```sh
|
||
./network_tunnel_manager.sh check_nymtun_iptables
|
||
```
|
||
|
||
- If there's no process running it wouldn't return anything.
|
||
- In case you see `nymtun0` but not active, this is probably because you are setting up a new (never bonded) node and not upgrading an existing one.
|
||
|
||
<br />
|
||
<AccordionTemplate name={<ManagerIPOutput/>}>
|
||
```sh
|
||
iptables-persistent is already installed.
|
||
network Device: eth0
|
||
---------------------------------------
|
||
|
||
inspecting IPv4 firewall rules...
|
||
Chain FORWARD (policy DROP 0 packets, 0 bytes)
|
||
0 0 ufw-reject-forward all -- * * 0.0.0.0/0 0.0.0.0/0
|
||
0 0 ACCEPT all -- nymtun0 eth0 0.0.0.0/0 0.0.0.0/0
|
||
0 0 ACCEPT all -- eth0 nymtun0 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
|
||
0 0 ACCEPT all -- nymtun0 eth0 0.0.0.0/0 0.0.0.0/0
|
||
0 0 ACCEPT all -- eth0 nymtun0 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
|
||
0 0 ACCEPT all -- nymtun0 eth0 0.0.0.0/0 0.0.0.0/0
|
||
0 0 ACCEPT all -- eth0 nymtun0 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
|
||
---------------------------------------
|
||
|
||
inspecting IPv6 firewall rules...
|
||
Chain FORWARD (policy DROP 0 packets, 0 bytes)
|
||
0 0 ufw6-reject-forward all * * ::/0 ::/0
|
||
0 0 ACCEPT all eth0 nymtun0 ::/0 ::/0 state RELATED,ESTABLISHED
|
||
0 0 ACCEPT all nymtun0 eth0 ::/0 ::/0
|
||
0 0 ACCEPT all eth0 nymtun0 ::/0 ::/0 state RELATED,ESTABLISHED
|
||
0 0 ACCEPT all nymtun0 eth0 ::/0 ::/0
|
||
0 0 ACCEPT all eth0 nymtun0 ::/0 ::/0 state RELATED,ESTABLISHED
|
||
0 0 ACCEPT all nymtun0 eth0 ::/0 ::/0
|
||
operation check_nymtun_iptables completed successfully.
|
||
```
|
||
</AccordionTemplate>
|
||
|
||
###### 5. Apply rules for wireguad routing
|
||
|
||
```sh
|
||
./network_tunnel_manager.sh apply_iptables_rules_wg
|
||
```
|
||
|
||
###### 6. Apply rules to configure DNS routing and allow ICMP piung test for node probing (network testing)
|
||
|
||
```sh
|
||
./network_tunnel_manager.sh configure_dns_and_icmp_wg
|
||
```
|
||
|
||
###### 7. Check `nymtun0` interface and test routing configuration
|
||
|
||
```sh
|
||
ip addr show nymtun0
|
||
```
|
||
|
||
<br />
|
||
<AccordionTemplate name={<ShowTun/>}>
|
||
```sh
|
||
# your addresses will be different
|
||
8: nymtun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1420 qdisc fq_codel state UNKNOWN group default qlen 500
|
||
link/none
|
||
inet 10.0.0.1/16 scope global nymtun0
|
||
valid_lft forever preferred_lft forever
|
||
inet6 2001:db8:a160::1/112 scope global
|
||
valid_lft forever preferred_lft forever
|
||
inet6 fe80::ad08:d167:5700:8c7c/64 scope link stable-privacy
|
||
valid_lft forever preferred_lft forever`
|
||
```
|
||
</AccordionTemplate>
|
||
|
||
- Validate your IPv6 and IPv4 networking by running a joke test via Mixnet:
|
||
```sh
|
||
./network_tunnel_manager.sh joke_through_the_mixnet
|
||
```
|
||
|
||
- Validate your tunneling by running a joke test via WG:
|
||
```sh
|
||
./network_tunnel_manager.sh joke_through_wg_tunnel
|
||
```
|
||
|
||
- **Note:** WireGuard will return only IPv4 joke, not IPv6. WG IPv6 is under development. Running IPR joke through the mixnet with `./network_tunnel_manager.sh joke_through_the_mixnet` should work with both IPv4 and IPv6!
|
||
|
||
|
||
###### 8. Enable wireguard
|
||
|
||
Now you can run your node with the `--wireguard-enabled true` flag or add it to your [systemd service config](#systemd). Restart your `nym-node` or [systemd](#2-following-steps-for-nym-nodes-running-as-systemd-service) service (recommended):
|
||
|
||
```sh
|
||
systemctl daemon-reload && service nym-node restart
|
||
```
|
||
- Optionally, you can check if the node is running correctly by monitoring the service logs:
|
||
|
||
```sh
|
||
journalctl -u nym-node.service -f -n 100
|
||
```
|
||
</Steps>
|
||
|
||
|
||
Make sure that you get the validation of all connectivity. If there are still any problems, please refer to [troubleshooting section](../../troubleshooting/vps-isp.mdx#incorrect-gateway-network-check).
|
||
|
||
|
||
## Next Steps
|
||
|
||
There are a few more good suggestions for `nym-node` configuration, like Web Secure Socket or Reversed Proxy setup. These are optional and you can skip them if you want. Visit [Proxy configuration](configuration/proxy-configuration.mdx) page to see the guides.
|