コンテンツにスキップ

Overview

Vendors

Cisco

Juniper

Arista

IIJ

OSS

Organization

Procotol

TCP

  • 帯域遅延積。TCPのスループット = window size / RTT[sec]

DNS

Linux

iptables

カンペシート

iptables -A INPUT -p tcp --dport 80 -j DROP
iptables -L --line-number
iptables -D INPUT 1

openssh

ERROR:paramiko.transport:Secsh channel 10 open FAILED: open failed: Administratively prohibited
-> /etc/ssh/sshd_configMaxSessions を増やす。fabricでasynchronous=Trueのスレッドを立てまくったら出た。

FreeBSD

BSDRP

BSD Router Project: https://bsdrp.net/

Utilities

  • linux.ping
    • pingの 0% packet loss の部分は小数点が切り捨てられるので -c 500 で1発落ちた場合でも 0% packet loss になる
  • linux.traceroute
  • linux.tracepath
  • windows.ping
  • windows.tracert
  • windows.nslookup

Monitoring

Automation

Visualization

Testings

Benchmark

Simulator

VPN

  • WireGuard

OpenVPN-Admin

openvpnの管理用WebUI: https://github.com/Chocobozzz/OpenVPN-Admin

Ubuntu 18.04で構築してみる。

$ sudo apt update
$ sudo apt install -y openvpn apache2 php-mysql mysql-server php-zip php unzip git wget sed curl npm nodejs
$ sudo npm install -g bower
$ git clone https://github.com/Chocobozzz/OpenVPN-Admin openvpn-admin
$ cd openvpn-admin
$ sudo ./install.sh /var/www/html www-data www-data

OpenVPNで繋がっているホストを経由してVPN先へSNATする

sudo iptables -t nat -A POSTROUTING -s 192.168.122.0/24 -d 172.16.0.0/22 -o tap0 -j MASQUERADE
route add 172.16.0.0 mask 255.255.252.0 192.168.122.201

Security

Packet capture & analysis

Packet Generator

  • Colasoft Packet Builder 1.0
  • ipsendwin

Redundancy

  • RFC

  • 実装あれこれ

    • vrrpd
    • keepalived
    • CARP/UCARP
      • CARPはカーネルランドで動く。
        • カーネル再構築が必要。
      • UCARPはユーザランドで動く。
        • カーネル再構築不要。
        • I/FのUp/Downにあわせてスクリプト連動可。
      • BSD系のVRRPの改良版実装なんだけど、プロトコル番号貰えなくて涙目。
      • FreeBSDでucarpを動かしてみる。
        • [[:os:freebsd:ucarp:]]
    • DHCP Failover

最終更新日: 2023-06-11 13:58:10