[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: comment rediriger une ip interne vers l'extrene



mon firewall est un debian potato 2.2r4 stable 2.2.19(pre17)

presentement avec ipchains
mais je n'ai aucune objection pour faire les changement vers iptables

j'ai une regle pour les virus microsoft qui engorge le serveur
va-t'elle fonctionner avec la redirection
ou je vais devoir faire un mount nfs du serveur web du rep /var/log/apache
sur firewall

#--- Virus Microsoft WEB
-------------------------------------------------------
# Location of Apache log
cd /var/log/apache
# Raise -n, if needed
tail -n10000 --follow=name access.log | \
  awk '
# Catch Nimda
  /scripts\/root.exe/ {
  old=0
  while(getline line < "nimda.txt"){if($1 ~ line) old=1}
  if(old==0){
# Remember worm box
  print $1 >> "nimda.txt"
# Goodbye
  system("$IPC -A input -j DENY  -i eth0 -p tcp -s " $1 " --destination-port
80")
  } close("nimda.txt")
  }
# Catch Code Red
  /default.ida/ {
  old=0
  while(getline line < "codered.txt"){if($1 ~ line) old=1}
  if(old==0){
# Remember worm box
  print $1 >> "codered.txt"
# Goodbye
  system("$IPC -A input -j DENY  -i eth0 -p tcp -s " $1 " --destination-port
80")
  } close("codered.txt")
  }' - &
#---------------------------------------------------------------------------
----

-----Message d'origine-----
De : Guillaume Plessis [mailto:gplessis@yahoo.com]
Envoyé : 21 novembre, 2001 10:26
À : debian-user-french@lists.debian.org
Objet : Re: comment rediriger une ip interne vers l'extrene



>/usr/sbin/ipmasqadm portfw -a -P tcp -L 192.168.0.1 21 -R 192.168.0.5

ceci suffit dans le cas d un noyau 2.2 


Guillaume Plessis                               gui@moolfreet.com
Administrateur réseau & sytème Linux - www.nexenservices.com



_________________________________________________________

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com





-- 
To UNSUBSCRIBE, email to debian-user-french-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org



Reply to: