Networking • Automation • Occasional Podcasting

Category: Linux

  • Install NTOP on CENTOS With Andrew
    ,

    Install NTOP on CENTOS With Andrew

    Everything is more fun with Australians…even installing Linux apps!

  • ,

    Clear Cache On BIND9

    It is as simple as: rndc flush

  • ,

    Restore Zimbra Backup

    In actuality this is syncing one zimbra to another. You can do this for replication, not just disaster recovery. This is on a centos box. #install rsync if you don't have it yum install rsync #sync our local files from a remote server 1.1.1.1 rsync -avzr -e ssh [email protected]:/opt/zimbra /opt/ #change ownership of the new…

  • , ,

    Cacti – Syslog-NG – Duplicate Entry For Key

    If you notice that your alerts stop coming in from syslog or notice that your syslog isn’t showing any results, then check to make sure the syslog-ng service is running. service syslog-ng status If it is running, then try restarting it. service syslog-ng restart If you are having the same issues I have, then you…

  • , ,

    Apache – IP Address Restrictions

    I wanted to protect my web-meetme folder on my trixbox install, so I made a couple of allowances in the apache config file like so. <Directory /var/www/html/web-meetme> #Order allow,deny Order deny,allow deny from all allow from 10.0.0.0/255.0.0.0 allow from 1.1.1.1/255.255.255.255 </Directory> Note the allow/deny entries.

  • ,

    Search Files In Linux For Text String

    This is easily accomplished via the grep command. grep “find text” /home/greg/*.txt The same search but will go recursively down the structure. grep -r “find text” /home/greg/*.txt The following is recursion and it will also print the file name that the text was found in. grep -H -r “find text” /home/greg/*.txt

  • Asterisk Selective Outbound Routing
    , , ,

    Asterisk Selective Outbound Routing

    I had a customer of mine that a single user inside their office needed an 800 number routed to them…not a big deal. What we did was to order an additional DID from their SIP provider Vitelity. The number was provisioned and I forwarded it from the incoming trunk to the users phone. I made…