unzip <FILE>.zip tar --zstd -cvf <FILE>.tar.zstd <FOLDER> touch -r <FILE>.zip <FILE>.tar.zstd
Homelab power control form the shell
In the first part we gain the ability to control the power switches in Home Assistant. Now we can utilize the API to control the status of the power switch. For now i use the homeassistant_api in python, to do this. Below you can find an example. Looking ahead, the vision includes functionalities for power …
GOLANG
go env -w GOPROXY="direct"set HOME=c:\somewhereset HOMEDRIVE=c: https://github.com/MarkusDeutschmann/ssh2plink/tags
Telekom SIP
As a personal Note the German Telekom SIP settings SIP-ID/Benutzer:Ihre TelefonnummerBildschirmname (falls vorhanden):Ihre TelefonnummerAuthentifizierungsname/Benutzername:Ihre E-Mail-Adresse, z. B. ihr-name@t-online.dePasswort:Ihr PasswortSIP-Proxy:tel.t-online.deRegistrar:tel.t-online.deRealm:tel.t-online.deSTUN-Server:stun.t-online.deOutbound-Proxy:leer lassen oder ebenfalls tel.t-online.de Gigaset https://service.gigaset.com/de/support/solutions/articles/75000035447-dns-srv-lookup There is no A record for tel.t-online.de # dig @ns1.edns.t-ipnet.de tel.t-online.de ; <<>> DiG 9.18.12-1-Debian <<>> @ns1.edns.t-ipnet.de tel.t-online.de ; (2 servers found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- …
HP Aruba – IRF
HP IRF (Intelligent Resilient Framework) are similar to Cisco VSS Prepare the Switch irf portsirf port membersHistoryLinks Some basic information only Prepare the Switch renumber if needed irf member 1 renumber 2 irf ports every switch has two ports irf-port <member>/1 irf-port <member>/2 irf port members irf-port 2/1 port group interface Ten-GigabitEthernet 2/0/21 port group …
Linux – FirewallD and nftables
just some notes about FirewallD and nftables firewall-cmd --zone public --add-rich-rule 'rule service name="ssh" accept limit value="1/m"' firewall-cmd --zone=trusted --add-source=-your-own-IP-here- firewall-cmd --runtime-to-permanent vi /etc/firewalld/policies/dns.xml <?xml version="1.0" encoding="utf-8"?> <policy target="CONTINUE"> <service name="dns"/> <rule> <service name="dns"/> <accept> <limit value="5000/m"/> </accept> </rule> <ingress-zone name="ANY"/> <egress-zone name="HOST"/> </policy> firewall-cmd --reload firewall-cmd --info-policy=dns dns (active) priority: -1 target: CONTINUE ingress-zones: …
DNS with systemd-resolved
For certain environments like docker / kubernets hosts i find it usefull to have a permanent query log in place. As the time writing query logging with systemd-resolved can only be achived with debug enabled. Personalty i do not like to run a daemon needlessly in debug mode.With Bind9 it is easy to have a …
DNS Firewall or Bind9 Response Policy Zones (RPZ)
Using piHole for a while at home, i feeld that i wanted to bring things back to my already running bind9 name servers. Please do not misunderstand me PiHole is really a great solution. Bind has the option to build up a DNS Firewall. Enable the RPZ Zoneload the zone filethe zone file Build a …
Continue reading "DNS Firewall or Bind9 Response Policy Zones (RPZ)"
AWS IP Address Ranges
We had the need to find AWS IP Addresess for a certain Service and Regions, and use them to route traffic over Amazons Direct Connect.Luckily Amzon publishes the IP Ranges in Json Format. Shell CodeRoutes for ciscoShellAWS IP Ranges Syntax SyntaxsyncTokenprefixesipv6_prefixesip_prefixipv6_prefixnetwork_border_groupregionserviceFiltering the JSON fileLinuxExample 1. Get the creation dateExample 2. Get the information for a …
Fortigate Useful Commands
This is my personal catalog of typical troubleshooting commands I employ when dealing with FortiGate Firewalls. In contrast to Cisco, where 'show' is the universal command, Fortinet offers a range of options, including 'show,' 'get,' 'diagnose,' and 'execute,' for retrieving pertinent information. Important to remember It is 'get router info routing-table' to see the routing …
Cisco / IronPort Web Proxy – Useful Commands
Some commands if find use full while working with Cisco Ironport Proxies. Kick the Proxy Process Packet CaptureList and Download the Captures Kick the Proxy Process This forces the proxy to reconnect to upstream proxies, etc. proxy> diagnostic Choose the operation you want to perform: - NET - Network Diagnostic Utility. - PROXY - Proxy …
Continue reading "Cisco / IronPort Web Proxy – Useful Commands"
