History

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
    1  ip r
    2  ip a
    3  vim /etc/network/interfaces
    4  vim.tiny /etc/network/interfaces
    5  cat /etc/resolv.conf 
    6  vim.tiny /etc/network/interfaces
    7  ip a
    8  dmesg | tail
    9  ip a
   10  apt-get install dnsmasq
   11  which iptables
   12  iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE
   13  vim.tiny /etc/resolv.conf 
   14  vim.tiny /etc/rc.local 
   15  vim /etc/sysctl.conf 
   16  update-alternatives --install /usr/bin/vim vim /usr/bin/vim.tiny 1
   17  vim /etc/sysctl.conf 
   18  sysctl -p
   19  cat /proc/sys/net/ipv4/ip_forward 
   20  vim /etc/dnsmasq.conf 
   21  ip set link eth1 up
   22  ifup eth1
   23  ip a
   24  ip set link eth1 up
   25  ip link set eth1 up
   26  service dnsmasq restart
   27  vim /etc/resolv.conf
   28  dig @8.8.8.8 www.lsd.co.za
   29  ip a
   30  service dnsmasq stop ; ifdown eth1 ; sleep 3 ; ifup eth1 ; service dnsmasq start
   31  ip a
   32  tail -f /var/log/syslog 
   33  fg
   34  tail /var/lib/misc/dnsmasq.leases 
   35  tail -f /var/log/syslog 
   36  ping 192.168.2.103
   37  cat /var/lib/misc/dnsmasq.leases 
   38  tail -f /var/log/syslog 
   39  vim /etc/network/interfaces
   40  cat /var/lib/misc/dnsmasq.leases 
   41  tail -f /var/log/syslog 
   42  cat /var/lib/misc/dnsmasq.leases 
   43  tail -f /var/log/syslog 
   44  history
   45  history > /home/sundown/Desktop/history.txt