View previous topic :: View next topic |
Author |
Message |
Flav Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Blade Runner/movie_blade_runner_howl.gif)
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 |
|
![](templates/gentoo/images/spacer.gif) |
scout Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/12983883544208161274b34.png)
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 |
|
![](templates/gentoo/images/spacer.gif) |
widan Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/142533236243680bda6f27b.jpg)
Joined: 07 Jun 2005 Posts: 1512 Location: Paris, France
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bob1977 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/164334334041632ed16967b.gif)
Joined: 16 Mar 2004 Posts: 387
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|