Projet

Général

Profil

Anomalie #4901

SNAT sur tout les ports provoque une erreur iptables

Ajouté par Emmanuel GARETTE il y a environ 11 ans. Mis à jour il y a environ 11 ans.

Statut:
Fermé
Priorité:
Haut
Assigné à:
Gwenael Remond
Catégorie:
-
Début:
Echéance:
% réalisé:

100%

Temps passé:
Distribution:
EOLE 2.3

Description

Si on fait une directive en SNAT, le port par défaut est "0". Mais cela provoque une erreur iptables :

+ /sbin/iptables -t nat -A POSTROUTING -o eth0 -s 0/0 -d 0/0 -j SNAT --to-source 192.168.122.152:0
iptables v1.4.4: Need TCP, UDP, SCTP or DCCP with port specification
Try `iptables -h' or 'iptables --help' for more information.

Révisions associées

Révision ce78664d (diff)
Ajouté par Gwenael Remond il y a environ 11 ans

redirect --to-source with port 0 fixes #4901 @1h

Historique

#1 Mis à jour par Gwenael Remond il y a environ 11 ans

  • Statut changé de Nouveau à Résolu
  • % réalisé changé de 0 à 100

#2 Mis à jour par Emmanuel GARETTE il y a environ 11 ans

  • Statut changé de Résolu à Fermé

Avant MAJ :

 * Starting firewall: bastion (modèle "3zones-scribe")iptables v1.4.4: Port `0' not valid

Try `iptables -h' or 'iptables --help' for more information.

Après MAJ :

 * Starting firewall: bastion (modèle "3zones-scribe")                                                                               [ OK ]

Formats disponibles : Atom PDF