Просмотр исходного кода

refactor(branding): replace all occurrences of RouterOS with DebTik across UI, CLI, and services

Proxmox Router 1 неделя назад
Родитель
Сommit
5e9478762f

BIN
bin/debtik-cli


BIN
bin/proxmox-router


+ 3 - 3
cmd/server/main.go

@@ -265,7 +265,7 @@ func main() {
 
 
 	// Print startup banner
 	// Print startup banner
 	fmt.Println("========================================================")
 	fmt.Println("========================================================")
-	fmt.Println("      ⚡ Proxmox RouterOS Appliance Controller ⚡        ")
+	fmt.Println("            ⚡ DebTik Appliance Controller ⚡           ")
 	fmt.Println("========================================================")
 	fmt.Println("========================================================")
 	fmt.Printf(" Web UI & API        : http://0.0.0.0%s\n", *addr)
 	fmt.Printf(" Web UI & API        : http://0.0.0.0%s\n", *addr)
 	fmt.Printf(" CLI Telnet Service  : 0.0.0.0%s (debtik-cli / telnet)\n", telnetAddr)
 	fmt.Printf(" CLI Telnet Service  : 0.0.0.0%s (debtik-cli / telnet)\n", telnetAddr)
@@ -293,7 +293,7 @@ func main() {
 	}()
 	}()
 
 
 	<-stopChan
 	<-stopChan
-	fmt.Println("\nShutting down RouterOS Controller gracefully...")
+	fmt.Println("\nShutting down DebTik Controller gracefully...")
 
 
 	ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
 	ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
 	defer cancel()
 	defer cancel()
@@ -301,5 +301,5 @@ func main() {
 	if err := httpServer.Shutdown(ctx); err != nil {
 	if err := httpServer.Shutdown(ctx); err != nil {
 		log.Printf("Server shutdown error: %v", err)
 		log.Printf("Server shutdown error: %v", err)
 	}
 	}
-	fmt.Println("RouterOS Controller stopped.")
+	fmt.Println("DebTik Controller stopped.")
 }
 }

+ 1 - 1
install.sh

@@ -1,7 +1,7 @@
 #!/usr/bin/env bash
 #!/usr/bin/env bash
 set -e
 set -e
 
 
-echo "=== Installing Proxmox RouterOS Controller ==="
+echo "=== Installing DebTik Controller ==="
 
 
 # Check root
 # Check root
 if [ "$EUID" -ne 0 ]; then
 if [ "$EUID" -ne 0 ]; then

+ 2 - 2
internal/certs/manager.go

