network

command
v0.0.0-...-e10c651 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 25 Imported by: 0

Documentation

Overview

proxy a raw tcp connection via a socks5 proxy raw tcp client ---> socks5 proxy ---> raw tcp server

proxy any tcp connection from iptables REDIRECT to socks5 proxy raw tcp client ---> iptables REDIRECT ---> socks5 proxy ---> raw tcp server

simple https to http proxy server for testing PWA on local side

Create Root Key openssl genrsa -des3 -out rootCA.key 4096 openssl ecparam -genkey -name secp384r1 -out rootCA.key

Create and self sign the Root Certificate openssl req -x509 -new -nodes -key rootCA.key -sha256 -days 3650 -out rootCA.crt

Create the signing (csr) openssl req -new -sha256 -key server.key -subj "/C=TW/O=OAC/CN=lvh.me" -out server.csr

Generate the certificate using the mydomain csr and key along with the CA Root key openssl x509 -req -in server.csr -CA rootCA.crt -CAkey rootCA.key -CAcreateserial -out server.crt -days 3650 -sha256

openssl x509 -req \
        -extfile <(printf "[v3_req]\nextendedKeyUsage=serverAuth\nsubjectAltName=DNS:*.lvh.me,DNS:lvh.me") \
        -extensions v3_req \
        -days 3650 -in server.csr -CA rootCA.crt -CAkey rootCA.key \
        -CAcreateserial -out server.crt -sha256

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL