feat: rebranded from vpn-router to linux-manager.

This commit is contained in:
slawek committed 2026-11-22 09:51:07 +01:00
1 parent 8efe21bfa6
commit 85a1ffa21f
238 files changed
+5010 -3761

No files matched your search

+8 -8
View File
@@ -7,7 +7,7 @@ import RemoteAccessDialog from './RemoteAccessDialog.tsx'
import Toolbar from './Toolbar.tsx'
import WireGuardConfigDialog from './WireGuardConfigDialog.tsx'
import WireGuardPeers from './WireGuardPeers.tsx'
import { Copyable, Grid, IPSEC_HEADS, Pairs, Section, bytes, ipsecRows, text } from './RouterPanel.tsx'
import { Copyable, Grid, IPSEC_HEADS, Pairs, Section, bytes, ipsecRows, text } from './ServerPanel.tsx'
import {
DETAILS_SHAPE, REMOTE_ACCESS_LABELS, REMOTE_ACCESS_SECTION_SHAPES, REMOTE_ACCESS_SHAPE, STATUS_SHAPE, USERS_SHAPE, request,
type RemoteAccess, type RemoteAccessSystem, type RouterDetails, type RouterStatus, type Users,
@@ -21,11 +21,11 @@ const DESCRIPTIONS: Record<RemoteAccessSystem, string> = {
}
/**
* The settings and the state of one remote access system of the router, from its /remote-access and /status/full: the
* The settings and the state of one remote access system of the server, from its /remote-access and /status/full: the
* settings with Edit, whether setup runs the system, why an enabled one does not run, and its connected clients; for
* IKEv2, from /config too, the IPsec security associations, child SAs, connections and connection children of all but
* the site-to-site connections, that is of IKEv2 access; for WireGuard, from /users and /config too, the peers of the users, added and removed here (WireGuardPeers), and each
* connection with its user, found by the peer's key, its IPs, endpoint, handshake and traffic. The router applies a
* connection with its user, found by the peer's key, its IPs, endpoint, handshake and traffic. The server applies a
* change in the background; Refresh reads the state again.
*/
export default function RemoteAccessPanel(props: { system: RemoteAccessSystem }) {
@@ -35,11 +35,11 @@ export default function RemoteAccessPanel(props: { system: RemoteAccessSystem })
const [busy, setBusy] = useState(false)
const [editing, setEditing] = useState(false)
const [showConfig, setShowConfig] = useState(false)
// WireGuard's: the users with their peers, and the router's details with each peer's key, endpoint and traffic.
// WireGuard's: the users with their peers, and the server's details with each peer's key, endpoint and traffic.
const [users, setUsers] = useState<Users | null>(null)
const [details, setDetails] = useState<RouterDetails | null>(null)
const wireguard = props.system === 'wireguard'
// IKEv2's: the router's details with its IPsec SAs and connections, those of IKEv2 access being all but site to site.
// IKEv2's: the server's details with its IPsec SAs and connections, those of IKEv2 access being all but site to site.
const ikev2 = props.system === 'p2s'
const refresh = useCallback(async () => {
@@ -88,7 +88,7 @@ export default function RemoteAccessPanel(props: { system: RemoteAccessSystem })
const peers = status?.wireguard?.peers
const siteToSite = new Set((details?.network.site_to_site ?? []).map((connection) => connection.name))
const ipsec = ipsecRows(ikev2 ? details : null, (name) => !siteToSite.has(name))
// An IPsec table is shown with rows, or with the note that the router could not read them.
// An IPsec table is shown with rows, or with the note that the server could not read them.
const shown = (rows: string[][] | undefined) => ikev2 && details !== null && (rows === undefined || rows.length > 0)
return (
@@ -101,8 +101,8 @@ export default function RemoteAccessPanel(props: { system: RemoteAccessSystem })
{access && settings && settings.enabled && !running && (
<Alert severity="warning" sx={{ mb: 2 }}>
{system === 'wireguard'
? 'WireGuard is enabled but does not run yet; the router applies a change within a moment.'
: `${REMOTE_ACCESS_LABELS[system]} is enabled but does not run yet. It needs wan.local_fqdn${access.local_fqdn ? '' : ', which is not set,'} and the router's VPN server certificate of the P2S issuing CA; the router applies a change within a moment.`}
? 'WireGuard is enabled but does not run yet; the server applies a change within a moment.'
: `${REMOTE_ACCESS_LABELS[system]} is enabled but does not run yet. It needs wan.local_fqdn${access.local_fqdn ? '' : ', which is not set,'} and the server's VPN server certificate of the P2S issuing CA; the server applies a change within a moment.`}
</Alert>
)}
{access && (