syntaxe iptables
Le
zulian

--Boundary-01=_oCNxRPOUb+chGFy
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Bonjour,
J'ai un PC (192.168.1.2) qui fait passerelle/firewall + serveur
http/ssh/mails.
Sur un deuxième PC (192.168.1.3) j'ai un serveur de jeux en java util=
isant
le port 5557.
Je voudrai que les joueurs puissent accéder au jeu sur 192.168.1.3:5=
557
depuis l'extérieur.
Je me mélange les pinceaux dans la syntaxe d'iptables pour avoir une
redirection et une ouverture de ce port.
Évidemment en local je n'ai pas de difficulté.
Fragment de règle sur le PC passerelle
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 5557 -j DNAT --to-
destination 192.168.1.3:5557
iptables -A FORWARD -p tcp -i eth0 --dport 5557 -j ACCEPT
Une idée ?
--
Frédéric f1sxo
--Boundary-01=_oCNxRPOUb+chGFy
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-=
html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/cs=
s">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'DejaVu Sans'; font-size:9pt; fo=
nt-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Bonjour,</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">J'ai un PC=
(192.168.1.2) qui fait passerelle/firewall + serveur http/ssh/mails.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Sur un deux=
ième PC (192.168.1.3) j'ai un serveur de jeux en java utilisant </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">le port 555=
7.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Je voudrai =
que les joueurs puissent accéder au jeu sur 192.168.1.3:5557 depuis=
l'extérieur.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Je me mÃ=
©lange les pinceaux dans la syntaxe d'iptables pour avoir une </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">redirection=
et une ouverture de ce port.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Évidem=
ment en local je n'ai pas de difficulté.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Fragment de=
règle sur le PC passerelle</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">iptables -t=
nat -A PREROUTING -i eth0 -p tcp --dport 5557 -j DNAT --to-</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">destination=
192.168.1.3:5557 </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">iptables -A=
FORWARD -p tcp -i eth0 --dport 5557 -j ACCEPT </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Une idÃ=
©e ?</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">-- </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Fréd=
éric f1sxo</p></body></html>
--Boundary-01=_oCNxRPOUb+chGFy--
--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists
Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers debian-user-french-REQUEST@lists.debian.org
En cas de soucis, contactez EN ANGLAIS listmaster@lists.debian.org
Archive: http://lists.debian.org/201306220016.08344.zulian@free.fr
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Bonjour,
J'ai un PC (192.168.1.2) qui fait passerelle/firewall + serveur
http/ssh/mails.
Sur un deuxième PC (192.168.1.3) j'ai un serveur de jeux en java util=
isant
le port 5557.
Je voudrai que les joueurs puissent accéder au jeu sur 192.168.1.3:5=
557
depuis l'extérieur.
Je me mélange les pinceaux dans la syntaxe d'iptables pour avoir une
redirection et une ouverture de ce port.
Évidemment en local je n'ai pas de difficulté.
Fragment de règle sur le PC passerelle
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 5557 -j DNAT --to-
destination 192.168.1.3:5557
iptables -A FORWARD -p tcp -i eth0 --dport 5557 -j ACCEPT
Une idée ?
--
Frédéric f1sxo
--Boundary-01=_oCNxRPOUb+chGFy
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-=
html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/cs=
s">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'DejaVu Sans'; font-size:9pt; fo=
nt-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Bonjour,</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">J'ai un PC=
(192.168.1.2) qui fait passerelle/firewall + serveur http/ssh/mails.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Sur un deux=
ième PC (192.168.1.3) j'ai un serveur de jeux en java utilisant </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">le port 555=
7.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Je voudrai =
que les joueurs puissent accéder au jeu sur 192.168.1.3:5557 depuis=
l'extérieur.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Je me mÃ=
©lange les pinceaux dans la syntaxe d'iptables pour avoir une </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">redirection=
et une ouverture de ce port.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Évidem=
ment en local je n'ai pas de difficulté.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Fragment de=
règle sur le PC passerelle</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">iptables -t=
nat -A PREROUTING -i eth0 -p tcp --dport 5557 -j DNAT --to-</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">destination=
192.168.1.3:5557 </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">iptables -A=
FORWARD -p tcp -i eth0 --dport 5557 -j ACCEPT </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Une idÃ=
©e ?</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">-- </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Fréd=
éric f1sxo</p></body></html>
--Boundary-01=_oCNxRPOUb+chGFy--
--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists
Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers debian-user-french-REQUEST@lists.debian.org
En cas de soucis, contactez EN ANGLAIS listmaster@lists.debian.org
Archive: http://lists.debian.org/201306220016.08344.zulian@free.fr
Le samedi 22 juin 2013, zulian a écrit...
Voir si le forwarding est activé :
cat /proc/sys/net/ipv4/ip_forward
Si non, l'activer dans /etc/sysctl.conf (man sysctl.conf)
--
jm
--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists
Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers
En cas de soucis, contactez EN ANGLAIS
Archive: http://lists.debian.org/
Il faut surtout qu'il soit activé dans le modem routeur. Quelle est ta
config d'accès à Internet ?
--
Raphaël
« Tout chercheur plongé dans la science subit une poussée de bas en haut susceptible de lui remonter le moral. »
Monsieur Cyclopède
--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists
Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers
En cas de soucis, contactez EN ANGLAIS
Archive: http://lists.debian.org/
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Bonjour,
Si tu es connecté à l'extérieur à travers une box, il faut que tu a cctive
la redirection de port sur celle-ci pour que les requetes puissent atteidre
ton serveur de jeux.
Le 22 juin 2013 00:16, "zulian"
--089e0103ecec51afc104dfbd3116
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<p>Bonjour,<br>
Si tu es connecté à l'extérieur à travers une box, il faut que tu acctive la redirection de port sur celle-ci pour que les requetes puisse nt atteidre ton serveur de jeux.</p>
<u></u>
<div style="font-family:'DejaVu Sans';font-size:9pt;font-weight:4 00;font-style:normal">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0 px;text-indent:0px">Bonjour,</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0 px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0 px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0 px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0 px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0 px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0 px;text-indent:0px">Je me mélange les pinceaux dans la syntaxe d'ipta bles pour avoir une </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0 px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0 px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0 px;text-indent:0px">Fragment de règle sur le PC passerelle</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0 px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0 px;text-indent:0px">iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 55 57 -j DNAT --to-</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0 px;text-indent:0px">iptables -A FORWARD -p tcp -i eth0 --dport 5557 -j ACCE PT </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0 px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0 px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0 px;text-indent:0px">Une idée ?</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0 px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0 px;text-indent:0px">-- </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0 px;text-indent:0px">Frédéric f1sxo</p></div></blockquote></div>
--089e0103ecec51afc104dfbd3116--
--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists
Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers
En cas de soucis, contactez EN ANGLAIS
Archive: http://lists.debian.org/CAFuS2bZ8+GR62BDi5sAN+
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Salut,
Jean-Michel OLTRA
+1
pour le sysctl.conf : cat /etc/sysctl.conf | grep ipv4.ip_forward
(pour plus d'info sur les commandes ... man "lacommandequejeconnaitpas" et
pour la pipe (/paɪp/) ou tube wikipédia te donnera un 1er aper çu)
Wikipédia:
"Quand la redirection de ports est activée, le système d'exploita tion agira
comme un routeur. Dans FreeBSD, NetBSD, OpenBSD, DragonFly BSD, et Darwin/M ac
OS X, le paramètrenet.inet.ip.forwarding peut être défini à 1 pour activer
ce comportement. Dans l'émulation de sysctl de Linux, ce paramètr e est
appelé net.ipv4.ip_forward."
sinon si tu veux "trouver" (j'entend par là comprendre les arguments e t
paramètres) il est bien évident que Jean-Michel a raison (lis les manuels)
d’ailleurs si ne lis pas le "man sysctl.conf" mon indication ne te servira
a rien (ouais je suis sadique) de plus je te conseille ce
site qui t'explication assez bien je trouve le fonctionnement d'un service et
des commandes a utiliser
Cordialement
Clément
--089e013cc32623eed704dfbd53b4
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
> Voir si le forwarding est activé :<br>
> cat /proc/sys/net/ipv4/ip_forward<br>
><br>
> Si non, l'activer dans /etc/sysctl.conf (man sysctl.conf) <div class="gmail_extra" style><br></div><div class="gmail_extra" style >Cordialement </div><div class="gmail_extra" style>Clément</div ></div>
--089e013cc32623eed704dfbd53b4--
--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists
Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers
En cas de soucis, contactez EN ANGLAIS
Archive: http://lists.debian.org/CAHdfu+e0BB2==K+VPuS45OoFW_LDLAhnE=tz+
Je me suis mal exprimé, je détaille :
- Box configurée (transparent) --> PC en 192.168.1.2
passerelle/iptables/routeur/serveurs : apache/ssh/postfix
- 192.168.1.2 est la passerelle entre internet et le réseau interne.
- Réseau interne : une dizaine de PC en 192.168.1.x
Tout fonctionne et les ports sont ouverts pour apache/ssh/postfix sur la
passerelle/routeur/serveurs
Le problème :
J'ai un deuxième PC --> 192.168.1.3 qui fait serveur jeux en ligne en java port 5557.
Je cherche une régle iptables qui permette un accés direct via la
passerelle/routeur 192.168.1.2 depuis
l'extérieur.
Internet --> Box (mode transparent) --> 192.168.1.2 passerelle/routeur
necessité forward et ouverture du port 5557 pour 192.168.1.3
--
Frédéric F1sxo
--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists
Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers
En cas de soucis, contactez EN ANGLAIS
Archive: http://lists.debian.org/
salut,
qu'entends tu par "mode transparant"? ta box est bien en dmz vers
192.168.1.2 ? si ce n'est pas le cas as tu ouvert le port 5557 vers le
pc 192.168.1.2 (la passerelle) ?
jeremy
--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists
Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers
En cas de soucis, contactez EN ANGLAIS
Archive: http://lists.debian.org/
prego jérémy
Non, ce qu'il veut dire, c'est que sa box est paramétrée en MODEM
complètement transparent; donc, son FW est en prise directe avec
l'Internet.
--
Zic : comment je fais pour regarder le JT où je suis passée hier sur Internet?
Dèm : attends je te cherche le lien
Dèm : voilà : xxxxx. Faut regarder entre 15'30 et 16'40
Zic : ah mais je ne serai pas disponible à cette heure-là , je tra vaille
Dèm : maman....
--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists
Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers
En cas de soucis, contactez EN ANGLAIS
Archive: http://lists.debian.org/
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 5557 -j DNAT --to-
destination 192.168.1.3:5557
devrai fonctionner directement
jerem
--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists
Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers
En cas de soucis, contactez EN ANGLAIS
Archive: http://lists.debian.org/
Sauf si il y a un iptables -t filter -P FORWARD DROP (parce qu'il me
semble que le NAT/PAT et le filtrage sont bien deux choses
indépendantes), ou toute autre règle similaire interdisant le traffic
entre deux interfaces d'une même babasse.
Et dans ce cas, les deux règles :
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 5557 -j DNAT
--to-destination 192.168.1.3:5557
et
iptables -A FORWARD -p tcp -i eth0 --dport 5557 -j ACCEPT
sont nécessaires, bien que je considère la deuxième un poil trop
laxiste. (mais peut être a t'elle été élargie pour diagnostiquer plus en
détail le problème) .
Quoi qu'il en soit, ca devrait fonctionner comme ca.
Le coup du forward (via sysctl ou la méthode
/proc/sys/net/ipv4/ip_forward) est également un erreur courante . Mais
j'ai l'impression que de ce que je lis du premier post de zulian (alias
Frédéric), que le problème n'est pas la.
Du coup, Frédéric , plusieurs questions :
Est-ce que l'adresse IPv4 publique arrive directement sur la machine qui
fait office de firewall ?
As tu , dans tes règles IPTables en toute fin de chaine FORWARD un ligne
du style :
iptables -t filter -A FORWARD -j LOG --log-prefix "IPTables Packet
Dropped: " --log-level 7
? (au quel cas , tu peux voir dans le syslog si il y a des paquets
rejetés).
y'a t'il au tout début de ta règle forward, un truc du genre :
iptables -t filter -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
(à compléter avec des -i et -o le cas échéant)
ou au contraire, une autre regle qui interdirait tout traffic en
provenance de l'extérieur vers l'intérieur, avant de demander à accepter
le traffic.
Que l'on me corrige si je me trompe, mais sous netfilter/iptables ,
c'est la première règle qui l'emporte , contrairement à d'autres (pf
pour exemple, hormis l'utilisation du mot clé "quick"), ou c'est la
dernière qui l'emporte.
Et dernière question, depuis quelle machine testes tu la connexion à
l'adresse IP publique ? (une machine à l'extérieur, ou une machine de
ton réseau local ? ) ... Si c'est depuis le réseau local, il y a de
fortes chances que cela ne fonctionne pas (a part quelques bidouilles),
puisque c'est la machine qui détient l'adresse IP publique qui va tenter
de répondre avec ses ports ouverts , plutôt que la machine destinataire
de la règle NAT. Et ce n'est donc pas un test fiable.
@+
Christophe.
--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists
Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers
En cas de soucis, contactez EN ANGLAIS
Archive: http://lists.debian.org/
Clement Delort a écrit :
Je ne sais pas comment ça se passer dans *BSD, mais dans Linux la
redirection de port est indépendante du fonctionnement en routeur (et
vice versa).
--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists
Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers
En cas de soucis, contactez EN ANGLAIS
Archive: http://lists.debian.org/