Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Reseau] Multi gateway + iptables , help !
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Flav
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2004
Posts: 95
Location: FRANCE /Montpellier

PostPosted: Fri Oct 28, 2005 3:27 pm    Post subject: [Reseau] Multi gateway + iptables , help ! Reply with quote

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
View user's profile Send private message
scout
Veteran
Veteran


Joined: 08 Mar 2003
Posts: 1991
Location: France, Paris en Semaine / Metz le W-E

PostPosted: Fri Oct 28, 2005 4:53 pm    Post subject: Re: [Reseau] Multi gateway + iptables , help ! Reply with quote

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
View user's profile Send private message
widan
Veteran
Veteran


Joined: 07 Jun 2005
Posts: 1512
Location: Paris, France

PostPosted: Fri Oct 28, 2005 6:59 pm    Post subject: Reply with quote

Il y a ce genre de choses dans le Linux Advanced Routing & Traffic Control HOWTO. En particulier cette page.
Back to top
View user's profile Send private message
bob1977
Guru
Guru


Joined: 16 Mar 2004
Posts: 387

PostPosted: Sat Oct 29, 2005 1:28 am    Post subject: Reply with quote

Salut,

Les liens de Widan en francais:
http://www.linux-france.org/prj/inetdoc/guides/lartc/
et
http://www.linux-france.org/prj/inetdoc/guides/lartc/lartc.rpdb.multiple-links.html
C'est plus facile a comprendre quand c'est des choses pointues comme ca :-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum