View previous topic :: View next topic |
Author |
Message |
MaKKrO Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/12930895184393ed4b449ad.jpg)
Joined: 04 Oct 2005 Posts: 265 Location: Paris - FRANCE
|
Posted: Mon Feb 20, 2006 5:31 pm Post subject: [ip_forward] Ca route pas... [solved] |
|
|
Salut la compagnie !
Bon alors voila, je voudrai forwarder les 2 cartes de mon server afin d'acceder au net...
La raison est compliqué... bref.
logiquement si je fais ca : Code: |
# echo 1 > /proc/sys/net/ipv4/ip_forward |
ca devrai marcher non ??? il me semble l'avoir deja fait mais je doute maintenant...
J'ai besoin d'iptables ??
merci _________________ Loisirs = Gentoo / Taff = Gentoo / Pourtant Taff != Loisirs
Last edited by MaKKrO on Mon Feb 20, 2006 6:07 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
-KuRGaN- Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/115143642345d96ac530f8b.jpg)
Joined: 05 Dec 2004 Posts: 1142 Location: Besançon (25) [FRANCE]
|
Posted: Mon Feb 20, 2006 5:38 pm Post subject: |
|
|
Ouai en effet, tu as fait la première étape, maintenant il faut que tu utilise iptables.
Je te laisse chercher la bonne commande car le net regorge de tutos sur iptables.
Bonne recherche. _________________ Knight Gent00 Industries RiDeR !!!! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MaKKrO Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/12930895184393ed4b449ad.jpg)
Joined: 04 Oct 2005 Posts: 265 Location: Paris - FRANCE
|
Posted: Mon Feb 20, 2006 5:42 pm Post subject: |
|
|
Bon, ba en fait je vien de suis vre ca http://www.gentoo.org/doc/fr/home-router-howto.xml
Je peux pigué l'interface WAN de mon server (routeur) mais pas au dela...
Mais ceci avec que je fasse les regles iptables, dc en fait ca m'a servi a rien !!!!
Help please !!! _________________ Loisirs = Gentoo / Taff = Gentoo / Pourtant Taff != Loisirs |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bulki Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Simpsons/simpsons_santas_little_help.gif)
Joined: 25 Nov 2004 Posts: 529 Location: SiliconValley
|
Posted: Mon Feb 20, 2006 6:09 pm Post subject: |
|
|
MaKKrO wrote: | Bon, ba en fait je vien de suis vre ca http://www.gentoo.org/doc/fr/home-router-howto.xml
Je peux pigué l'interface WAN de mon server (routeur) mais pas au dela...
Mais ceci avec que je fasse les regles iptables, dc en fait ca m'a servi a rien !!!!
Help please !!! |
En gros tu cherches à faire:
O ---- X --- NET
et de faire connecter O à NET ?
Si c'est le cas, sur X tu fais simplement
Code: | echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o ton_interface_connecter_au_net -j IPMASQUERADE
|
et sur O tu fais
Code: | route add default gw IP_DE_O interface_reliant_a_X |
J'ai peut-être mal compris
++ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MaKKrO Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/12930895184393ed4b449ad.jpg)
Joined: 04 Oct 2005 Posts: 265 Location: Paris - FRANCE
|
Posted: Mon Feb 20, 2006 6:22 pm Post subject: |
|
|
Yep, ca marche, je sais pas ce que j'avais fait...
Y'a surment eu une couille entre l'écran de le clavier... comme d'hab !!
Thx _________________ Loisirs = Gentoo / Taff = Gentoo / Pourtant Taff != Loisirs |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|