Re: problem using MAC address.

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

 



On Wed, 2004-10-27 at 05:50, ads nat wrote:
> Hi,
> I want block forwarding as follows :
> 
> "iptables -I INPUT 1 -i eth1 -p tcp -m tcp --dport 25
> -m mac --mac-source 00:08:A1:53:BE:71 -d ! 10.0.0.2 -j
> DROP"

if you're trying to block FORWARDING, why not try putting that rule in
the FORWARD chain instead of the INPUT chain?

> it does not work but when I try to do same thing with
> rule 
> "iptables -D FORWARD -i eth1 -p tcp -m tcp --dport 25
> -s 192.168.0.42 -d ! 10.0.0.2 -j DROP"

that is a command that deletes a rule out of the FORWARD chain

> Is there any sytax error.
> 
> Or Do I have to installed any additional module of
> iptables.
> I am using Redhat 9.0 Linux.
> Please guide me.

wanna clue us in as to what exactly you're trying to do?

-j

-- 
Jason Opperisano <opie@xxxxxxxxxxx>



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux