Unifi 컨트롤러 생산


#1

80R 장비에서의 history

root@shieldone-unifi:~# history
    1  grub-install /dev/sda
    2  exirt
    3  exit
    4  dhcpcd eth1
    5  dhclient eth1
    6  ifconfig eth1
    7  reboot
    8  ifconfig
    9  ifconfig -a
   10  avahi
   11  cat /var/log/messages
   12  screen
   13  ll /dev/tty*
   14  ps axf
   15  lsusb
   16  lspcui
   17  lspci
   18  lscpu
   19  cd /lib
   20  ll
   21  modprobe
   22  lsmod
   23  ls
   24  cd
   25  cd /
   26  ll
   27  cd lib/
   28  ll
   29  cd modules/
   30  ll
   31  cd 3.15.10/
   32  ll
   33  cd kernel/
   34  ll
   35  cd drivers/
   36  ll
   37  cd usb/
   38  ll
   39  cd dwc2
   40  ll
   41  cd ..
   42  cd gadget/
   43  ll
   44  ls
   45  modprobe g_ether
   46  cd ../../..
   47  cd ../..
   48  ld
   49  ls
   50  ll
   51  cd 3.15.10/
   52  ll
   53  grep g_ether
   54  grep g_ether *
   55  lsmod |grep g_eth
   56  modprobe g_ether
   57  modprobe gadget
   58  modprobe g_ether
   59  ifconfig
   60  ifconfig -a
   61  modprobe cdc_ether
   62  ifconfi
   63  ifconfig
   64  ifconfig -a
   65  tail /var/log/messages
   66  ifconfig -a
   67  modprobe cdc_ether cdc_eem cdc_subset
   68  ifconfig -a
   69  ifconfig usb0
   70  lsmod
   71  modprobe cdc_eem cdc_subset
   72  modprobe cdc_eem
   73  modprobe cdc_subset
   74  lsmod
   75  lsmod |grep cdc
   76  ifconfig
   77  ifconfig -a
   78  ifconfig usb0
   79  tail /var/log/messages
   80  tail /var/log/messages avahi
   81  avahi
   82  tail /var/log/messages avahi
   83  tail /var/log/messages -f
   84  ifconfig
   85  ifconfig -a
   86  ifconfig usb0 up
   87  modprobe g_ether
   88  tail /var/log/messages -f
   89  ll /boot/
   90  ll /boot/config-3.15.10
   91  less /boot/config-3.15.10
   92  grep -i g_ether /boot/config-3.15.10
   93  grep -i gadget /boot/config-3.15.10
   94  grep -i dwc /boot/config-3.15.10
   95  modprobe dwc2
   96  tail /var/log/messages -f
   97  lsmod
   98  cd /lib/modules/
   99  find -name *usb*
  100  find -name *usb* |grep m
  101  find -name *usb* |grep musb
  102  modprobe musb_hdrc
  103  tail /var/log/messages -f
  104  ifconfig
  105  ifconfig -a
  106  modprobe g_ether
  107  modprobe g_ether usb0
  108  modprobe -v g_ether
  109  modprobe u_ether
  110  modprobe -v g_ether
  111  tail /var/log/messages -f
  112  ifconfig
  113  ifconfig -a
  114  modprobe g_cdc
  115  modprobe -v
  116  modprobe
  117  lsmod
  118  find -name *usb* |grep musb
  119  find -name *usb*
  120  find -name g_*
  121  modprobe g_Serial
  122  modprobe g_serial
  123  grep -i gadget /boot/config-3.15.10
  124  insmod g_ether
  125  insmod
  126  insmod --help
  127  modprobe --help
  128  modprobe g_ether
  129  modprobe g_ether -v
  130  modprobe -v g_ether
  131  tail /var/log/messages -f
  132  tail /var/log/error
  133  tail /var/log/kern.log
  134  tail /var/log/udev
  135  lsusb
  136  cp /home/shieldone/lsusb /usr/bin/lsusb
  137  lsusb
  138  ldd /usr/bin/lsusb
  139  mv /home/shieldone/libusb-1.0.so.0 /lib/i386-linux-gnu/libusb-1.0.so.0
  140  lsusb
  141  mv /home/shieldone/usb.ids "/var/lib/usbutils/usb.ids"
  142  mkdir -p /var/lib/usbutils/
  143  mv /home/shieldone/usb.ids "/var/lib/usbutils/usb.ids"
  144  lsusb
  145  tail /var/log/udev
  146  tail /var/log/messages -f
  147  reboot
  148  top
  149  ll
  150  ./udp-broadcast-relay -d 2 1900 usb0 eth0
  151  route add -net 224.0.0.0/4 dev eth0
  152  route add -net 224.0.0.0/4 dev usb0
  153  route del -net 224.0.0.0/4 dev usb0
  154  route -n
  155  route del -net 224.0.0.0/4 dev usb0
  156  route del -net 224.0.0.0/4 dev eth0
  157  route add -net 224.0.0.0/4 gw 192.168.10.1 dev eth0
  158  route add -host 239.255.255.250 dev eth0
  159  route -n
  160  route del -host 239.255.255.250 dev eth0
  161  route -n
  162  route del -net 224.0.0.0/4 gw 192.168.10.1 dev eth0
  163  iptables -t nat -I PREROUTING -s 169.254.254.2 -j SNAT --target 192.168.10.2
  164  ifconfig eth0:0 192.168.10.2/32
  165  ifconfig eth0:0 192.168.10.2/24
  166  iptables -t nat -I PREROUTING -s 169.254.254.2 -j SNAT --target 192.168.10.2
  167  iptables -t nat -I PREROUTING -s 169.254.254.2 -j SNAT --to 192.168.10.2
  168  dmesg
  169  iptables -t nat -I POSTROUTING -s 169.254.254.2 -d 192.168.10.0/24 -j SNAT --to 192.168.10.2
  170  iptables -t nat -I POSTROUTING -s 169.254.254.2 -d 239.0.0.0/8 -j SNAT --to 192.168.10.2
  171  date
  172  iptables -t nat -v -L -n
  173  ll
  174  ./udp-broadcast-relay 1 10001 eth0 usb0
  175  ./udp-broadcast-relay -f 1 10001 eth0 usb0
  176  ll
  177  iptables -t nat -v -L -n
  178  iptables -t nat -D POSTROUTING 1
  179  iptables -t nat -I POSTROUGING -s 192.168.1.0/24 -d 169.254.254.3 -j SNAT --to 169.254.254.1
  180  iptables -t nat -I POSTROUTING -s 192.168.1.0/24 -d 169.254.254.3 -j SNAT --to 169.254.254.1
  181  iptables -t nat -D POSTROUTING -s 192.168.1.0/24 -d 169.254.254.3 -j SNAT --to 169.254.254.1
  182  iptables -t nat -I POSTROUTING -s 192.168.1.0/24 -d 169.254.254.3 -j DNAT --to 255.255.255.255
  183  iptables -t nat -I PREROUTING -s 192.168.1.0/24 -d 169.254.254.3 -j DNAT --to 255.255.255.255
  184  iptables -t nat -I PREROUTING -s 192.168.1.0/24 -d 169.254.254.3 -o usb0 -j DNAT --to 255.255.255.255
  185  iptables -t nat -v -L -n
  186  iptables -D PREROUTING 1
  187  iptables -t nat -D PREROUTING 1
  188  iptables -t mangle -v -L -n
  189  iptables -t mangle -I POSTROUTING -d 169.254.254.3 -p udp --dport 10001 -j DNAT --to 255.255.255.255
  190  ifconfig
  191  brctl addbr br10
  192  ifconfig
  193  brctl addif eth0
  194  brctl addif br10  eth0
  195  brctl addif br10  usb0
  196  ifconfig
  197  brctl show
  198  ifconfig br10 up
  199  ifconfig
  200  tcpdump -nni usb0
  201  tcpdump -nni br10
  202  route -n
  203  tcpdump -nni usb0
  204  tcpdump -nni eth port 22
  205  tcpdump -nni eth1 not port 22
  206  tcpdump -nni eth0
  207  tcpdump -nni any not port 22
  208  tcpdump -nni any not port 22 and not arp
  209  tcpdump -nni br10
  210  route -n
  211  tcpdump -nni usb0
  212  tcpdump -nni usb0 not arp
  213  ping 169.254.254.2
  214  ifconfig
  215  ping 169.254.254.1
  216  brctl show
  217  ifconfig
  218  ifconfig br10 down
  219  ping 169.254.254.2
  220  brctl delbr br10
  221  brctl show
  222  tcpdump -nni eth0
  223  route -n
  224  route add -host 255.255.255.255 dev usb0
  225  tcpdump -nni eth0
  226  route -n
  227  route del -host 255.255.255.255 dev usb0
  228  ip route ls
  229  ./udp-broadcast-relay
  230  ./udp-broadcast-relay -d 1 10001 eth0 usb0
  231  tcpdump -nni eth0
  232  ll
  233  history |tail
  234  ./udp-broadcast-relay -d 1 10001 eth0 usb0
  235  ps ax|grep udp
  236  kill -9 24188
  237  ./udp-broadcast-relay -d 1 10001 eth0 usb0
  238  brctl show
  239  ifconfig
  240  tcpdump -nni usb0
  241  ps ax |grep udp
  242  tcpdump -nni usb0
  243  tcpdump -nni usb0 not tcp port 8443
  244  ifconfig
  245  tcpdump -nni usb0 not tcp port 8443
  246  bctl
  247  brctl
  248  ifconfig
  249  ifconfig eth0:0 0
  250  ifconfig eth0:0 down
  251  ifconfig
  252  ifconfig usb0 0
  253  ifconfig
  254  brctl addbr br10
  255  brctl addif br10 eth3
  256  brctl addif br10 usb0
  257  ifconfig br10 up
  258  ifconfig br10 169.254.254.1/30
  259  ifconfig'
  260  ifcongi
  261  ifconfig
  262  route -n
  263  ping 169.254.254.2
  264  tcpdump -nni br10
  265  tcpdump -nni br10 not port 8443
  266  tcpdump -nni usb0 port 8080
  267  ifconfig
  268  tcpdump -nni usb0
  269  route -n
  270  ifconfig usb0
  271  ping 169.254.254.2
  272  ifconfig usb0
  273  tcpdump -nni usb0
  274  ssh pi@169.254.254.2
  275  ll
  276  ssh pi@169.254.254.2
  277  tcpdump -nni usb0
  278  ssh pi@169.254.254.2
  279  ifconfig eth0
  280  ifconfig usb0
  281  cat /etc/rc.local
  282  ifconfig usb0 169.254.254.1/30
  283  ping 169.254.254.2A
  284  ssh pi@169.254.254.2
  285  tcpdump -nni usb0
  286  route -n
  287  tcpdump -nni usb0
  288  arp -n
  289  ifconfig eth0
  290  ping 192.168.10.1
  291  ping 192.168.10.2
  292  ping 192.168.10.3
  293  ping 192.168.10.4
  294  ping 192.168.10.5
  295  ping 192.168.10.6
  296  ping 192.168.10.7
  297  ping 192.168.10.8
  298  tcpdump -nni usb0
  299  netstat -nlp
  300  ssh pi@169.254.254.2
  301  tcpdump -nni eth0 arp
  302  reboot
  303  brctl
  304  brctl show
  305  tcpdump -nni br10
  306  ifconfig
  307  ip addr ls
  308  tcpdump -nni br10 not tcp port 8443
  309  ssh pi@169.254.254.2
  310  ifconfig usb0
  311  brctl ls
  312  brctl show
  313  vi /etc/rc.local
  314  brctl delif br10 eth3
  315  brctl show
  316  brctl addif br10 eth3 usb0
  317  brctl show
  318  vi /etc/rc.local
  319  reboot
  320  ifconfig
  321  ifconfig br10
  322  brctl show
  323  ping 169.254.254.2
  324  tcpdump -nni usb0
  325  ifconfig usb0
  326  ifconfig usb0 up
  327  ping 169.254.254.2
  328  brctl show
  329  vi /etc/rc.local
  330  route -n
  331  arp -n
  332  ping 169.254.254.2
  333  vi /etc/rc.local
  334  reboot
  335  tcpdump -nni bro10
  336  tcpdump -nni br10
  337  tcpdump -nni usb0
  338  ifconfig
  339  ifconfig -a
  340  ifconfig
  341  route -n
  342  tcpdump -nni usb0
  343  ifconfig usb0
  344  tcpdump -nni br10
  345  ifconfig usb0
  346  ifconfig
  347  ifconfig br10 up
  348  tcpdump -nni br10
  349  ifconfig
  350  ping 169.254.254.2
  351  ifconfig
  352  ifconfig usb0 up
  353  ping 169.254.254.2
  354  route -n
  355  reboot
  356  ping 169.254.254.2
  357  ifconfig
  358  ping 169.254.254.2
  359  reboot
  360  tcpdump -nni br10
  361  tcpdump -nni usb0
  362  tcpdump -nni br10
  363  tcpdump -nni any icmp
  364  ifconfig
  365  ifconfig a
  366  ifconfig -a
  367  tcpdump -nni br10
  368  tcpdump -nni br10 port 10001
  369  ifconfig -a
  370  ps axf | grep dh
  371  ssh pi@169.254.254.2
  372  ping 169.254.254.2
  373  ifconfig
  374  ifconfig usb0 up
  375  ping 169.254.254.2
  376  ssh pi@169.254.254.2
  377  ifconfig
  378  ssh pi@169.254.254.2
  379  ping 169.254.254.2
  380  ifconfig
  381  ifconfig usb0
  382  brctl show
  383  brctl addif br10 usb0
  384  ping 169.254.254.2
  385  ifconfig
  386  arp -n
  387  tail /var/lib/dhcp/dhcpd.leases
  388  ssh pi@169.254.254.2
  389  ifconfig usb0 up
  390  brctl addif br10 usb0
  391  brctl shoiw
  392  brctl show
  393  ping 169.254.254.2
  394  ssh pi@169.254.254.2
  395  scp shieldone@192.168.0.1:/home/shieldone/iperf /home/shieldone
  396  cd /home/shieldone/
  397  ll
  398  ./iperf -s
  399  ./iperf -s -d
  400  route -n
  401  ping 192.168.110.10
  402  cd /home/shieldone/
  403  ./iperf -c 192.168.110.10
  404  ./ipsec -s
  405  ./iperf -s
  406  ./iperf -c 192.168.110.10
  407  ./iperf -s
  408  ./iperf -c 192.168.110.10
  409  ./iperf -s
  410  ./iperf -c 192.168.110.10 -t 60
  411  ifconfig
  412  ifconfig eth1
  413  iperf -s
  414  ll
  415  iperf -s
  416  ./iperf -s
  417  route -n
  418  ./iperf -s
  419  cd /home/shieldone/
  420  ./iperf -h
  421  ./iperf -s -p 5060
  422  ./iperf -s
  423  ps axf
  424  kill -9
  425  kill -9 2888
  426  ll
  427  cd /home/shieldone/
  428  ./iperf -s
  429  ll
  430  ./iperf -s
  431  ps axf
  432  reboot
  433  cd /home/shieldone/
  434  ./iperf -s -p 5002
  435  cd /home/shieldone/
  436  ./iperf -s
  437  cd /home/shieldone/
  438  ./iperf -s -p 500.
  439  ./iperf -s -p 5003
  440  ps axf
  441  iperf
  442  ll
  443  ./iperf --help
  444  ps axf
  445  w
  446  ps axf
  447  route -n
  448  iptables-save
  449  cd /home/shieldone/
  450  ./iperf -r -t 28800 -i 30 -c 192.168.110.12
  451  ps axf
  452  cd /home/shieldone/
  453  ll
  454  ./iperf -s
  455  ping 192.168.110.11
  456  ping 192.168.110.12
  457  ./iperf -c 192.168.110.12 -t 30
  458  ./iperf -c 192.168.110.12 -t 60
  459  ./iperf -c 192.168.110.12 -t 30
  460  ./iperf -r -t 28800 -i 30 -c 192.168.110.11
  461  ifconfig
  462  history

