Project

General

Profile

Anomalie #4901

SNAT sur tout les ports provoque une erreur iptables

Added by Emmanuel GARETTE about 8 years ago. Updated about 8 years ago.

Status:
Fermé
Priority:
Haut
Assigned To:
Category:
-
Start date:
Due date:
% Done:

100%

Spent time:
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.

Associated revisions

Revision ce78664d (diff)
Added by Gwenael Remond about 8 years ago

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

History

#1 Updated by Gwenael Remond about 8 years ago

  • Status changed from Nouveau to Résolu
  • % Done changed from 0 to 100

#2 Updated by Emmanuel GARETTE about 8 years ago

  • Status changed from Résolu to 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 ]

Also available in: Atom PDF