GNB(8)
π GNB(8) β the girlies' guide to gnb π
okay so bestie, welcome to the gnb manual page, section 8 of the System Manager's Manual, and honestly? this one's a whole vibe. gnb is the command that sets up the VPN used by opengnb. that's it, that's the job. let's get into it β¨
πΈ NAME πΈ
gnb β the gnb command that sets up the VPN used by opengnb. no cap, that's literally what it does π
π SYNOPSIS π
gnb [-i IFNAME] -c CONFIG_PATH [OPTION]
so like, -c CONFIG_PATH is the main character here β she's required, she's not optional, she's the whole point. everything else is supporting cast π«Ά
β¨ DESCRIPTION β¨
okay so first thing, the lore:
GNB version 1.2.8.1, protocol version 1.1.2. iconic. we love a version number that knows what it is π
registered packet filter:
gnb_pf_dumpgnb_pf_routegnb_pf_crypto_xorgnb_pf_crypto_arc4
those are the filters, they're registered, they said "we're here" and they showed up π
π Command Summary: π
not me listing every single one of these. i would never skip a single flag, because you deserve the full picture, bestie. here we go:
-c,--confβ config path. the path to your config. she's essential, don't skip her.-n,--nodeidβ nodeid. your node's id, so she knows who she is π¦-P,--public-index-serviceβ run as public index service. main character mode: public.-I,--index-addressβ index address. where the index lives.-a,--node-addressβ node ip address. the ip of the node.-r,--node-routeβ node route. the route, for the node.-i,--ifnameβ TUN Device Name. it'sgnb_tunin Linux default, fyi.-4,--ipv4-onlyβ Use IPv4 Only. four only, no six, respectfully.-6,--ipv6-onlyβ Use IPv6 Only. six only, no four, also respectfully.-d,--daemonβ daemon. she goes to the background. mysterious. elusive. π§-q,--quietβ disabled console output. shhh π€«-t,--selftestβ self test. she checks herself before she wrecks herself.-p,--passcodeβ a hexadecimal string of 32-bit unsigned integer, used to strengthen safety. default is0x9d078107. keep this secret bestie, i'm serious π-l,--listenβ listen address. default is'0.0.0.0:9001'.-b,--ctl-blockβ ctl block mapper file.-e,--es-argvβ pass-throughgnb_esargv. you're just handing stuff off to the other girlie.-V,--verboseβ verbose mode. she talks a LOT. love that for her.--node-woker-queueβ node woker queue length. (yes, it's spelledwokerin the original, we don't correct the queen, we copy her exactly π«Ά)--index-woker-queueβ index woker queue length.--index-service-woker-queueβ index service woker queue length.--port-detect-startβ port detect start.--port-detect-endβ port detect end.--port-detect-rangeβ port detect range.--mtuβ TUN Device MTU. ipv4:532ο½1500, ipv6:1280ο½1500. pick a number in range, she's not flexible about it.--cryptoβ ip frame crypto.'xor'or'arc4'or'none', default is'xor'.--crypto-key-update-intervalβ crypto key update interval.'hour'or'minute'or none, default is'none'.--multi-index-typeβ'simple-fault-tolerant'or'simple-load-balance'or'full', default is'simple-load-balance'.--multi-forward-typeβ'simple-fault-tolerant'or'simple-load-balance', default is'simple-fault-tolerant'.--socket-if-nameβ example:'eth0','eno1', only for unix-like os. windows girlies, this one's not for you π--address-secureβ hide part of ip address in logs.'on'or'off', default is'on'.--if-dumpβ dump the interface data frame.'on'or'off', default is'off'.--pf-routeβ packet filter route.--multi-socketβ'on'or'off', default is'off'.--direct-forwardingβ'on'or'off', default is'on'.--set-tunβ'on'or'off', default is'on'.--index-workerβ'on'or'off', default is'on'.--index-service-workerβ'on'or'off', default is'on'.--node-detect-workerβ'on'or'off', default is'on'.--set-fwdu0β'on'or'off', default is'on'.--pid-fileβ pid file.--node-cache-fileβ node address cache file.--log-file-pathβ log file path.--log-udp4β send log to the address ipv4. default is'127.0.0.1:9000'.--log-udp-typeβ log udp type.'binary'or'text', default is'binary'.--console-log-levelβ log console level,0-3.--file-log-levelβ log file level,0-3.--udp-log-levelβ log udp level,0-3.--core-log-levelβ core log level,0-3.--pf-log-levelβ packet filter log level,0-3.--main-log-levelβ main log level,0-3.--node-log-levelβ node log level,0-3.--index-log-levelβ index log level,0-3.--index-service-log-levelβ index service log level,0-3.--node-detect-log-levelβ node detect log level,0-3.--helpβ the classic. she helps. π
π¦ Example: π¦
the way these examples are just sitting here being useful. periodt:
./gnb -i gnbtun -c $node_conf_dir -e "--upnp"
./gnb -P
./gnb -P --console-log-level=3 --index-service-log-level=3
./gnb -n 1001 -I '$public_index_ip/$port' -p $passcode
./gnb -n 1002 -I '$public_index_ip/$port' -p $passcode
./gnb -n 1001 -a 'i/0/$public_index_ip/$port' -p $passcode
./gnb -n 1002 -a 'i/0/$public_index_ip/$port' -p $passcode
see how $node_conf_dir, $public_index_ip, $port and $passcode are placeholders? swap in your own, bestie, don't run these raw π
π SEE ALSO π
go read her sisters, they're all iconic:
π HOMEPAGE π
Source Code and Documentation at https://github.com/gnbdev/opengnb
(no link formatting, i know, the terminal said no. but you can copy-paste it, i believe in you π«Ά)
π COPYRIGHT π
Copyright Β© 2019-2022 gnbdev <gnbdev@qq.com>
and that's the whole page, bestie!! this was VERSION 1.2.8.1, dated December 2021, and it's giving GNB(8) energy from start to finish. go set up that VPN, you absolute legend π β¨
π¦ where this page comes from
- debian bookworm: opengnb 1.3.0.c-2 Β· GPL-3.0-or-later
- debian trixie: opengnb 1.6.0.a-2 Β· GPL-3.0-or-later
- ubuntu noble: opengnb 1.4.5.b-2build2 Β· GPL-3.0-or-later
- ubuntu questing: opengnb 1.6.0.a-2
- ubuntu resolute: opengnb 1.6.1-1 Β· GPL-3.0-or-later
- ubuntu stonking: opengnb 1.6.5-2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms