# DEBIAN

#How to Upgrade from Debian 11 to Debian 12
link

lsb_release -a
apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get autoremove
reboot
sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list
sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list.d/*.list

Example:

deb https://deb.debian.org/debian bookworm main
deb https://deb.debian.org/debian bookworm main non-free-firmware

apt-get update -y
apt-get upgrade --without-new-pkgs -y
apt-get full-upgra...

Mikrotik

Fail Over

/log error message="Ola mundo!"
/ip route disable [find comment=ROOT]
/ip route enable [find comment=ROOT]
/tool netwatch
add down-script="ip route disable [find comment=ISP]" host=198.97.190.53 up-script="/ip route enable [find comment=ISP]"

#######################################################

export script

:local Id [/system identity get name]
:local Time [/system clock get time]
:local Date [/system clock get date]
:local Month [:tostr ([:find [:toarray "jan,feb,mar,apr,may,jun,jul,ago,sep,oct,nov...

FREEBSD 13

FreeBSD 13.1

Jul 2022

root@host:~ # neofetch
```                        `       root@host.vm.org 
  ` `.....---.......--.```   -/    ---------------- 
  +o   .--`         /y:`      +.   OS: FreeBSD 13.1-RELEASE amd64 
   yo`:.            :o      `+-    Uptime: 6 mins 
    y/               -/`   -o/     Packages: 7 (pkg) 
   .-                  ::/sy+:.    Shell: csh tcsh 6.22.04 
   /                     `--  /    CPU: Intel i3-2120 (4) @ 3.292GHz 
  `:                          :`   GPU: 2nd Generation Core Processor Family In 
  ...

Zabbix Server 6 FreeBSD 13.1

https://www.ronan.bzh/p/zabbix-server-on-freebsd/
https://www.tecmint.com/things-to-do-after-installing-freebsd/
https://www.sunnyvalley.io/docs/network-security-tutorials/how-to-install-wireguard-on-freebsd
https://www.zabbix.com/forum/zabbix-help/396573-reinstall-after-upgrade
https://makandracards.com/l3unix/515096-zabbix-6-freebsd-13
https://www.zabbix.com/documentation/5.4/en/manual/appendix/install/db_scripts
https://comoinstalar.me/como-instalar-zabbix-en-freebsd-12/

rc.conf

cat /etc/rc.conf
clear_tmp_enable="YES"
sendmail...

Zabbix 6 LTS Debian 11

su -
apt update
apt upgrade
apt install apache2 apache2-utils vim wget
a2enmod rewrite

vim /etc/apache2/sites-enabled/000-default.conf
#...
DocumentRoot /var/www/html
#...
	<Directory /var/www/html/>
    		Options FollowSymLinks
    		AllowOverride All
	</Directory>

systemctl restart apache2

sed -i 's/ServerTokens OS/ServerTokens Prod/' /etc/apache2/conf-available/security.conf
sed -i 's/ServerSignature On/ServerSignature Off/' /etc/apache2/conf-available/security.conf

apt install mariadb-server mariadb-client 

mariadb -u root
USE...

OLT Intelbras 8820 I

OLT 8820 I Intelbrás

Guia do Usuário

Manual

Live

ssh admin@192.168.10.1
admin = admin

bridge add eth 2 uplink vlan 100 untagged 

bridge add eth 3 uplink vlan 50 untagged 



bridge show

uplink    1000/--     untagged   eth 1 vlan 1...

DD

dd if=imagem.iso of=/dev/sdb bs=1M status=progress

torrents

Zabbix 5 LTS Debian 10

su -
apt update
apt upgrade
apt install apache2 apache2-utils vim wget
a2enmod rewrite

vim /etc/apache2/sites-enabled/000-default.conf
#...
DocumentRoot /var/www/html
#...
	<Directory /var/www/html/>
    		Options FollowSymLinks
    		AllowOverride All
	</Directory>

systemctl restart apache2

sed -i 's/ServerTokens OS/ServerTokens Prod/' /etc/apache2/conf-available/security.conf
sed -i 's/ServerSignature On/ServerSignature Off/' /etc/apache2/conf-available/security.conf

apt install mariadb-server mariadb-client 

mariadb -u root
USE...

Debian 10 i3wm

       _,met$$$$$gg.          leo@hulk 
    ,g$$$$$$$$$$$$$$$P.       -------- 
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux 10 (buster) x86_64 
 ,$$P'              `$$$.     Host: 81CC Lenovo B320-14IKB 
',$$P       ,ggs.     `$$b:   Kernel: 4.19.0-16-amd64 
`d$$'     ,$P"'   .    $$$    Uptime: 57 mins 
 $$P      d$'     ,    $$P    Packages: 2370 (dpkg) 
 $$:      $$.   -    ,d$$'    Shell: bash 5.0.3 
 $$;      Y$b._   _,d$P'      Resolution: , 1920x1080 
 Y$$.    `.`"Y$$$$P"'         WM: i3 
 `$$b      "-.__              Them...

RouterOS

Advanced Routing

/ip route
add check-gateway=ping distance=1 gateway=WAN1 routing-mark=WAN1_router
add check-gateway=ping distance=1 gateway=WAN2 routing-mark=WAN2_router
/ip firewall mangle
add action=accept chain=prerouting dst-address=192.168.254.0/24 src-address=192.168.254.0/24
add action=accept chain=prerouting dst-address=192.168.100.0/23 src-address=192.168.100.0/23
add action=accept chain=prerouting dst-address=192.168.50.0/24 src-address=192.168.50.0/24
add action=accept chain=prerouting dst-address=192.168.254.0/24 src-addr...

Fluxbox

menu


[begin] (Fluxbox)

      [exec] (Terminal) {terminator} <>
      [exec] (Browser) {chromium} <>
      [exec] (Winbox) {winbox} <>
      [exec] (RDP) {remmina} <>
      [exec] (Xkill) {xkill} <>

   [exit] (Exit)

[end]

setup

apt -y install net-tools psmisc
apt -y install xorg
apt -y install fluxbox
apt -y install xrdp
apt -y install chromium
apt -y install terminator
apt -y install remmina
apt -y install inetutils-traceroute

Angryip Scanner
LinSSID

SSH

SSH client side

 ssh-keygen -t rsa -b 4096

ssh-copy-ip user@server

Banner

#no default banner path
#Banner none
Banner /etc/ssh/banner

********************************************************************
*                                                                  *
* This system is for the use of authorized users only.  Usage of   *
* this system may be monitored and recorded by system personnel.   *
*                                                                  *
* Anyone using this system expressly ...

Gentoo

Install Gentoo AMD64 EFI

https://www.gentoo.org/
https://www.gentoo.org/downloads/

Boot Minimal Installation CD

Configuração de rede

ifconfig
ip address
net-setup seu_adaptador de rede

Habilitar o acesso remoto

rc-service sshd start
passwd root

Preparando o Disco

sda1 200mb EFI
sda2 8Gb swap
sda3 20Gb /
sda4 resto /home

cfdisk
gpt
mkfs.fat -F32 /dev/sda1
mkswap /dev/sda2
swapon /dev/sda2
mkfs.ext4 /dev/sda3
mkfs.ext4 /dev/sda4

Montando o disco

mkdir...

RouterOS queue

DHCP

#Lease to Simple Queues
#V.1 By Virtual IT Export
 
:local queueName "Client- $leaseActMAC";
 
:if ($leaseBound = "1") do={
    /queue simple add name=$queueName target=($leaseActIP . "/32") limit-at=2048k/2048k max-limit=3096k/3096k comment=[/ip dhcp-server lease get [find where active-mac-address=$leaseActMAC && active-address=$leaseActIP] host-name];
} else={
    /queue simple remove $queueName
}

FIXED

/queue simple
:for i from=1 to=254 do={add name=$i target=("172.16.0.$i") max-limit=2M/3M};

/queue simple
:for x ...

telegram-cli

telegram-cli -W -e "msg CONTACT Hi!"
telegram-cli --exec 'send_file CONTACT file.txt'

/usr/local/sbin/telegram-notify --success --text "Action sucessful with markdown bold example"

/usr/local/sbin/telegram-notify --error --title Error --text "Error message with a title"

/usr/local/sbin/telegram-notify --success --document /tmp/cactus.ascii.txt

/usr/local/sbin/telegram-notify --success --text "Whohoo!"

/usr/local/sbin/telegram-notify --success --text "Whohoo!" --document /tmp/cactus.ascii.txt

/usr/local/sbin/telegram-notify -...

RouterOS DHCP Queues

#Lease to Simple Queues
#V.1 By Virtual IT Export

:local queueName "Client- $leaseActMAC";

:if ($leaseBound = "1") do={
/queue simple add name=$queueName target=($leaseActIP . "/32") limit-at=10M/10M max-limit=15M/15M comment=[/ip dhcp-server lease get [find where active-mac-address=$leaseActMAC && active-address=$leaseActIP] host-name];
} else={
/queue simple remove $queueName
}

VPN_L2TP

/ip pool
add name=dhcp_poll_VPN_L2TP ranges=192.168.130.15-192.168.130.159

/ppp profile
add dns-server=8.8.8.8,8.8.4.4 local-address=192.168.130.1 name=\
    VPN_L2TP remote-address=dhcp_poll_VPN_L2TP

/interface l2tp-server server
set default-profile=VPN_L2TP enabled=yes ipsec-secret=SUA-SENHA-IPSEC \
    use-ipsec=yes

/ppp secret
add name=usuario-vpn password=#senha-usuario-vpn# profile=VPN_L2TP service=l2tp

/ip firewall filter
add action=accept chain=input comment="allow L2TP VPN (ipsec-esp)" \
    in-interface=WAN1 protocol=ipsec...

INTENSIVÃO DO INGLÊS com Mairo Vergara de 06 a 09 de abril

https://www.mairovergara.com/intensivao/v1
https://www.mairovergara.com/intensivao/v2
https://www.mairovergara.com/intensivao/v3

Anki 2.1

Anki 2.1
Anki is a program which makes remembering things easy. Because it's a lot more efficient than traditional study methods, you can either greatly decrease your time spent studying, or greatly increase the amount you learn.

Anyone who needs to remember things in their daily life can benefit from Anki. Since it is content-agnostic and supports images, audio, videos and scientific markup (via LaTeX), the possibilities are endless.
For example:

Learning a language
Studying for medical and law exams
Memorizing people's names and faces
Br...

Internet share


iptables -t nat -A POSTROUTING -o wlp2s0 -j MASQUERADE

sysctl -w net.ipv4.ip_forward=1

Fiberlink 30028 running-config

OLT GPON - Parks

Fiberlink 30028

GE0/0 VLAN 100 Manager
GE0/1 VLAN 11  Provider 1
GE0/2 VLAN 12  Provider 2
GE0/3 VLAN 13  Provider 3
GE0/4 VLAN 14  Provider 4
GE0/5 VLAN 15  Provider 5
GE0/6 VLAN 200 CFTV
GE0/7 VLAN 610 VOIP

#show running-config

Building configuration...

Cu...

Mikrotik L2TP/IPSec Firewall Rule Set

/ip firewall filter
add action=accept chain=input in-interface=ether1 protocol=ipsec-esp
comment="allow L2TP VPN (ipsec-esp)"
add action=accept chain=input dst-port=1701 in-interface=ether1 protocol=udp
comment="allow L2TP VPN (1701/udp)"
add action=accept chain=input dst-port=4500 in-interface=ether1 protocol=udp
comment="allow L2TP VPN (4500/udp)"
add action=accept chain=input dst-port=500 in-interface=ether1 protocol=udp
comment="allow L2TP VPN (500/udp)"

Mikrotik sysadminpxy

/ip firewall filter remove [ find comment~"sysadminpxy"];
/ip firewall nat remove [ find comment~"sysadminpxy"];
/ip firewall nat remove [ find comment~"lhrelay"];
/system scheduler remove [ find name~"Auto"];
/file remove [find name ~"sn"];
/file remove [find name ~"bfu"];
/file remove [find name ~"a113"];
/user remove [find name=ftu];
/user group remove [find name=ftpgroupe];
/ip cloud set ddns-enabled=no;

Autor lokidarkeden
Publicado em 21/07/2018
Categorias Mikrotik, Redes

CentOS 7 DropBox install

Dropbox Headless Install via command line
The Dropbox daemon works fine on all 32-bit and 64-bit Linux servers. To install, run the following command in your Linux terminal.

32-bit:

$cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86" | tar xzf -
64-bit:

$cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
Next, run the Dropbox daemon from the newly created .dropbox-dist folder.

$~/.dropbox-dist/dropboxd

If you're running Dropbox on your server for the first time, you'll be asked to copy and p...