@@ -326,7 +326,7 @@ func (cm *CertManager) CreateCA(req CreateCARequest) (*CertificateInfo, error) {
 
 
 	org := req.Organization
 	org := req.Organization
 	if org == "" {
 	if org == "" {
-		org = "DebTik RouterOS Appliance"
+		org = "DebTik Network Appliance"
 	}
 	}
 	country := req.Country
 	country := req.Country
 	if country == "" {
 	if country == "" {
@@ -431,7 +431,7 @@ func (cm *CertManager) CreateCertificate(req CreateCertRequest) (*CertificateInf
 
 
 	org := req.Organization
 	org := req.Organization
 	if org == "" {
 	if org == "" {
-		org = "DebTik RouterOS Appliance"
+		org = "DebTik Network Appliance"
 	}
 	}
 	country := req.Country
 	country := req.Country
 	if country == "" {
 	if country == "" {

+ 2 - 2
internal/cli/executor.go

@@ -2232,7 +2232,7 @@ func (e *Executor) handleSystem(parts []string, user *auth.PublicUser) string {
 			freeMemMB = st.MemTotalMB - st.MemUsedMB
 			freeMemMB = st.MemTotalMB - st.MemUsedMB
 		}
 		}
 		out := "                   uptime: " + formatUptime(int64(st.UptimeSeconds)) + "\n"
 		out := "                   uptime: " + formatUptime(int64(st.UptimeSeconds)) + "\n"
-		out += fmt.Sprintf("                  version: DebTik RouterOS 1.0 (Kernel %s)\n", st.Kernel)
+		out += fmt.Sprintf("                  version: DebTik 1.0 (Kernel %s)\n", st.Kernel)
 		out += fmt.Sprintf("              free-memory: %d MiB\n", freeMemMB)
 		out += fmt.Sprintf("              free-memory: %d MiB\n", freeMemMB)
 		out += fmt.Sprintf("             total-memory: %d MiB\n", st.MemTotalMB)
 		out += fmt.Sprintf("             total-memory: %d MiB\n", st.MemTotalMB)
 		out += fmt.Sprintf("                cpu-count: %d\n", st.CPUCores)
 		out += fmt.Sprintf("                cpu-count: %d\n", st.CPUCores)
@@ -2279,7 +2279,7 @@ func (e *Executor) handleSystem(parts []string, user *auth.PublicUser) string {
 
 
 func (e *Executor) showHelp() string {
 func (e *Executor) showHelp() string {
 	b := strings.Builder{}
 	b := strings.Builder{}
-	b.WriteString(ColorCyan + ColorBold + "DebTik RouterOS CLI Command Directory:\n" + ColorReset)
+	b.WriteString(ColorCyan + ColorBold + "DebTik CLI Command Directory:\n" + ColorReset)
 	b.WriteString("  /interface                     - Network interface manager (print, enable, disable, set)\n")
 	b.WriteString("  /interface                     - Network interface manager (print, enable, disable, set)\n")
 	b.WriteString("    /interface vlan              - VLAN virtual interfaces (print, add, remove)\n")
 	b.WriteString("    /interface vlan              - VLAN virtual interfaces (print, add, remove)\n")
 	b.WriteString("    /interface bridge            - L2 Bridge and ports (print, add, remove, port)\n")
 	b.WriteString("    /interface bridge            - L2 Bridge and ports (print, add, remove, port)\n")

+ 1 - 1
internal/cli/formatter.go

@@ -28,7 +28,7 @@ func Banner(version, username, role, hostname string) string {
 	sb.WriteString(" | |_| |  __/ |_) | | | |   < \n")
 	sb.WriteString(" | |_| |  __/ |_) | | | |   < \n")
 	sb.WriteString(" |____/ \\___|_.__/|_| |_|_|\\_\\\n")
 	sb.WriteString(" |____/ \\___|_.__/|_| |_|_|\\_\\\n")
 	sb.WriteString(ColorReset)
 	sb.WriteString(ColorReset)
-	sb.WriteString(ColorBold + " DebTik RouterOS Network Appliance Controller" + ColorReset + "\n")
+	sb.WriteString(ColorBold + " DebTik Network Appliance Controller" + ColorReset + "\n")
 	sb.WriteString(fmt.Sprintf(ColorDim+" Appliance Hostname : %s%s\n", hostname, ColorReset))
 	sb.WriteString(fmt.Sprintf(ColorDim+" Appliance Hostname : %s%s\n", hostname, ColorReset))
 	sb.WriteString(fmt.Sprintf(ColorDim+" Authenticated User : %s%s%s (Role: %s%s%s)\n", ColorGreen, username, ColorDim, ColorYellow, strings.ToUpper(role), ColorDim))
 	sb.WriteString(fmt.Sprintf(ColorDim+" Authenticated User : %s%s%s (Role: %s%s%s)\n", ColorGreen, username, ColorDim, ColorYellow, strings.ToUpper(role), ColorDim))
 	sb.WriteString(ColorDim + " Type 'help' or '?' for available commands.\n" + ColorReset)
 	sb.WriteString(ColorDim + " Type 'help' or '?' for available commands.\n" + ColorReset)

+ 1 - 1
internal/cli/server.go

@@ -72,7 +72,7 @@ func (s *Server) Start() error {
 	stopCh := s.stopChan
 	stopCh := s.stopChan
 	s.mu.Unlock()
 	s.mu.Unlock()
 
 
-	log.Printf("[CLI] RouterOS-compatible CLI server listening on %s (TCP/Telnet)", s.addr)
+	log.Printf("[CLI] DebTik CLI server listening on %s (TCP/Telnet)", s.addr)
 
 
 	for {
 	for {
 		conn, err := l.Accept()
 		conn, err := l.Accept()

+ 1 - 1
internal/cli/ssh.go

@@ -108,7 +108,7 @@ func (s *SSHServer) Start() error {
 	stopCh := s.stopChan
 	stopCh := s.stopChan
 	s.mu.Unlock()
 	s.mu.Unlock()
 
 
-	log.Printf("[CLI-SSH] RouterOS SSH server listening on %s", s.addr)
+	log.Printf("[CLI-SSH] DebTik SSH server listening on %s", s.addr)
 
 
 	for {
 	for {
 		rawConn, err := l.Accept()
 		rawConn, err := l.Accept()

+ 4 - 3
internal/services/manager.go

@@ -73,13 +73,13 @@ func (m *Manager) initDefaults() {
 		Name:     ServiceTelnet,
 		Name:     ServiceTelnet,
 		Port:     8282,
 		Port:     8282,
 		Disabled: false,
 		Disabled: false,
-		Comment:  "RouterOS CLI Console over TCP/Telnet",
+		Comment:  "DebTik CLI Console over TCP/Telnet",
 	}
 	}
 	m.services[ServiceSSH] = Service{
 	m.services[ServiceSSH] = Service{
 		Name:     ServiceSSH,
 		Name:     ServiceSSH,
 		Port:     2222,
 		Port:     2222,
 		Disabled: false,
 		Disabled: false,
-		Comment:  "RouterOS CLI Secure Shell (SSH)",
+		Comment:  "DebTik CLI Secure Shell (SSH)",
 	}
 	}
 }
 }
 
 
@@ -112,10 +112,11 @@ func (m *Manager) load() error {
 				cur.Certificate = s.Certificate
 				cur.Certificate = s.Certificate
 			}
 			}
 			if s.Comment != "" {
 			if s.Comment != "" {
-				cur.Comment = s.Comment
+				cur.Comment = strings.ReplaceAll(s.Comment, "RouterOS", "DebTik")
 			}
 			}
 			m.services[name] = cur
 			m.services[name] = cur
 		} else {
 		} else {
+			s.Comment = strings.ReplaceAll(s.Comment, "RouterOS", "DebTik")
 			m.services[name] = s
 			m.services[name] = s
 		}
 		}
 	}
 	}

+ 1 - 1
internal/vpn/ppp_server.go

@@ -377,7 +377,7 @@ func (m *PPPServerManager) DeleteSecret(id string) error {
 // SyncSecretsToSystem synchronizes all enabled secrets into /etc/ppp/chap-secrets and /etc/ppp/pap-secrets
 // SyncSecretsToSystem synchronizes all enabled secrets into /etc/ppp/chap-secrets and /etc/ppp/pap-secrets
 func (m *PPPServerManager) SyncSecretsToSystem() error {
 func (m *PPPServerManager) SyncSecretsToSystem() error {
 	var lines []string
 	var lines []string
-	lines = append(lines, "# Autogenerated by Proxmox RouterOS - DO NOT EDIT MANUALLY")
+	lines = append(lines, "# Autogenerated by DebTik - DO NOT EDIT MANUALLY")
 	lines = append(lines, "# client\tserver\tsecret\tIP addresses")
 	lines = append(lines, "# client\tserver\tsecret\tIP addresses")
 
 
 	for _, s := range m.secrets {
 	for _, s := range m.secrets {

+ 7 - 7
internal/web/static/app.js

@@ -3984,7 +3984,7 @@ function populateGeoIPSelect(selectId, currentVal = '') {
   sel.appendChild(grpCountries);
   sel.appendChild(grpCountries);
 }
 }
 
 
-// ==================== FIREWALL FILTER MODAL (ROUTEROS WEBFIG / WINBOX V4) ====================
+// ==================== FIREWALL FILTER MODAL (DEBTIK WEBFIG / WINBOX V4) ====================
 
 
 function switchFwRuleTab(tab) {
 function switchFwRuleTab(tab) {
   state.activeFwRuleTab = tab;
   state.activeFwRuleTab = tab;
@@ -4725,7 +4725,7 @@ function renderNATRules() {
   });
   });
 }
 }
 
 
-// ==================== FIREWALL NAT MODAL (ROUTEROS WEBFIG / WINBOX V4) ====================
+// ==================== FIREWALL NAT MODAL (DEBTIK WEBFIG / WINBOX V4) ====================
 
 
 function switchNATRuleTab(tab) {
 function switchNATRuleTab(tab) {
   state.activeNATRuleTab = tab;
   state.activeNATRuleTab = tab;
@@ -5359,7 +5359,7 @@ function renderMangleRules() {
   });
   });
 }
 }
 
 
-// ==================== FIREWALL MANGLE MODAL (ROUTEROS WEBFIG / WINBOX V4) ====================
+// ==================== FIREWALL MANGLE MODAL (DEBTIK WEBFIG / WINBOX V4) ====================
 
 
 function switchMangleRuleTab(tab) {
 function switchMangleRuleTab(tab) {
   state.activeMangleRuleTab = tab;
   state.activeMangleRuleTab = tab;
@@ -8854,7 +8854,7 @@ function renderBgpRoutes() {
 }
 }
 
 
 // =========================================================================
 // =========================================================================
-// ROUTEROS v7 OSPF TABLE RENDERING & SORTING
+// DEBTIK v7 OSPF TABLE RENDERING & SORTING
 // =========================================================================
 // =========================================================================
 
 
 function sortOspfTable(tab, col) {
 function sortOspfTable(tab, col) {
@@ -9291,7 +9291,7 @@ async function submitBgpInstance(e) {
   }
   }
 }
 }
 
 
-// ----------------- BGP Peer Connection Modal (RouterOS v7) -----------------
+// ----------------- BGP Peer Connection Modal (DebTik v7) -----------------
 function switchBgpPeerModalTab(tab) {
 function switchBgpPeerModalTab(tab) {
   const tabs = ['general', 'extra', 'attributes', 'filter'];
   const tabs = ['general', 'extra', 'attributes', 'filter'];
   tabs.forEach(t => {
   tabs.forEach(t => {
@@ -9794,7 +9794,7 @@ async function deleteBgpNetwork(id) {
 }
 }
 
 
 // =========================================================================
 // =========================================================================
-// ROUTEROS v7 OSPF MODALS & ACTIONS
+// DEBTIK v7 OSPF MODALS & ACTIONS
 // =========================================================================
 // =========================================================================
 
 
 // --- 1. OSPF INSTANCE ---
 // --- 1. OSPF INSTANCE ---
@@ -11440,7 +11440,7 @@ function populateBridgePortCandidateSelect(selectId, currentVal = '') {
 }
 }
 
 
 // -------------------------------------------------------------
 // -------------------------------------------------------------
-// RouterOS v7 Routing Filters Management (/routing filter)
+// DebTik Routing Filters Management (/routing filter)
 // -------------------------------------------------------------
 // -------------------------------------------------------------
 
 
 if (!state.activeRoutingFilterTab) state.activeRoutingFilterTab = 'rules';
 if (!state.activeRoutingFilterTab) state.activeRoutingFilterTab = 'rules';

+ 1 - 1
internal/web/static/index.html

@@ -11973,6 +11973,6 @@
   </div>
   </div>
 
 
   <datalist id="fw-addrlist-datalist"></datalist>
   <datalist id="fw-addrlist-datalist"></datalist>
-  <script src="app.js?v=19.0"></script>
+  <script src="app.js?v=20.0"></script>
 </body>
 </body>
 </html>
 </html>

+ 1 - 1
systemd/proxmox-router.service

@@ -1,5 +1,5 @@
 [Unit]
 [Unit]
-Description=Proxmox RouterOS Network Appliance Controller
+Description=DebTik Network Appliance Controller
 After=network.target network-online.target
 After=network.target network-online.target
 Wants=network-online.target
 Wants=network-online.target