Вы находитесь на странице: 1из 3

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 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

pwd ls cd / ls ls -a ls -af ls --help ls --help | more ls -d ls -A cd var ls cd /etc ls ls | more cd network ls ifconfig vi test cat test nano zulka.doc cat zulka.doc nano /etc/network/interfaces nano interfaces /etc/init.d/networking restart ifconfig | more ping 192.168.100.10 nano /etc/apt/sources.list apt-get update dpkg -l | grep bind9 apt-get install bind9 cd /etc/bind ls cat named.conf.default-zones nano named.conf.default-zones nano db.local nano db.127 ls cp named.conf named.conf.bak nano named.conf clear ls cp named.conf.default-zones named.server nano named.server cp db.local db.id nano db.id cp db.127 db.1 nano db.1 nano named.conf ls nano named.conf.local clear nano named.conf service bind9 restart /etc/init.d/bind9 restart nano /etc/resolv.conf service bind9 restart ping www ping dns ping proxy

61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 ontrib 110 ntrib 111 112 113 114 115 116 117 118

apt-get install apache2 cd /etc/apache2 ls cd sites-available/ ls ls nano default service apache2 restart ping google.com ping google.com ifconfig nano /etc/resolv.conf ping google.com ping google.com nano /etc/network/interfaces service networking restart ping 192.168.100.10 ping google.com ifconfig ifconfig eth0 up ifconfig ifconfig | more nano /etc/network/interfaces service networking restart ifconfig | more nano /etc/sysctl.conf sysctl -p sysctl --help iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE nano /etc/rc.local apt-get install squid nano /etc/apt/sources.list apt-get install squid exit apt-get install squid kill kill pid reboot apt-get install squid reboot nano /etc/apt/sources.list apt-get install squid cd /etc/squid nano /etc/apt/sources.list nano /etc/rc.local reboot deb http://kambing.ui.edu/debian squeeze main non-free contrib deb http://kambing.ui.edu/debian-volatile squeeze/volatile main contrib deb http://kambing.ui.edu/debian-security squeeze/updates main non-free c deb http://kambing.ui.edu/debian stable-proposed-updates main non-free co nano /etc/apt/sources.list apt-get install squid apt-get update apt-get install squid cd /etc/squid/ ls nano squid.conf nano terlarang.txt

119 squid -k reconfigure 120 nano squid.conf 121 nano squid.conf 122 squid -k reconfigure 123 iptables -t nat -A PREROUTING -p tcp -s 192.168.1.0/24 -d 0/0 -j REDIRECT --dport 80 --to-ports 3128 124 iptables -t nat -A PREROUTING -p tcp -s 192.168.1.0/24 -d 0/0 -j REDIRECT --dport 80 --to-ports 3128 125 sysctl -p 126 nano squid.conf 127 cd /etc/squid/ 128 nano squid.conf 129 history > contoh-perintah.doc

Вам также может понравиться