Bonjour,
Voila j'ai un petit problème sur l'identification de mes variables avec iptables voici mon script :
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 #!/bin/bash echo "initialisation a 1 de /proc/sys/net/ipv4/ip_forward" echo 1 > /proc/sys/net/ipv4/ip_forward echo "ok" echo "initialisation des interfaces" $eth0=172.16.0.0/16 $eth1=10.0.0.0/8 $eth2=192.168.1.0/24 $ieth0=eth0 $ieth1=eth1 $ieth2=eth2 echo "ok"
Mes erreurs sont :
Merci d'avance pour la correction de mes erreurs.Code:
1
2
3
4
5
6
7
8
9
10 initialisation a 1 de /proc/sys/net/ipv4/ip_forward ok initialisation des interfaces ./politique: line 9: =172.16.0.0/16: Aucun fichier ou répertoire de ce type ./politique: line 10: =10.0.0.0/8: Aucun fichier ou répertoire de ce type ./politique: line 11: =192.168.1.0/24: Aucun fichier ou répertoire de ce type ./politique: line 12: =eth0: command not found ./politique: line 13: =eth1: command not found ./politique: line 14: =eth2: command not found ok