DOKK / manpages / debian 12 / opengnb / gnb.8.en
GNB(8) System Manager's Manual GNB(8)

gnb - gnb command to setup VPN used by opengnb

gnb [-i IFNAME] -c CONFIG_PATH [OPTION]

config path
nodeid
run as public index service
index address
node ip address
node route
TUN Device Name, it's gnb_tun in Linux default.
-4, --ipv4-only
Use IPv4 Only
-6, --ipv6-only
Use IPv6 Only
daemon
disabled console output
self test
a hexadecimal string of 32-bit unsigned integer, use to strengthen safety default is 0x9d078107
listen address default is '0.0.0.0:9001'
ctl block mapper file
pass-through gnb_es argv
verbose mode
node woker queue length
index woker queue length
index service woker queue length
port detect start
port detect end
port detect range
TUN Device MTU ipv4:532~1500, ipv6: 1280~1500
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'

'simple-fault-tolerant' or 'simple-load-balance' or 'full' default is 'simple-load-balance'
'simple-fault-tolerant' or 'simple-load-balance' default is 'simple-fault-tolerant'
example: 'eth0', 'eno1', only for unix-like os
hide part of ip address in logs 'on' or 'off' default is 'on'
dump the interface data frame 'on' or 'off' default is 'off'
packet filter route
'on' or 'off' default is 'off'
'on' or 'off' default is 'on'
'on' or 'off' default is 'on'
'on' or 'off' default is 'on'
'on' or 'off' default is 'on'
'on' or 'off' default is 'on'
'on' or 'off' default is 'on'
pid file
node address cache file
log file path
send log to the address ipv4 default is '127.0.0.1:9000'
log udp type 'binary' or 'text' default is 'binary'
log console level 0-3
log file level 0-3
log udp level 0-3
core log level 0-3
packet filter log level 0-3
main log level 0-3
node log level 0-3
index log level 0-3
index service log level 0-3
node detect log level 0-3

--help

./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

gnb_crypto(1), gnb_ctl(8), gnb_es(8)

Source Code and Documentation at https://github.com/gnbdev/opengnb

Copyright © 2019-2022 gnbdev<gnbdev@qq.com>

December 2021 VERSION 1.2.8.1