j’ai remis le code dans le bon ordre (du moins le comm au départ du script)
je suis sceptique sur ce script ou sur ma façon de faire…
voilà le status après redémarrage
[code]root@smtp:~# iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all – anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp – 192.168.0.254 symposion.fr tcp dpt:http-alt
ACCEPT tcp – anywhere anywhere tcp dpt:ssh
ACCEPT tcp – anywhere anywhere tcp dpt:666
ACCEPT tcp – anywhere anywhere tcp dpt:http-alt
ACCEPT icmp – anywhere anywhere
ACCEPT all – anywhere anywhere
LOG all – anywhere anywhere LOG level warning
Chain FORWARD (policy DROP)
target prot opt source destination
Chain OUTPUT (policy DROP)
target prot opt source destination
ACCEPT all – anywhere anywhere
ACCEPT all – anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp – anywhere anywhere
ACCEPT tcp – anywhere 212.211.132.32 tcp dpt:http
ACCEPT tcp – anywhere 212.211.132.250 tcp dpt:http
ACCEPT tcp – anywhere anywhere tcp dpt:http
ACCEPT tcp – anywhere anywhere tcp dpt:https
ACCEPT tcp – anywhere anywhere tcp dpt:imaps
ACCEPT tcp – anywhere anywhere tcp dpt:ssmtp
ACCEPT tcp – anywhere anywhere tcp dpt:https
ACCEPT tcp – anywhere anywhere tcp dpt:smtp
ACCEPT tcp – anywhere anywhere tcp dpt:http-alt
ACCEPT udp – anywhere anywhere udp dpt:domain
LOG all – anywhere anywhere LOG level warning
REJECT all – anywhere anywhere reject-with icmp-port-unreachable
Chain fail2ban-dovecot (0 references)
target prot opt source destination
Chain fail2ban-postfix (0 references)
target prot opt source destination
Chain fail2ban-roundcube (0 references)
target prot opt source destination
Chain fail2ban-ssh (0 references)
target prot opt source destination [/code]
de là imposssible de joindre le serveur de l’exterieur (test avec http)
je le stoppe comme dit dans le tuto
[code]root@smtp:~# /etc/init.d/mesReglesIptables stop
- Vidage des regles et des tables : [OK]
- Autoriser toutes les connexions entrantes et sortantes : [OK]
root@smtp:~# /etc/init.d/mesReglesIptables status
- Liste des regles :
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[/code]
y a pas un souci ?
je n’ai pas fait la suite du tuto car je ne sais pas trop quoi faire à ce stade
et ça qui revient alors que mon_parefeu est “stop”…
root@smtp:~# update-rc.d mesReglesIptables defaults
update-rc.d: using dependency based boot sequencing
insserv: Script mesReglesIptables is broken: incomplete LSB comment.
insserv: missing `Provides:' entry: please add.
insserv: missing `Required-Start:' entry: please add even if empty.
insserv: missing `Required-Stop:' entry: please add even if empty.
insserv: missing `Default-Start:' entry: please add even if empty.
insserv: missing `Default-Stop:' entry: please add even if empty.
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `mesReglesIptables'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `mesReglesIptables'
insserv: script mon_parefeu: service iptables already provided!