≡ Menu

Shell script to reset ebtables on Linux

Ebtables is an application program used to set up and maintain the tables of rules (inside the Linux kernel) that inspect Ethernet frames. It is analogous to the iptables application, but less complicated, due to the fact that the Ethernet protocol is much simpler than the IP protocol. ebtables used with bridges on Linux. The following script will stop and clean all ebtables rules:

{ 2 comments }

A simple shell script wrapper to update all lxd container hypervisor images eitehr running Debian or Ubuntu Linux.

{ 4 comments }

A simple shell script wrapper to disable or enable PHP 5 upload support in an Apache or Nginx or Lighttpd web server. The script look for file_uploads directive in php.ini file and change its state from ON to OFF or vice-versa.

{ 1 comment }

A simple shell script wrapper to start / stop / restart NFSv4 service on CentOS / RHEL v.6.x server in a particular order. This script also demonstrates how to use the ln command to create soft links to the same script and take a different action as per $0.

{ 0 comments }

A simple shell script to find out whether critical services are running or, not under Linux or Unix operating systems. The script can send notification using email.

{ 5 comments }

A simple shell script to start / stop / restart chrooted nginx web server under CentOS / RHEL Linux. You must have Nginx web server setup in a chroot (jail) so that you can minimizes the damage done by a potential break-in by isolating the web server to a small section of the filesystem. You can also mount $jail/tmp as a separate filesystem (/images/tmpfile.bin) with the noexec,nosuid, nodev options under Linux like operating systems.

{ 0 comments }

A simple shell script wrapper to record current terminal session of a linux or unix desktop.

{ 8 comments }

A simple shell script to purge Bitgravity cdn cache using API and curl command line. Tested on RHEL 6.x, Debian 6.x, and Ubuntu Linux.

{ 0 comments }

A simple shell to Wake Up nas devices / home servers using Linux and Unix command line.

{ 2 comments }