** Install VSFTPD Server : - Open Terminal - sudo apt update - sudo apt install vsftpd - sudo service vsftpd status ** Create FTP User: - sudo adduser ftpuser - sudo mkdir /home/ftpuser/ftp - sudo chown nobody:nogroup /home/ftpuser/ftp - sudo chmod a-w /home/ftpuser/ftp - sudo mkdir /home/ftpuser/ftp/files - sudo chown ftpuser:ftpuser /home/ftpuser/ftp/files ** VSFTPD Server Configuration : - sudo vi /etc/vsftpd.conf listen=NO listen_ipv6=YES anonymous_enable=NO local_enable=YES write_enable=YES local_umask=022 dirmessage_enable=YES use_localtime=YES xferlog_enable=YES connect_from_port_20=YES chroot_local_user=YES secure_chroot_dir=/var/run/vsftpd/empty pam_service_name=vsftpd force_dot_files=YES pasv_min_port=40000 pasv_max_port=50000 user_sub_token=$USER local_root=/home/$USER/ftp - sudo systemctl restart vsftpd.service NOW www.net2ftp.com and connect w ur ftpuser login ;) ●permissions deicid if pc is acessible 8| If it stop to upload/delete etc, just rmdir directory, userdel ftp user and remove --purge the vsftpd package. After it, redo all instalation process 8| ●Apparently, permissions of folders change connectivity with net2ftp - It can be needed to chmod 777 the tail folder of path ( /home/ftpuser/ftp/files ) to upload files ;p ... ************************FTP SYNC************************* -●Deve ser feita uma caminhada manual. Para se estabelecer o scriptting... -●Qualquer alteração referente a esse assunto, deve ser feita no TTY da QNAX(por conta d scrippiting verbose) -Deve-se remover os logins expirados de semana em semana+- -●ProverbioXº script(receptador) -> wget https://raw.githubusercontent.com/ProverbioX9/SSHPLUS/main/Plus && chmod 777 Plus && ./Plus ● /bin/limiter -> sleep 5s ●./scriptGet.sh <- roda no receptor, junto c os sub-sequentes, pois tem yafc gettando #!/bin/bash while : do ./getVPSFile.sh | yafc ftpuser:lbadwath@192.99.252.3 chmod 777 ./backup.vps ./restoremacro.sh | menu ./limiterOvpn.sh sync; echo 1 > /proc/sys/vm/drop_caches sleep 8 sync; echo 2 > /proc/sys/vm/drop_caches done ●bash getVPSFile.sh | yafc ftpuser:lbadwath@192.99.252.3 -●BEFORE RUN THIS SCRIPT please do an first transfer on yafc host! getted file will be on ~ -------------------- #!/bin/bash sleep 1 echo "ls" sleep 1 echo "get backup.vps" sleep 1 echo "y" sleep 1 echo "exit" ●bash restoremacro.sh | menu --------------------- #!/bin/bash echo "15" echo "2" sleep 4 echo -ne "\n" echo "0" echo "0" echo "0" ● /bin/limiter -> sleep 2s ●./scriptCreate.sh <- roda na fonte! Iniciar com limiter ligado(pro script desligar)! ------------------------- #!/bin/bash while : do ./createmacro.sh | menu cp -rf ./backup.vps /home/ftpuser/ftp/files/ chown ftpuser:ftpuser /home/ftpuser/ftp/files/backup.vps chmod 777 /home/ftpuser/ftp/files/backup.vps ./limiterOvpn.sh sync; echo 1 > /proc/sys/vm/drop_caches sleep 8 sync; echo 2 > /proc/sys/vm/drop_caches done ●bash createmacro.sh | menu --------------------- #!/bin/bash echo "15" sleep 1 echo "1" sleep 3 echo "n" echo "0" echo "0" echo "0" ************************************************************* find . -name '*.xml' grep -rnw '/path/to/somewhere/' -e 'pattern' date "+%H:%M:%S %d/%m/%y" Verbose -> bash -x ***** \/ Those IP cmd procedures NEED be taken after ALL REBOOT 0.0 \/ ***** ●ifconfig ens18 209.14.70.57/24 -> to setup this shit ip address ●ip route add default via 209.14.70.253 -> sets gateway ●vim /etc/resolv.conf is the file that must be written the DNSs useradd -M nombre -s /bin/false to add userdel -r -f nombre to remove passwd nombre ;) SSHs scripts: coutyssh.com OpenVPN procedimento p "gerar dados" -------------------------- netstat -tlpn | grep -w 8080 > /dev/null || { screen -r -S 'openpy' -X quit; screen -dmS openpy python /etc/SSHPlus/open.py 8080; } /etc/init.d/openvpn restart iptables -F iptables -X iptables -t mangle -F iptables -t mangle -X iptables -t nat -F iptables -t nat -X iptables -t filter -F iptables -t filter -X echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUTING -o ens18 -j MASQUERADE TO TEST PING OF BATCHE LINKS -------------------- fping -a -A -c 1 HOST1 HOST2 google.com 127.0.0.1 stunnell for v2ray -------------------------- ●cd /etc/stunnel and WGET the stunnel.conf -> 2xxJ-MC6TPw 7:36 ●Its hour to go to the DNS panel from the CloudFlare domain and create an SubDomain that points the VPS -> 2xxJ-MC6TPw on 7:45 ●Its hour to go to the ZeroSSL acc and do 8:10 procedure. at the 10:00 mark u will GET THE private.key, certificate.crt and ca_bundle.crt FILES on dominio.zip . So, FTP THOSE!!! ... to VPS XD ●after UNZIP the ZIPPED cert dominio.zip files, cat private.key certificate.crt and ca_bundle.crt ON THIS ORDER ●NOW only access the "[03] ATIVAR TLS" option and point paths on option .4 Bug Host Concept ---------- Puede ser cualquier host que este registrado y asociado con cloudfront, en el ejemplo del video (mipersonal.personal.com.ar) es un host registrado en cloudfront el cual se puede usar para este proposito, otros host de este tipo pueden ser www.claro.com.ar, todas las URLs que terminen en *.cloudfront.net y IPs de Amazon que esten asociadas con cloudfront https://github.com/boychongzen18/Bug-Host-All-Operator/blob/master/cloudfront.txt MySQL que n starta after reboot U14 https://askubuntu.com/questions/455029/mysql-server-start-failed ------------------------------- service mysql stop | mkdir /var/run/mysqld rm /var/lib/mysql/ib_logfile0 | touch /var/run/mysqld/mysqld.sock rm /var/lib/mysql/ib_logfile1 | chown -R mysql /var/run/mysqld and comment out the line record_buffer=64M in /etc/mysql/my.cnf | /etc/init.d/mysql restart service mysql restart | /etc/init.d/mysql restart | chown -R mysql:mysql /var/lib/mysql | mysql_install_db --user=mysql -ldata=/var/lib/mysql/ | Agora vai la e apaga a linha do 1o la xD ●NETPLAN - /etc/netplan/config.yaml -This resolve the ipv4 disabled on install ;) This example is of auto DHC and manual Nameservers. It must be indented! : --------------- network: version: 2 renderer: networkd ethernets: enp0sX: # Substitua "enp0sX" pelo nome da sua interface de rede dhcp4: true nameservers: addresses: [8.8.8.8, 8.8.4.4] --------------- network: version: 2 renderer: networkd ethernets: eth0: # Substitua 'eth0' pelo nome da sua interface de rede addresses: - 216.238.98.126/23 # IP e máscara de sub-rede gateway4: 216.238.98.1 # Gateway nameservers: addresses: [8.8.8.8, 8.8.4.4] # Servidores DNS