This is a discussion on Iptables block ip address within the Getting started tutorials forums, part of the Linux Getting Started category; Let say you wanna block IP address 192.168.1.5, enter at command prompt in your shell script: Code: iptables -A INPUT ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
Let say you wanna block IP address 192.168.1.5, enter at command prompt in your shell script:
Code:
iptables -A INPUT -s 192.168.1.5 -j DROP Code:
iptables -A OUTPUT -p tcp -d 192.168.1.2 -j DROP Linux / UNIX - Iptables related howtos, tutorials, and tips
__________________
Raj Linux rulz. I have never turned back in my life ; I shall not do so today.. haha |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to Block Spam Mails in Sendmail | ppnair | Mail Servers | 3 | 08-28-2008 12:06 AM |
| How to Block Ultrasurf | laluvirtual | Linux software | 9 | 06-15-2008 04:21 PM |
| Block ping response with Endian firewall | OSCARM | Linux software | 4 | 01-08-2008 11:39 PM |
| How to block gtalk messenger through squid | bubloob_13 | Linux software | 0 | 04-16-2007 11:59 AM |
| How to block sites in Squid | joproz | Linux software | 2 | 11-18-2006 05:00 PM |