![38% of CISOs Fear They’re Not Moving Fast Enough on AI](https://cdn.sanity.io/images/cgdhsj6q/production/faa0bc28df98f791e11263f8239b34207f84b86f-1024x1024.webp?w=400&fit=max&auto=format)
Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
telnet-openvpn
Advanced tools
Connect to OpenVPN management port through telnet.
$ npm install telnet-openvpn --save
var TelnetVPN = require('telnet-openvpn');
var vpn = new TelnetVPN();
var options = {
host: '127.0.0.1',
port: 1337,
ors: '\r\n',
sendTimeout: 2000
};
var auth = {
username: 'username',
password: 'password'
};
vpn.connect(options);
vpn.on('connect', function() {
vpn.exec('log on all').then(function() {
return vpn.exec('state on').then(function() {
return vpn.exec('hold release').then(function() {
return vpn.authorize(auth);
});
});
}).catch(function(error) {
console.error(error);
});
});
vpn.on('log', function(result) {
console.log(result);
});
vpn.on('error', function(result) {
console.log(result);
vpn.disconnect();
});
vpn.on('end', function(result) {
console.log(result);
vpn.destroy();
});
vpn.on('data', function(result) {
console.log(result);
});
import TelnetVPN from 'telnet-openvpn';
let vpn = new TelnetVPN();
let options = {
host: '127.0.0.1',
port: 1337,
ors: '\r\n',
sendTimeout: 2000
};
let auth = {
username: 'username',
password: 'password'
};
vpn.connect(options);
vpn.on('connect', () => {
vpn.exec('log on all').then(() => {
return vpn.exec('state on').then(() => {
return vpn.exec('hold release').then(() => {
return vpn.authorize(auth);
});
});
}).catch((error) => {
console.error(error);
});
});
vpn.on('log', (result) => {
console.log(result);
});
vpn.on('error', (error) => {
console.log(error);
vpn.disconnect();
});
vpn.on('end', (result) => {
console.log(result);
vpn.destroy();
});
vpn.on('data', (result) => {
console.log(result);
});
Connects to the management port specified in the .ovpn file.
More options can be found in the telnet-client docs.
options:
After user connects, vpn.authorize(auth) must be called if .ovpn file specifies auth-user-pass.
options:
Specify telnet console commands through this function.
EventEmitter options emitted as information is received from telnet console.
events:
Ends telnet session and triggers the 'end' event emitter.
Removes all instances of telnet console socket connection. Used for 'error' event emitter.
Closes telnet session but does not kill all telnet instances like vpn.destroy(). It is possible the server may send some data.
# OpenVPN management IP and port (localhost 1337).
management 127.0.0.1 1337
# OpenVPN wait for hold release from telnet console (vpn.exec('hold release')).
management-hold
# OpenVPN wait for authentication from telnet console (vpn.authorize(auth)).
management-query-passwords
# OpenVPN authenticate using username and password from telnet console.
auth-user-pass
Start OpenVPN through command line (requires OpenVPN) :
$ openvpn myconfig.ovpn
For more OpenVPN management commands please follow OpenVPN's documentation
FAQs
Connect to OpenVPN management port through telnet.
The npm package telnet-openvpn receives a total of 1,392 weekly downloads. As such, telnet-openvpn popularity was classified as popular.
We found that telnet-openvpn 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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.