
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
wireguarode
Advanced tools
iptables
to acomplish all this.To install Wireguarode, run the following command:
npm install -g wireguarode
You need to have Wireguard already installed, wireguarode
defaults to /etc/wireguard/...
but it's possible to specify a different path.
To use Wireguarode as a CLI tool, simply provide the path to your JSON configuration file as an argument:
wireguarode --help
wireguarode group --help
wireguarode peer --help
wireguarode group add operator
wireguarode group adddestination operator tcp://192.168.1.10:443
wireguarode group adddestination operator tcp://192.168.1.10:22
wireguarode group add god
wireguarode peer add --identifier john.doe2@rainbow --key XXXXXXX --address 10.15.12.4 --group operator
wireguarode reload
wireguarode peer secret john.doe1@rainbow
> Secret generated: otpauth://totp/wireguarode:john.doe1%40rainbow?secret=XXXXXXXXXXXX&period=30&digits=6&algorithm=SHA1&issuer=wireguarode
wireguarode reload
Wireguarode supports several CLI commands for different operations:
save
: Save the configuration file to a specified optional path.generate
: Generate Wireguard configuration files and save them to a specified path.Group Commands:
add
: Add a new group.remove
: Remove an existing group.adddestination
: Add a destination (IP, port, and protocol) to an existing group.removedestination
: Remove a destination (IP, port, and protocol) from an existing group.Peer Commands:
activate
: Activate a peer using a TOTP code.deactivate
: Deactivate a peer.secret
: Activate 2FA for a peer.expire
: Expire peers based on the maximum minutes since their last login (default: 24 hours).add
: Add a new peer.To use a command, pass it as an argument followed by the configuration file:
wireguarode <command> [arguments]
To use Wireguarode as a library, first install it as a dependency in your project:
npm install wireguarode
Then, you can import and use it in your project:
const wireguarode = require('wireguarode');
// Load your WireGuard configuration JSON
const config = require('./path/to/your/config.json');
// Instantiate Wireguarode
var wireguard = new Wireguard();
wireguard.loadConfig(config);
output_example
folder.{
"addresses": [
"192.168.1.1"
],
"enforce2fa": false,
"debug": true,
"path": "/etc/wireguard",
"private_key": "XXXXXXXXXX",
"listen_port": 12345,
"interfaces": [
"eth0",
"eth1"
],
"peers": [
{
"identifier": "john.doe1@rainbow",
"addresses": [
"192.168.20.1"
],
"public_key": "YYYYYYYYYY",
"group": "xpto"
},
{
"identifier": "john.doe2@rainbow",
"addresses": [
"192.168.20.3"
],
"public_key": "HHHHHHHHHHH",
"group": "admin"
}
],
"groups": [
{
"name": "admin",
"destinations": [
"tcp://192.168.1.1:80",
"tcp://192.168.1.1:443"
]
},
{
"name": "admin2",
"destinations": [
"tcp://192.168.1.10:443",
"tcp://192.168.1.2:22",
"tcp://192.168.1.4:22"
]
},
{
"name": "xpto",
"destinations": [
"tcp://192.168.1.2:22"
]
}
]
}
FAQs
Wireguard management tool with ACLs and 2FA
The npm package wireguarode receives a total of 1 weekly downloads. As such, wireguarode popularity was classified as not popular.
We found that wireguarode demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.