라즈베리에서의 history

root@raspberrypi:/home/pi# history
    1  cd /etc/network
    2  ll
    3  ls
    4  ls -la
    5  vi interfaces
    6  cd interfaces.d
    7  ll
    8  dir
    9  ls -la
   10  cd ..
   11  ll
   12  ls -la
   13  cat interfaces.dpkg-old
   14  update-rc.d sshd
   15  update-rc.d sshd defaults
   16  update-rc.d ssh defaults
   17  netstat -nlp
   18  update-rc.d avahi-daemon
   19  update-rc.d avahi-daemon disable
   20  ls /etc/init.d/
   21  vi interfaces
   22  update-rc.d dhcpd disable
   23  ls /etc/init.d/
   24  ps axf
   25  vi interfaces
   26  reboot
   27  route add default gw 169.254.254.1
   28  ping 8.8.8.8
   29  apt update
   30  vi /etc/resolv.conf
   31  apt update
   32  apt-get upgrade
   33  apt-get -y install oracle-java8-jdk
   34  apt-get -y install dirmngr
   35  echo 'deb http://www.ubnt.com/downloads/unifi/debian stable ubiquiti' | sudo tee -a /etc/apt/sources.list.d/100-ubnt.list > /dev/null
   36  sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 06E85760C0A52C50
   37  apt-get update
   38  lscpu
   39  apt-get install unifi
   40  systemctl stop mongodb
   41  systemctl disable mongodb
   42  mv /usr/lib/unifi/lib/native/Linux/armhf/libubnt_webrtc_jni.so .
   43  ll
   44  ls -l
   45  reboot
   46  cd /var/log/unifi/
   47  ll
   48  ls -l
   49  tail mongod.log -f
   50  shutdown -h now
   51  cd /etc/network
   52  ll
   53  ls
   54  vi ~/.bashrc
   55  ifconfig
   56  ifconfig all
   57  ifconfig -a
   58  ifconfig usb0:0 192.168.10.2/24 gw 192.168.10.1
   59  ifconfig usb0:0 192.168.10.2 netmask 255.255.255.0 up
   60  ll
   61  vi ~/.bashrc
   62  ll
   63  ls
   64  ls -la
   65  vi ~/.bashrc
   66  cd /etc/network
   67  ll
   68  vi interfaces
   69  vi interfaces
   70  reboot
   71  ifconfig -a
   72  ifconfig
   73  tail /var/log/messages
   74  tail /var/lib/dhcp/dhclient.usb0\:0.leases
   75  ll /var/lib/dhcp/dhclient.usb0\:0.leases
   76  date
   77
   78  reboot
   79  ps axf
   80  cat /etc/rc.local
   81  cd //etc/network/
   82  ll
   83  vi interfaces
   84  ifconfig
   85  cat /var/log/messages
   86  cd /var/log/
   87  grep usb0 *
   88  grep 169.254 syslog
   89  grep 169.254 *
   90  date
   91  ll
   92  cd -
   93  vi interfaces
   94  ip addr ls
   95  ip addr ls dev usb0
   96  ip addr ls dev usb0 |grep 169.254
   97  crontab -l
   98  crontab -e
   99  cd /root/
  100  ll
  101  vi local_ip_chk
  102  pwd
  103  ll
  104  chmod 755 local_ip_chk
  105  ./local_ip_chk
  106  vi local_ip_chk
  107  ./local_ip_chk
  108  vi local_ip_chk
  109  ./local_ip_chk
  110  vi local_ip_chk
  111  ./local_ip_chk
  112  ll
  113  ifconfig
  114  vi local_ip_chk
  115  route -n
  116  ping 172.16.0.1
  117  crontab -e
  118  exit
  119  ps axf
  120  df
  121  top
  122  htop
  123  ps axf
  124  ll
  125  tail /var/log/daemon.log
  126  tail /var/log/messages
  127  cd /var/log/
  128  grep cron *
  129  tail syslog -f -n 100
  130  /root/local_ip_chk
  131  vi /root/local_ip_chk
  132  tail syslog -f -n 100
  133  vi /etc/network/interfaces
  134  ipup usb0
  135  ifup usb0
  136  ifup usb0:0
  137  /root/local_ip_chk
  138  ifconfig
  139  ip addr ls
  140  cd
  141  vi local_ip_chk
  142  ip addr ls dev usb0
  143  ip addr ls dev usb0
  144  tail syslog -f -n 100
  145  tail /var/log/syslog -f -n 100
  146  ip addr ls dev usb0
  147  tail /var/log/syslog -f -n 10
  148  ip addr ls dev usb0
  149  history

#2
dd bs=4M if=2017-11-29-raspbian-stretch-lite.img of=/dev/sdX conv=fsync