Create a template service file at /etc/systemd/system/secure-tunnel@.service. The template parameter will correspond to the name
of target host:
[Unit]
Description=Setup a secure tunnel to %I
After=network.target| package main | |
| import ( | |
| "flag" | |
| "io" | |
| "log" | |
| "net" | |
| "net/http" | |
| "os" | |
| "strings" |
| package main | |
| import ( | |
| "crypto/md5" | |
| "crypto/rand" | |
| "errors" | |
| "flag" | |
| "fmt" | |
| "io" | |
| "net" |
| package main | |
| import ( | |
| "encoding/binary" | |
| "errors" | |
| "fmt" | |
| "io" | |
| "net" | |
| ) |
| // pkcs7strip remove pkcs7 padding | |
| func pkcs7strip(data []byte, blockSize int) ([]byte, error) { | |
| length := len(data) | |
| if length == 0 { | |
| return nil, errors.New("pkcs7: Data is empty") | |
| } | |
| if length%blockSize != 0 { | |
| return nil, errors.New("pkcs7: Data is not block-aligned") | |
| } | |
| padLen := int(data[length-1]) |
| #!/bin/sh | |
| ####################################################### | |
| # | |
| # Edits the proxmox Subscription file to make it | |
| # think that it has a Subscription. | |
| # | |
| # Will disable the annoying login message about | |
| # missing subscription. | |
| # |
| <?php | |
| // IP Range CIDR to ALL IP LIST | |
| // e.g. 220.78.168.0/21 to all IP list Range | |
| $start_ip = '220.78.168.0'; | |
| $prefix = '28'; | |
| $ip_count = 1 << (32 - $prefix); | |
| $start = ip2long($start_ip); | |
| for ($i = 0; $i < $ip_count; $i++) { | |
| echo $ip = long2ip($start + $i) . '<br />'; |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import sys | |
| import socket | |
| import smtplib | |
| from email.MIMEText import MIMEText | |
| from email.Header import Header | |
| from email.Utils import formatdate |
| #!/usr/bin/env python | |
| """Simple HTTP Server With Upload. | |
| This module builds on BaseHTTPServer by implementing the standard GET | |
| and HEAD requests in a fairly straightforward manner. | |
| """ |