@push.rocks/smartvpn 1.9.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist_rust/smartvpn_daemon_linux_amd64 +0 -0
- package/dist_rust/smartvpn_daemon_linux_arm64 +0 -0
- package/dist_ts/00_commitinfo_data.js +2 -2
- package/dist_ts/smartvpn.interfaces.d.ts +6 -0
- package/package.json +2 -2
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/smartvpn.interfaces.ts +6 -0
|
Binary file
|
|
Binary file
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@push.rocks/smartvpn',
|
|
6
|
-
version: '1.
|
|
6
|
+
version: '1.10.0',
|
|
7
7
|
description: 'A VPN solution with TypeScript control plane and Rust data plane daemon'
|
|
8
8
|
};
|
|
9
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSxzQkFBc0I7SUFDNUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLHlFQUF5RTtDQUN2RixDQUFBIn0=
|
|
@@ -29,6 +29,9 @@ export interface IVpnClientConfig {
|
|
|
29
29
|
transport?: 'auto' | 'websocket' | 'quic' | 'wireguard';
|
|
30
30
|
/** For QUIC: SHA-256 hash of server certificate (base64) for cert pinning */
|
|
31
31
|
serverCertHash?: string;
|
|
32
|
+
/** Forwarding mode: 'tun' (TUN device, requires root) or 'testing' (no TUN).
|
|
33
|
+
* Default: 'testing'. */
|
|
34
|
+
forwardingMode?: 'tun' | 'testing';
|
|
32
35
|
/** WireGuard: client private key (base64, X25519) */
|
|
33
36
|
wgPrivateKey?: string;
|
|
34
37
|
/** WireGuard: client TUN address (e.g. 10.8.0.2) */
|
|
@@ -69,6 +72,9 @@ export interface IVpnServerConfig {
|
|
|
69
72
|
keepaliveIntervalSecs?: number;
|
|
70
73
|
/** Enable NAT/masquerade for client traffic */
|
|
71
74
|
enableNat?: boolean;
|
|
75
|
+
/** Forwarding mode: 'tun' (kernel TUN, requires root), 'socket' (userspace NAT),
|
|
76
|
+
* or 'testing' (monitoring only). Default: 'testing'. */
|
|
77
|
+
forwardingMode?: 'tun' | 'socket' | 'testing';
|
|
72
78
|
/** Default rate limit for new clients (bytes/sec). Omit for unlimited. */
|
|
73
79
|
defaultRateLimitBytesPerSec?: number;
|
|
74
80
|
/** Default burst size for new clients (bytes). Omit for unlimited. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@push.rocks/smartvpn",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A VPN solution with TypeScript control plane and Rust data plane daemon",
|
|
6
6
|
"type": "module",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "(tsbuild tsfolders) && (tsrust)",
|
|
14
14
|
"test:before": "(tsrust)",
|
|
15
|
-
"test": "tstest test/ --verbose",
|
|
15
|
+
"test": "tstest test/ --verbose--verbose --logfile --timeout 60",
|
|
16
16
|
"buildDocs": "tsdoc"
|
|
17
17
|
},
|
|
18
18
|
"repository": {
|
package/ts/00_commitinfo_data.ts
CHANGED
|
@@ -40,6 +40,9 @@ export interface IVpnClientConfig {
|
|
|
40
40
|
transport?: 'auto' | 'websocket' | 'quic' | 'wireguard';
|
|
41
41
|
/** For QUIC: SHA-256 hash of server certificate (base64) for cert pinning */
|
|
42
42
|
serverCertHash?: string;
|
|
43
|
+
/** Forwarding mode: 'tun' (TUN device, requires root) or 'testing' (no TUN).
|
|
44
|
+
* Default: 'testing'. */
|
|
45
|
+
forwardingMode?: 'tun' | 'testing';
|
|
43
46
|
/** WireGuard: client private key (base64, X25519) */
|
|
44
47
|
wgPrivateKey?: string;
|
|
45
48
|
/** WireGuard: client TUN address (e.g. 10.8.0.2) */
|
|
@@ -86,6 +89,9 @@ export interface IVpnServerConfig {
|
|
|
86
89
|
keepaliveIntervalSecs?: number;
|
|
87
90
|
/** Enable NAT/masquerade for client traffic */
|
|
88
91
|
enableNat?: boolean;
|
|
92
|
+
/** Forwarding mode: 'tun' (kernel TUN, requires root), 'socket' (userspace NAT),
|
|
93
|
+
* or 'testing' (monitoring only). Default: 'testing'. */
|
|
94
|
+
forwardingMode?: 'tun' | 'socket' | 'testing';
|
|
89
95
|
/** Default rate limit for new clients (bytes/sec). Omit for unlimited. */
|
|
90
96
|
defaultRateLimitBytesPerSec?: number;
|
|
91
97
|
/** Default burst size for new clients (bytes). Omit for unlimited. */
|