View previous topic :: View next topic |
Author |
Message |
Flav Tux's lil' helper
Joined: 11 Sep 2004 Posts: 95 Location: FRANCE /Montpellier
|
Posted: Fri Oct 28, 2005 3:27 pm Post subject: [Reseau] Multi gateway + iptables , help ! |
|
|
Salut à tous,
j'ai une machine avec 3 interfaces.
eth0 => LAN
eth1 => PPP0
eth2 => d-link routeur
Je souhaiterais au final que par exemple les clients avec les ip de 192.168.2.1 à 192.168.2.20 passe par la passerelle d-link et de 192.168.2.21 à 192.168.2.254 passe par ppp0.
Je n'arrive pas a trouvé comment faire pouvez vous m'aider?
Merci d'avance.
Flav |
|
Back to top |
|
|
scout Veteran
Joined: 08 Mar 2003 Posts: 1991 Location: France, Paris en Semaine / Metz le W-E
|
Posted: Fri Oct 28, 2005 4:53 pm Post subject: Re: [Reseau] Multi gateway + iptables , help ! |
|
|
Flav wrote: | Je n'arrive pas a trouvé comment faire pouvez vous m'aider? |
j'ai trouvé ça dans man iptables:
Quote: | TARGET EXTENSIONS
iptables can use extended target modules: the following are included in the standard distribution.
ROUTE
This is used to explicitly override the core network stack's routing decision. mangle table.
--oif ifname
Route the packet through `ifname' network interface |
_________________ http://petition.eurolinux.org/ - Petition against ePatents
L'essence de la finesse |
|
Back to top |
|
|
widan Veteran
Joined: 07 Jun 2005 Posts: 1512 Location: Paris, France
|
|
Back to top |
|
|
bob1977 Guru
Joined: 16 Mar 2004 Posts: 387
|
|
Back to top |
|
|
|