Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ip_forward] Ca route pas... [solved]
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
MaKKrO
Apprentice
Apprentice


Joined: 04 Oct 2005
Posts: 265
Location: Paris - FRANCE

PostPosted: Mon Feb 20, 2006 5:31 pm    Post subject: [ip_forward] Ca route pas... [solved] Reply with quote

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


Joined: 05 Dec 2004
Posts: 1142
Location: Besançon (25) [FRANCE]

PostPosted: Mon Feb 20, 2006 5:38 pm    Post subject: Reply with quote

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


Joined: 04 Oct 2005
Posts: 265
Location: Paris - FRANCE

PostPosted: Mon Feb 20, 2006 5:42 pm    Post subject: Reply with quote

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


Joined: 25 Nov 2004
Posts: 529
Location: SiliconValley

PostPosted: Mon Feb 20, 2006 6:09 pm    Post subject: Reply with quote

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 :roll: :roll:

++
Back to top
View user's profile Send private message
MaKKrO
Apprentice
Apprentice


Joined: 04 Oct 2005
Posts: 265
Location: Paris - FRANCE

PostPosted: Mon Feb 20, 2006 6:22 pm    Post subject: Reply with quote

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 !! :wink:

Thx
_________________
Loisirs = Gentoo / Taff = Gentoo / Pourtant Taff != Loisirs
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