[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: iptables: -p all AND --dport xx (is it possible)



On Mon, 2005-04-25 at 20:17 -0400, Alan :) wrote:
> The following rule can't be applied
> 
> iptables -A INPUT -p all --dport 80 -j DROP
> 
> the above fails stating that --dport is not recognized.
> 
> I'm trying to drop all traffic to port 80. If I provide a specific protocol it works. For example: iptables -A INPUT -p tcp --dport 80 -j DROP
> 
> any ideas?

If you specify a port you must specify either TCP or UDP.
-- 
Multi-RBL Check:         http://www.TQMcube.com/rblcheck.htm
Kill Spam at the Source: http://www.TQMcube.com/spam_trap.htm
Today's Spam Trap Adds:  http://www.TQMcube.com/BlockedToday
RBLDNSD HowTo:           http://www.TQMcube.com/rbldnsd.htm


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]