Featured Posts

Ubuntu on Acer Aspire one AOD250 KAV60 I have Read a lot of people on the Ubuntu Fourms having issues with Acer AOD250 with Wifi, Webcam, and Sound. Lets get down to it... ****Note: Start with a Fresh Install...

Readmore

WebApp Lag Meter non SSI using Ajax Demo: Link to the Script: Pastebin

Readmore

[Unlock] Linksys RTP300 from Vonage Hello Guys Here's how to hack your Jailed RTP300 Step 1. Files you will need tFTP -> http://tftpd32.jounin.net/download/Tftpd32-3.35-setup.exe The Zip -> Hack...

Readmore

The Geek of The World Rss

IPTables + Bashrc Shortcut

Posted on : 04-08-2009 | By : RCP | In : Uncategorized

1

We All know IPTables and well be a bitch… so by adding the following lines to your /etc/bash/bashrc   and/or ~/.bashrc

You can easy block ips on the Table Level Thats(PINGs, and all Data in and out) You wound really need a fast way to add Ip blocks and Table Level when a DDos, Floodnet, Clonenet eg…

How to Use,

First Your Going to need to have iptables installed
Gentoo: emerge iptables   (Must be  Root to use/install iptables)
Ubuntu: sudo apt-get install iptables

  • “blockedips” Will Show all Blocked hosts
  • “blockip IPHERE” Will Block that ip
  • “unblockip IPHERE” Unblocks that ip

Enter this code into /etc/bash/bashrc or ~/.bashrc   then source /etc/bash/bashrc  and/or ~/.bashrc
Code:

# http://thegeekoftheworld.com/
alias blockedips=”iptables -L”
alias blockip=”iptables -I INPUT -j DROP -s ”
alias unblockip=”iptables -D INPUT -j DROP -s ”

#Code  Thats it!  TEST….

bashskiptabletest-rootredfire

Comments (1)

[...] Geek of The World » Blog Archive » IPTables Bashrc Shortcut : http://thegeekoftheworld.com/?p=15 # dtsv.dtse_post_63_permalink = 'http://thegeekoftheworld.com/?p=63'; dtsv.dtse_post_63_title = [...]

Write a comment