#
Alias /santarou "F:/00_web/yyy/"
<Directory "F:/00_web/yyy/">
Options FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
ファイアウォール(UFW): LAN内からだけ許可します。 sudo ufw allow from 192.168.0.0/24 to any port 80,22 proto tcp sudo ufw enable (自分のLANのネットワークアドレスに置き換えてください。有効化の前にSSH許可を必ず設定しないと接続が切れます)
ファイアウォール(UFW): LAN内からだけ許可します。 sudo ufw allow from 192.168.0.0/24 to any port 80,22 proto tcp sudo ufw enable (自分のLANのネットワークアドレスに置き換えてください。有効化の前にSSH許可を必ず設定しないと接続が切れます)
NOTE: MariaDB is secure by default in Debian. Running this script is useless at best, and misleading at worst. This script will be removed in a future MariaDB release in Debian. Please read /usr/share/doc/mariadb-server/README.Debian.gz for details.
Setting the root password or using the unix_socket ensures that nobody can log into the MariaDB root user without the proper authorisation. You already have your root account protected, so you can safely answer ‘n’. Switch to unix_socket authentication [Y/n]
By default, a MariaDB installation has an anonymous user, allowing anyone to log into MariaDB without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment. Remove anonymous users? [Y/n]
SQL executed without errors! The operation might have been successful, or it might have not done anything. Normally, root should only be allowed to connect from ‘localhost’. This ensures that someone cannot guess at the root password from the network. Disallow root login remotely? [Y/n]
SQL executed without errors! The operation might have been successful, or it might have not done anything. By default, MariaDB comes with a database named ‘test’ that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment. Remove test database and access to it? [Y/n]
Dropping test database… SQL executed without errors! The operation might have been successful, or it might have not done anything. Removing privileges on test database… SQL executed without errors! The operation might have been successful, or it might have not done anything. Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? [Y/n]
… Success! Cleaning up… All done! If you’ve completed all of the above steps, your MariaDB installation should now be secure. Thanks for using MariaDB!
AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress this message
sudo systemctl reload apache2
4.運用上の注意点
ポート80の競合 別のWebサーバーが動いていると起動に失敗する sudo ss -tlnp | grep :80 で確認する
4. MAC – burned into the NIC, never leaves the LAN
4. MACアドレス – NICに焼き付けられ、LANから出ることはない
5.NAT
5. NAT – many private IPs, one public
5. NAT – 多数のプライベートIPアドレスと1つのパブリックIPアドレス
6.DHCP
6. DHCP – DISCOVER, OFFER, REQUEST, ACK
6. DHCP – DISCOVER、OFFER、REQUEST、ACK
7.Packets
7. Packets – split up, reassembled in order
7. パケット – 分割され、順番に再構成される
8.OSI Model
8. OSI Model – 7 layers, app down to cable
8. OSIモデル – 7層、アプリケーションからケーブルまで
9.Subnetting & CIDR
9. Subnetting – the mask splits network from host
9. サブネット化 – マスクによってネットワークとホストが分離される
10.Router vs Switch
10. Router vs Switch – by IP vs by MAC
10. ルーターとスイッチ – IPアドレス によるかMACアドレスによるか
11.TCP vs UDP
11. TCP vs UDP – acked stream vs fire and forget
11. TCPとUDP – ACK付きストリームか、送信して忘れる方式か
12.HTTP /HTTPS
12. HTTP vs HTTPS – with or without a lock
12. HTTPとHTTPS – ロックの有無
13.TLS
13. TLS – hello, cert, key, THEN data
13. TLS – hello、cert、key、そしてデータ
14.Firewall
14. Firewall – rules in order, default deny
14. ファイアウォール – ルールは順番に、デフォルトは拒否
15.VPN
15. VPN – a tunnel (the exit node still sees you)
15. VPN – トンネル (出口ノードは依然としてあなたを認識している)
2.解説
1. IP vs MAC is the most confused pair in networking. IP says WHERE you are on the internet. MAC says WHICH physical card you are on this cable. IP is routable and changes as you move networks. MAC is fixed and never crosses a router. Every packet carries both – and the MAC is rewritten at every hop while the IP stays put. Get that and routers, switches, ARP and traceroute all click at once.
用語の解説 IP はインターネット上のどこにいるかを示す MAC はこのケーブル上のどの物理カードであるかを示す
IP はルーティング可能で、ネットワークを移動すると変わる MAC は固定されており、ルーターを通過することはない
全てのパケットには両方が含まれており、 MAC はホップごとに書き換えられる IP はそのままで書き換えられない
2. Most of this list is caching or translation in disguise. DNS caches name to IP. ARP caches IP to MAC. NAT translates and keeps a table to translate replies back. DHCP leases and remembers. 15 items, 3 ideas.
リストのほとんどは、偽装されたキャッシュまたは変換 DNS は名前を IP にキャッシュする ARP は IP を MAC にキャッシュdする NAT は変換し、返信を変換するためのテーブルを保持する DHCP はリースして記憶する
3. The security ones work at DIFFERENT layers – that’s why you need several. A firewall filters ports and addresses. TLS encrypts payloads. A VPN wraps the lot. None replaces the others: a firewall can’t see inside TLS, TLS doesn’t hide WHO you’re talking to, and a VPN just moves the trust boundary to whoever runs the exit node.