
Grafice Trafic cu MRTG pe FreeBSD
Acest tutorial prezinta cum se pot genera graficele pentru trafic pe sistem FreeBSD folosing MRTG…More
Acest tutorial prezinta cum se pot genera graficele pentru trafic pe sistem FreeBSD folosing MRTG…More
Verificati daca colectia de porturi este actualizata. Instalati poptop din /usr/ports/net/poptop:
1 |
root@bsdpc[/usr/ports/net/poptop] # make install clean |
Folosind editorul de…More
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 |
1.Deschidem urmatorul fisier : <strong>nano /etc/network/interfaces</strong> Aici o sa avem un exemplu gen : <strong>auto lo</strong> <strong>iface lo inet loopback</strong> <strong>auto eth0</strong> <strong>iface eth0 inet static</strong> <strong> address 147.110.118.56</strong> <strong> netmask 255.255.255.224</strong> <strong> broadcast 147.110.118.63</strong> <strong> network 147.110.118.32</strong> <strong> gateway 147.110.118.33</strong> 2. Adaugam urmatoarea configuratie in continuarea celei existente pentru inca o interfata : <strong>iface eth0:1 inet static</strong> <strong> address 147.110.118.58</strong> <strong> netmask 255.255.255.224</strong> <strong> broadcast 147.110.118.63</strong> <strong> network 147.110.118.32</strong> <strong> gateway 147.110.118.33</strong> Apoi urmat de comanda ctrl x , y pentru salvare , salvam configuratia. 3. Executam urmatoarea comanda pentru activarea configuratiei : <strong>/etc/init.d/networking restart</strong> 4. Configuratia fisierul ar trebui sa arate astfel: <strong>iface lo inet loopback</strong> <strong>auto lo</strong> <strong>auto eth0</strong> <strong>auto eth0:1</strong> <strong>iface eth0 inet static</strong> <strong> address 147.110.118.56</strong> <strong> netmask 255.255.255.224</strong> <strong> broadcast 147.110.118.63</strong> <strong> network 147.110.118.32</strong> <strong> gateway 147.110.118.33</strong> <strong>iface eth0:1 inet static</strong> <strong> address 147.110.118.58</strong> <strong> netmask 255.255.255.224</strong> <strong> broadcast 147.110.118.63</strong> <strong> network 147.110.118.32</strong> <strong> gateway 147.110.118.33</strong> Atentie ipurile de mai sus sunt doar informative , inlocuiti cu ipurile dvs !!! Daca aveti mai multe ipuri adaugati eth0:2 eth0:3,etc |
Folosind Putty , adaugam urmatoarele comenzi : 1: cd /home 2: wget http://layer1.cpanel.net/latest (va descarca…More
Pentru cei care vor sa limiteze banda de internet folosita de serverul web apache pentru…More
Utilizatorii Linux care au nevoie sa acceseze fisiere office, pot folosi diverse servicii/aplicatii cum ar…More
Script pentru SNAT (Source Network Address Translation) la ip dinamic folosind iptables
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<strong>#!/bin/sh WANIF="ppp0" LANIF="eth0" INTERNALNET="192.168.0.0/24" IFCONFIG=/sbin/ifconfig IPTABLES=/usr/sbin/iptables GREP=/bin/grep AWK=/bin/awk</strong> # Determinam adresa IP externa automat: WANIP="`$IFCONFIG $WANIF | $GREP 'inet addr' | $AWK '{print $2}' | sed -e 's/.*://'`" # Se face SNAT la toate IP-urile din reteaua locala prin IP-ul extern $IPTABLES -t nat -A POSTROUTING -s $INTERNALNET -j SNAT --to $WANIP #END |
Pentru instalarea la Mysql in FreeBSD executati urmatoarele:
1 2 3 |
<strong>cd /usr/ports/databases/mysql50-server/</strong> <strong> make clean && make config-recursive</strong> <strong> make WITH_XCHARSET=all install clean</strong> |
Pentru ca daemonul MYSQL sa va porneasca…More
Pentru a instala apache in FreeBSD executati urmatoarea comanda in consola: cd /usr/ports/www/apache22 make install…More