Opening
The command-line client
This is the AoBai command-line client for Linux.
You can open the terminal screen, or just type commands.
The terminal screen is in Chinese and English.
What you see on screen is this demo, not your own machine.
The terminal screen
Dashboard and help
Run aobaicli ui, and you land on this screen.
aobaicli-ui next to it is only a launcher for the same screen.
The dashboard lists login, connect, speed test, routing, and settings.
ui-help
Number keys jump, Enter opens an item, and question mark is help.
Leaving the screen does not disconnect a VPN that is already up.
Connect and modes
Proxy, or TUN
The connect page picks a node, and switches between proxy and TUN.
Proxy mode opens one local port, and apps point their traffic at it.
TUN mode takes this machine's traffic, and needs system permission.
If you do not refresh, it does not fetch the node list.
Speed test
It does not start by itself
The speed-test page does not start measuring on its own.
When you want the latency, press start.
The numbers follow the network.
Do not treat them as a fixed score.
Route by country
One country direct, the rest by VPN
Route by country sends one country direct, and the rest through the VPN.
ui-country
There are only three: mainland China, Russia, and Iran.
Choose off, and everything goes through the VPN.
If the rule file is not on this machine, it works after the download.
DNS providers
Pick one of six
The DNS provider is at the bottom of routing and protection.
Cloudflare has two addresses.
The others are Google, Quad9, AdGuard, and Mullvad.
Once connected, lookups use the encrypted DNS you picked.
Providers named by a hostname look up that name once, outside the VPN.
Blocking
Ads, trackers, harmful, adult
Blocking covers ads, trackers, harmful sites, and adult sites.
Harmful sites means phishing, scams, and malware.
Each row says whether its rule file is on this machine.
Until that file is here, that item does not block yet.
Custom rules
Exclude, or send only the list
Custom rules can exclude, or send only the list through the VPN.
A list can hold a domain, a domain plus subdomains, and an address range.
A country works too.
Still just China, Russia, and Iran.
If you write it wrong, the screen says what is wrong, in the current language.
Route by program
TUN mode only
Routing by program only works in TUN mode.
You can enter a process name, or a full path that starts with a slash.
Exclude keeps those programs off the VPN.
Include means only they use it.
LAN and leak protection
This is not a kill switch
Bypass LAN and leak protection both work only in TUN mode.
Bypass LAN lets your home and office networks go direct.
Leak protection tries to keep traffic from slipping around the VPN.
This is not a kill switch.
The command line does not have one.
The proxy port
Localhost, or a network card
The network-card and IP binding decides where the proxy port listens.
By default it listens only here.
Bind a card, and devices on the LAN can use it.
If the port is taken, it looks upward, up to the limit you set.
Commands
The same config as the screen
What you change on the screen and by command is the same config.
config show reads the current values. config set changes one.
cli-help
Lists use config add and config remove, one entry at a time.
While connected, changing routing, blocking, or DNS reconnects on its own.
Languages
Two on screen, nineteen in the voiceover
The screen language is in settings, and it is only Chinese and English.
ui-settings-en
Command help is bilingual.
Both languages are in the same text.
ui-dashboard-en
The voiceover has nineteen languages.
The screen itself has these two.
Closing
That is the command line
That is what the Linux command-line client can do now.
Children mode and policy sync are not on the command line.
For the full graphical app, use the desktop client.