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-next>] [day] [month] [year] [list]
Date:	Sat, 24 Oct 2009 15:22:26 +0200
From:	Luca Dionisi <luca.dionisi@...il.com>
To:	netdev@...r.kernel.org, linux-net@...r.kernel.org
Subject: Request: how do packet routing based on input gateway

Hi all

I must instruct my server to route packets based on destination prefix
and on the gateway from which the packet arrived.
E.g.
 I am 192.168.0.1
 a packet for 192.168.1.0/24 which arrived from gateway 192.168.0.2
must go through 192.168.1.1 dev eth0
 a packet for 192.168.1.0/24 which arrived from gateway 192.168.0.3
must go through 192.168.1.2 dev eth1
 a packet for 192.168.1.0/24 which arrived from any other gateway must
go through 192.168.1.3 dev eth2

The gateway I mean is just the last hop traversed, before me. It's not
necessarily the source of the packet.

How am I supposed to do that?

Regards.
Luca Dionisi
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