Email this to a friend
 
posted on April 21st 2015, at 09:30
by lunarg

To block traffic from/to a specific IPv4 address using iptables, you can use these commands:

iptables -A INPUT -s 1.2.3.4 -j DROP
iptables -A OUTPUT -d 1.2.3.4 -j DROP
Warning!
Do not use these commands when you are already running an iptables-based firewall as this may result in unexpected results.

Send a link to this post to yourself or a friend.

Send to e-mail:
Your name:
Your e-mail:
Captcha:
Type the letters and numbers as shown.
/get/captcha/1566141322
Not readable? Get another.
 
Information entered is solely used for sending a one-time e-mail, and is not retained and/or passed on to a third party.
 
 
 
 
« August 2019»
SunMonTueWedThuFriSat
    123
45678910
11121314151617
18192021222324
25262728293031
 
Links
 
Quote
« When a bird does poo poo in your eye, be happy elephants don't fly. »