Skip to content

Instantly share code, notes, and snippets.

@ca4ti
ca4ti / ddnsserver.py
Created November 2, 2022 15:26 — forked from pklaus/ddnsserver.py
Simple DNS server (UDP and TCP) in Python using dnslib.py
#!/usr/bin/env python
"""
LICENSE http://www.apache.org/licenses/LICENSE-2.0
"""
import argparse
import datetime
import sys
import time
import threading
# coding=utf-8
"""
LICENSE http://www.apache.org/licenses/LICENSE-2.0
"""
import datetime
import sys
import time
import threading
import traceback
import SocketServer
@ca4ti
ca4ti / twisted.md
Created November 3, 2022 13:38 — forked from michaellihs/twisted.md
Write your own ssh Server with the Python Twisted library

SSH Server with the Python Twisted Library

Installing the library

Assuming you have Python installed on your system:

pip install twisted
pip install pyOpenSSL
pip install service_identity
@ca4ti
ca4ti / README.md
Created November 22, 2022 16:29 — forked from bwann/README.md
Tunnelling SSH over SSL/TLS

How to tunnel SSH over SSL/TLS

laptop ssh -> laptop stunnel -> evil network -> internet -> your server -> your server ssh

Server (your shell server/home box/work box/whatever)

Sets up a stunnel process listening externally on port 2443/tcp, forwards to localhost 22/tcp

  • Install stunnel, e.g. yum install stunnel
  • Install server config snippet to /etc/stunnel/stunnel.conf
@ca4ti
ca4ti / squid.conf
Created November 25, 2022 08:07 — forked from bogdanr/squid.conf
Squid.conf SSL transparent proxy
visible_hostname vm-gateway
#
# Recommended minimum configuration:
#
# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src 10.10.10.0/24
acl localnet src 127.0.0.1
@ca4ti
ca4ti / fax.sh
Created December 1, 2022 15:24 — forked from eugenesan/fax.sh
Simulate modem/fax using SIP+t.38
#!/bin/bash -x
# Simulate modem/fax using SIP+t.38
# Version 0.4 (reduced)
# http://www.voip-info.org/wiki/view/T38modem+SIP+configuration+with+Callcentric
# http://t38modem.cvs.sourceforge.net/viewvc/t38modem/t38modem/ReadMe.txt
#
# efax-gtk params:
@ca4ti
ca4ti / openwrt-on-x86_64.md
Created March 22, 2023 11:15 — forked from pjobson/openwrt-on-x86_64.md
OpenWRT on x86_64

OpenWRT on x86_64

This is a very brief tutorial on getting OpenWRT installed on a regular computer, it assumes you know your way around Linux. If you find this and need additional details, please like, subscribe, and comm... oh wait this isn't youtube, just comment.

This is how I got OpenWRT going on a Mini ITX Intel DH67CF with an Intel G870 CPU with 4GB of RAM.

What You'll Need

  • 2 USB Sticks
  • Linux Live ISO
@ca4ti
ca4ti / README.md
Created July 8, 2023 17:24 — forked from triangletodd/README.md
k3s in LXC on Proxmox

On the host

Ensure these modules are loaded

cat /proc/sys/net/bridge/bridge-nf-call-iptables

Disable swap

sysctl vm.swappiness=0
swapoff -a
@ca4ti
ca4ti / GitConfigHttpProxy.md
Created July 13, 2023 19:23 — forked from evantoli/GitConfigHttpProxy.md
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@ca4ti
ca4ti / installWebminFirewall.txt
Created July 17, 2023 07:44 — forked from piyushrajput/installWebminFirewall.txt
How To Install Webmin and Firewall On CentOS 7
Few day ago we showed you how to install Webmin on Ubuntu 14.10. This brief tutorial is going to show you how to install the same Webmin on a CentOS 7 machine.
For those who don’t know, Webmin is a web-based tool to mange every aspect of your Unix-like systems. From creating new accounts to managing file permissions to installing applications and services, Webmin allows you to perform all these tasks easily from any modern web browser.
Instead of using the command line console or terminal, new systems administrators could install Webmin and perform all system management from via a web browser without sacrificing time and efforts. Webmin also enables remotely management of your servers.
Before you continue with the installation, please make sure you have root level permissions to your system. If you don’t have root access the installation may fail.