[postfix] relay

Pagina: 1
Acties:

  • shadax
  • Registratie: Mei 2000
  • Niet online
Ik heb een servertje thuis met postfix om de mail af te handelen, alleen trekt postfix op het moment mijn hele internet verbinding dicht omdat een paar computers hier thuis besmet zijn met een vaag win32 klez virus. Ik wil de computers die besmet zijn tijdelijk geen mail meer laten versturen, weet iemand hoe ik snel een paar 1 ips blok, zonder de clients die niet besmet zijn lastig te vallen?

Verwijderd

Dat is de symptonen aanpakken ipv de oorzaak van het probleem.

Draai zo snel mogelijk een anti-virus client op je besmette windows bakken, je mag absoluut niet rekenen op je mail server om dit probleem op te lossen hoor.

  • shadax
  • Registratie: Mei 2000
  • Niet online
Ik weet dat het aanpakken van het virus veel belangrijker is, maar daar is al iemand anders mee bezig, mijn problemen zijn nu vooral dat:
1. niemand serieus meer kan netten
2. er redelijk wat mailtjes met virussen verstuurd worden, voordat het probleem gefixed is

Verwijderd

Is die mailserver ook de NAT box van je LAN ? Indien dit het geval is, trek je toch gewoon de netwerkkabel van je intern netwerk naar je router uit :?

Simple, yet effective :)

  • shadax
  • Registratie: Mei 2000
  • Niet online
Heeft alleen het probleem dat de virus scanner niet meer up te daten is op die client...

Verwijderd

Je kan natuurlijk een gratis DOS-scannertje, zoals F-Prot downloaden, de virusdefinitie files updaten, en dat es over je harde schijf gooien.

Als de netwerkkabel geen optie is, kan je ook echo "1" > /proc/sys/net/ipv4/ip_forward uitvoeren, om het routeren van pakketjes lam te leggen.

  • kieskes
  • Registratie: Juni 1999
  • Laatst online: 15-08 18:50
Als de netwerkkabel geen optie is, kan je ook echo "1" > /proc/sys/net/ipv4/ip_forward uitvoeren, om het routeren van pakketjes lam te leggen.
maak er dan ff echo 0 van ;)

Verwijderd

Op maandag 17 juni 2002 15:31 schreef kieskes het volgende:

[..]

maak er dan ff echo 0 van ;)
Juist :+

Verder: heb je eigenlijk zelf gezocht naar documentatie ? In de HOWTO van Postfix staat bv. duidelijk beschreven hoe het relayen van mail vanuit je intranet kan blokkeren.

  • leander
  • Registratie: Oktober 1999
  • Laatst online: 02-03-2025
# TRUST AND RELAY CONTROL

# The mynetworks parameter specifies the list of "trusted" SMTP
# clients that have more privileges than "strangers".
#
# In particular, "trusted" SMTP clients are allowed to relay mail
# through Postfix. See the smtpd_recipient_restrictions parameter
# in file sample-smtpd.cf.
#
# You can specify the list of "trusted" network addresses by hand
# or you can let Postfix do it for you (which is the default).
#
# By default (mynetworks_style = subnet), Postfix "trusts" SMTP
# clients in the same IP subnetworks as the local machine.
# On Linux, this does works correctly only with interfaces specified
# with the "ifconfig" command.
#
# Specify "mynetworks_style = class" when Postfix should "trust" SMTP
# clients in the same IP class A/B/C networks as the local machine.
# Don't do this with a dialup site - it would cause Postfix to "trust"
# your entire provider's network. Instead, specify an explicit
# mynetworks list by hand, as described below.
#
# Specify "mynetworks_style = host" when Postfix should "trust"
# only the local machine.
#
#mynetworks_style = class
#mynetworks_style = subnet
#mynetworks_style = host

# Alternatively, you can specify the mynetworks list by hand, in
# which case Postfix ignores the mynetworks_style setting.
#
# Specify an explicit list of network/netmask patterns, where the
# mask specifies the number of bits in the network part of a host
# address.
#
# You can also specify the absolute pathname of a pattern file instead
# of listing the patterns here. Specify type:table for table-based lookups
# (the value on the table right-hand side is not used).
#
#mynetworks = 168.100.189.0/28, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table
mynetworks = 127.0.0.0/8

  • shadax
  • Registratie: Mei 2000
  • Niet online
Ja, ik weet hoe ik het hele intranet kan blocken, maar ik wil alleen 3 comps uit 192.168.1.1/22 blocken, zonder dat de andere computers uit het intranet er last van hebben..

  • Mark
  • Registratie: Juni 1999
  • Laatst online: 08-08 09:24
code:
1
/sbin/ipchains -I input -s IP-ADRES-CLIENT -j DENY -l

Werkt perfect.....

Maar nu effe serieus. Download fixklez.com bij symantec en clean die PC's gewoon...

Verwijderd

Ik weet niet precies wat de eigenschappen zijn van Klez, maar volgens mij is het ook mogelijk om Postfix te laten filteren op bepaalde Headers en Bodies. Dit vond ik op SlashDot:
http://slashdot.org/articles/02/04/30/1858248.shtml?tid=128
in main.cf:

body_checks = regexp:/etc/postfix/body_checks

in body_checks:

/^begin(-base64)? [0-9]+.*(\.|=2E)exe(\?=)?(\.)?/ REJECT
/^[^]*(body|filename|name=).*(\.|=2E)exe(\? =)?(\.)?/ REJECT

You have to do the same two lines for bat, pif and scr (put them where the above two lines say exe) I could not paste them all due to the lameness filter telling me to use less junk characters.
Pagina: 1