Linux / UNIX Tech Support Forum
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 ...
|
|||||||
| Getting started tutorials So much to read, so little time! If that is your problem, we have solution. Read our FAQ and tutorials to help you cut through the clutter of information overload. Only members of "contributors" group can post new tutorials. Other members can just reply to thread. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
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 | ||
|
|
![]() |
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 | 28-08-2008 12:06 AM |
| How to Block Ultrasurf | laluvirtual | Linux software | 9 | 15-06-2008 04:21 PM |
| Block ping response with Endian firewall | OSCARM | Linux software | 4 | 08-01-2008 11:39 PM |
| How to block gtalk messenger through squid | bubloob_13 | Linux software | 0 | 16-04-2007 11:59 AM |
| How to block sites in Squid | joproz | Linux software | 2 | 18-11-2006 05:00 PM |