diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-15 22:35:45 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-15 22:35:45 +0200 |
| commit | 9e19e9d14ef1e08b26fc474cbc9793f0316fd91f (patch) | |
| tree | 879a3695ec3e8cc28a956354b2b6a5607a12d3a9 /snippets/hyperstack/wg1-setup.sh | |
| parent | 8aa29fa99876e3cce1822c295d8e5b412d13e9bb (diff) | |
Add Hyperstack VM automation and model defaults
Diffstat (limited to 'snippets/hyperstack/wg1-setup.sh')
| -rwxr-xr-x | snippets/hyperstack/wg1-setup.sh | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/snippets/hyperstack/wg1-setup.sh b/snippets/hyperstack/wg1-setup.sh index a0a898c..a57c986 100755 --- a/snippets/hyperstack/wg1-setup.sh +++ b/snippets/hyperstack/wg1-setup.sh @@ -82,12 +82,6 @@ fi VM_IP="$1" -# Validate IP format (basic check) -if ! [[ "$VM_IP" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then - print_error "Error: Invalid IP address format: $VM_IP" - exit 1 -fi - echo "==============================================" print_warning "IMPORTANT: Ensure UDP port ${WG_PORT} is open on the VM!" print_warning "This must be configured in your cloud provider's" @@ -189,6 +183,7 @@ print_success "Server config installed" echo "Configuring firewall (ufw) on hyperstack..." ssh "${SSH_USER}@${VM_IP}" << 'REMOTE_SCRIPT' # Ensure ufw is enabled +sudo ufw allow ssh comment 'Allow SSH' 2>/dev/null || true sudo ufw --force enable >/dev/null 2>&1 || true # Allow WireGuard port |
