This
is my linux scripts page. Since People in the IRC and friends ask me for
some scripts I decided to stuck 'em in a web page.
These
are BASH scripts, now, im NOT good in writing bash scripts. i don't take
any responsebility to what you see here.
from
time to time i'll add some stuff in here. and if you have scripts you did
in BASH send them to me and i'll put them here.
To
have instant access to these scripts i opend a dir /root/scripts and place
all of the scripts there. then edit your bash profile (.bash_profile or
.bashrc ) and add this folder to the path.
-
This is
my Firwall script, when linux boots the script is setting up the firewall
rules including Forwarding. If your box don't do masquarding remove the
forward and mask sections. DOWNLOAD the
IPCHAINS VERSION ( Run ./fwinstall . kernel 2.1.xx and above);
and IPFWADM version (older kernels like 2.0.36 and
below .. SUCKS )
-
This is
my firewall manage script I wrote to open and close ports, totally ignore
IP's and more.this one is for IPCHAINS , and this
one is for IPFWADM
-
Kill
Login is a script that kills all of the telnet connections to your
host.It may also kill other things so watch hout.
-
This
script updates /ect/hosts whenever you make connection to the internet.
don't forget to replace your hostname and to edit the file /etc/hosts.orig
-
this
one makes a new kernel. before you run it make sure that /usr/src/linux
is a simbolic link to the new kernel dir you want to compile ( like /usr/src/linux-2.2.3
). the new kernel will be places in /boot under zImage-newest.
-
IPtrap
- A utility I wrote, it sits on a port you choose and on connection, it
activates ipchains that ignores the connecting host. it is a good protection
from lamers who portscan your machine.