sudo apt-get install python-software-properties sudo apt-add-repository ppa:rubiojr/airvideo sudo apt-get update sudo apt-get install airvideo-server
iptables -L
iptables -nL
/sbin/iptables-restore < iptables
/etc/init.d/iptables save
# iptables log *kern.debug /var/log/iptables
# iptables log *kern.debug /var/log/iptables
yum install iptstate iptstate
- CN:中国
- GB:イギリス
- ID:インドネシア
- IN:インド
- RU:ロシア
- DROP_COUNTRY_MAKE BD
- DROP_COUNTRY_MAKE BR
- DROP_COUNTRY_MAKE CN
- DROP_COUNTRY_MAKE DE
- DROP_COUNTRY_MAKE FR
- DROP_COUNTRY_MAKE GB
- DROP_COUNTRY_MAKE ID
- DROP_COUNTRY_MAKE IN
- DROP_COUNTRY_MAKE IT
- DROP_COUNTRY_MAKE KR
- DROP_COUNTRY_MAKE MX
- DROP_COUNTRY_MAKE NL
- DROP_COUNTRY_MAKE PL
- DROP_COUNTRY_MAKE RO
- DROP_COUNTRY_MAKE RS
- DROP_COUNTRY_MAKE RU
- DROP_COUNTRY_MAKE SA
- DROP_COUNTRY_MAKE TR
- DROP_COUNTRY_MAKE UA
- さらにちなみに攻撃?というか、Wikiを宣伝で変えようとするのは圧倒的に中国が多いです。アクセス履歴をDBにまとめて集計するとそれなりに面白いです(^^)
fiwawalldの停止
sudo systemctl stop firewalld
自動起動の停止
sudo systemctl disable firewalld
ステータスの確認
sudo systemctl status firewalld
sudo yum install iptables-services
sudo systemctl start iptables
sudo systemctl enable iptables
sudo systemctl status iptables
/usr/libexec/iptables/iptables.init save
/var/log/iptables { weekly rotate 10 create postrotate /bin/systemctl reload iptables.service > /dev/null 2> /dev/null || true endscript }
sudo ufw status
sudo ufw allow 10050 sudo ufw reload
sudo ufw status
sudo ufw disable
sudo ufw enable
sudo mysql -u root -p
CREATE DATABASE lychee_db CHARACTER SET utf8 COLLATE utf8_general_ci; CREATE USER 'lychee_user'@'localhost' IDENTIFIED BY 'UltraSecurePassword'; GRANT ALL PRIVILEGES ON lychee_db.* TO 'lychee_user'@'localhost';
wget https://github.com/electerious/Lychee/archive/refs/tags/v3.1.6.zip
unzip v3.1.6.zip
sudo mv -v Lychee-3.1.6 /var/www/html/lychee
cd /var/www/html sudo chown -R apache:apache lychee
cd /var/www/html/lychee sudo chmod -R 777 data/ upload/
sudo systemctl restart httpd
http://(ip address)/lychee
http://192.168.110.1/lychee
/var/www/html/lychee/data/config.php
sudo yum install https://rpms.remirepo.net/enterprise/remi-release-7.rpm sudo yum install --enablerepo=remi-php74 php which
sudo yum install https://rpms.remirepo.net/enterprise/remi-release-8.rpm sudo yum install --enablerepo=remi php which
export APACHE_RUN_USER=apacheUser export APACHE_RUN_GROUP=ApacheUsers
sudo chown apacheUser:ApacheUsers /var/lib/php/sessions -R
wget http://piwigo.org/download/dlcounter.php?code=latest -O piwigo.zip
unzip piwigo.zip
cp -fr piwigo /var/www/html/
chown -R apache:apache /var/www/html/
chmod -R 755 /var/www/html/ chmod -R 777 /var/www/html/_data/
http://(ip address)/piwigo
vim piwigo/include/config_default.inc.php
$conf['picture_ext'] = array('jpg','jpeg','png','gif','PNG','JPG');
$conf['picture_ext'] = array('jpg','jpeg','png','gif');
sudo apt-get install snmpd snmp