lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 18 Jan 2024 00:45:41 +0530
From: Vikas Aggarwal <vik.reck@...il.com>
To: Suman Ghosh <sumang@...vell.com>
Cc: "netdev@...r.kernel.org" <netdev@...r.kernel.org>, "jhs@...atatu.com" <jhs@...atatu.com>
Subject: Re: [EXT] tc-mirred : Redirect Broadcast (like ARP) pkts rcvd on eth1
 towards eth0

Thanks Suman that works.
I need similar "redirect rule" on egress side.  Suppose if i do udhcpc
-i eth1  then I want  DHCP to resolve via eth0.
Syntax on egress (root) side is different and more complicated and I
need to learn egress syntax.
I am trying to tc filter + mirror  based on udp and DHCP port 67-68 .
Can you please help with this  egress side DHCP redirect too.
Thanks Again
Vikas

On Mon, Jan 8, 2024 at 12:19 PM Suman Ghosh <sumang@...vell.com> wrote:
>
> Sorry for the typo on the last netdev interface
>
> tc filter add dev eth1 ingress protocol ip flower dst_mac <DMAC> m <MASK> action mirred ingress mirror dev eth0
>
> Regards,
> Suman
>
> >-----Original Message-----
> >From: Suman Ghosh <sumang@...vell.com>
> >Sent: Monday, January 8, 2024 12:17 PM
> >To: Vikas Aggarwal <vik.reck@...il.com>; netdev@...r.kernel.org;
> >jhs@...atatu.com
> >Subject: RE: [EXT] tc-mirred : Redirect Broadcast (like ARP) pkts rcvd on
> >eth1 towards eth0
> >
> >Hi Vikas,
> >
> >As I understand, tc mirror is an action and can be applied with any filter
> >rules. So, something below you can try
> >
> >tc filter add dev eth1 ingress protocol ip flower dst_mac <DMAC> m <MASK>
> >action mirred ingress mirror dev eth1
> >
> >Regards,
> >Suman
> >
> >>-----Original Message-----
> >>From: Vikas Aggarwal <vik.reck@...il.com>
> >>Sent: Monday, January 8, 2024 11:36 AM
> >>To: netdev@...r.kernel.org; jhs@...atatu.com
> >>Subject: [EXT] tc-mirred : Redirect Broadcast (like ARP) pkts rcvd on
> >>eth1 towards eth0
> >>
> >>External Email
> >>
> >>----------------------------------------------------------------------
> >>Hello "tc" experts,
> >>
> >>I have questions regarding  tc-mirred.
> >>
> >>Can tc-mirred tool  match on ethernet destination MAC address as I want
> >>to redirect all broadcast pkts recvd on my ETH1 interface from external
> >>network  to appear on ETH0 ingress interface.
> >>
> >>Thanks & Regards
> >>-vik.reck
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