zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

WordPress Munin Plugin

June 13, 2011 by Igor Drobot 2 Comments

The original Plugin was written by Chris Bair, after some tunings it worked fine for me.

I made some useful modifications to this Plugin:
– Visualization of the number of Drafts
– Set table prefix (I hate hardcodet things)



And now how to use it, first you need to create a configuration file for the plugin(replace the needed credentials) [Read more…]

Filed Under: Bash, Linux, Monitoring, Networking Tagged With: Monitoring, Munin, munin-node, Wordpress

Weekend Security Check

June 7, 2011 by Igor Drobot 2 Comments

Some of my servers providing FTP service and I check every weekend all the uploaded and system files for viruses and rootkits.
If somebody starts a upload, nobody think about potential danger e.g. virus.

You can start all this checks separated or as a script.

Here are some examples: [Read more…]

Filed Under: Bash, Debian, Kernel, Linux Tagged With: antivirus, Clamav, rkhunter, rootkit, security check, virus, weekend scan

NIC PROMISC mode

June 6, 2011 by Igor Drobot Leave a Comment

It was a little bit strange situation, I found my outer interface in a PROMISC mode.
“ip a” or “ifconfig” output shows that my eth0 interface was in the PROMISC mode, but I don’t understand, why?

1
2
eth0: <broadcast,multicast,promisc,up,lower_up> mtu 1500 ...
</broadcast,multicast,promisc,up,lower_up>

eth0: <broadcast,multicast,promisc,up,lower_up> mtu 1500 ... </broadcast,multicast,promisc,up,lower_up>

I don’t used tcpdump or similar tools in this moment.
After I spend some time to my favorite search engine, I found how to disable manually this mode:

1
ifconfig eth0 -promisc

ifconfig eth0 -promisc

Filed Under: Linux Tagged With: Debian, ifconfig, PROMISC mode, promiscuous mode

Juniper clear arp entrys

June 3, 2011 by Igor Drobot Leave a Comment

Sending IP packets on a multiaccess network requires mapping from an IP address to a MAC address (physical/hardware address like 00:02:b6:34:6a:2f).

In an ethernet environment, ARP is used to map a MAC address to an IP address.
ARP dynamically binds the IP address  to the correct MAC address.

You need a SSH Access to your juniper to proceed!

Show all ARP entrys:

1
ssg5-&gt; get arp

ssg5-&gt; get arp

Clear all dynamic entries from the ARP cache.

1
ssg5-&gt; clear arp all

ssg5-&gt; clear arp all

Also you can clear a single ARP entry:

1
ssg5-&gt; clear arp 192.168.201.9

ssg5-&gt; clear arp 192.168.201.9

Theoretical information was token from: juniper.net

Filed Under: Linux Tagged With: ARP cache, Juniper, Junos

Bash history timestamps

June 3, 2011 by Igor Drobot Leave a Comment


Maybe you know this problem, if more than one user has root access to a server you have very little chances to control who was it. The only hook could be date and time. Default if you issue the “history” command you see a command number and the operation.

Put the next line in your .bashrc and you will see date and time in your history:

1
2
# Bash Timestamps
export HISTTIMEFORMAT="%F %T "

# Bash Timestamps export HISTTIMEFORMAT="%F %T "

Finely to make it work execute:

1
source .bashrc

source .bashrc

Your new history format:

1
2
3
4
5
536  2011-05-31 22:06:44 less /var/log/syslog
537  2011-05-31 22:06:46 ll
538  2011-05-31 22:06:54 vim rssh.pl
539  2011-05-31 22:07:07 perl rssh.pl
540  2011-05-31 22:07:16 ss -lnp

536 2011-05-31 22:06:44 less /var/log/syslog 537 2011-05-31 22:06:46 ll 538 2011-05-31 22:06:54 vim rssh.pl 539 2011-05-31 22:07:07 perl rssh.pl 540 2011-05-31 22:07:16 ss -lnp

Filed Under: Linux Tagged With: bash, Debian, history

  • « Previous Page
  • 1
  • …
  • 35
  • 36
  • 37
  • 38
  • 39
  • …
  • 74
  • Next Page »
Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok