Step-by-step (сенкс что захотел просмотреть)
WMware-5.00-13124 (момент как там в WMware сетевые какрты добавить и все остальное упускаю,хотя если комуто это нужно могу напечатать)
FreeBSD 5.3
[Cactom ]>[Partishion]> -A отдаю весь диск >Q
Дальше окно ( Boot manager) > Standart >[Label]
/ - 500M
128 swap
/var - 1500 M
/tmp - 100 M
/usr - 6000 M
/home - 2000 M
[Distributions ]>Kernel-Developer>[Media]>CD-DVD> [Comit] Visit the general configuration menu fore a chance to set any last options?
Я выбираю No
Дальше >[Exit]>[Configure]> Root Password
Дальше >[Console]>Fone(IBB 866)
[Keymap] > Russia KOI8 – R
[Repeat] > Normal
[Ttys] > KOI8-R
[Time Zone] > NO >Europe….
[Networking] > [ x ] Gateway
>Interfaces lnc0 > NO > NO >
Ноst shlez.lykich.cxm Domain lykich.cxm
IRv4 Gateway 192.168.13.2
Name server 194.44.39.140
IRv4 Address 192.168.13.3
Netmask 255.255.255.0
>YES
>Interfaces lnc1 > NO >NO >
Host shlez.lykich.cxm
IRv4 Address 192.168.100.2
Netmask 255.255.255.0
>YES >Exit>Startup убираю [x] usbd >Exit
Устанавливаю по ходу пакеты bash-2.05.b..007_2,pdksh-5.214p2,zch-4.2.1,cvsup-16,lh lynx-2.8.5,emacs-21.3_3,gedit-2.6.2_2,vim-6.3.16,vim-lite-6.3.16
Выхожу >пере загруз
pw usermod root –L russian (руская консоль)
cd /usr/src/sys/i386/conf
cp GENERIC MYGENERIC
vi MY*
коментирую
#cpu i486_cpu
#cpu i586_cpu
ident MYGENERIC (меняю GENERIC на MYGENERIC)
(дописываю в конце конфига ядра)
options IPDIVERT
options IPFIREWALL
options IPFIREWALL_VERBOSE
options DUMMYNET
options TCP_DROP_SYNFIN
options IPFIREWALL_FORWARD
сохраняю
config MY*
cd /usr/src/sys/i386/conf/compile/MY*
make depend
make all
make install
shutdown –r now
vi /etc/rc.conf
(дописываю)
firewall_enable=”YES”
firewall_enable=”OPEN”
natd_enable=”YES”
natd_interface=”192.168.13.13”
ifconfig_lnc0_alias0=”inet 192.168.13.13 netmask 255.255.255.255”
выхожу сохраняю >презагружаюсь
ping проверка – все гуд
Обновляю порты
cp /usr/share/examples/cvsup/ports-supfile /root
vi /root/ports-s*
(тут измнеяю только названия сервера)
*default host= cvsup.ru.freebsd.org
Сохраняю
cvsup –g –L 2 /root/ports-supfile
все, поехало, обновляются порты
Finiddhed successfully
cd /usr/ports/secu*
cd clamav
make
в появивившемся окне выбираю
[x] MILTER
[ ] CURL
[ x ] LIBUNRAR
[ x ] STDERR
> OK
creatin clamav-milter
make install
/stand/sysinstal
Samba- 2.2.12
Так как флопик не могу смонтировать на BSD ,надо же как то конфиги заливaть.
Как самбу по минимуму нарулил я упускаю так я думаю ето не касается данной темы,просто имейте ввиду что она стартует.
cd /usr/ports/mail/cucipop
make,make install
Ну теперь bind
named –v
BIND 9.3.0
named.conf
// $FreeBSD: src/etc/namedb/named.conf,v 1.15.2.1 2004/09/30 23:36:07 dougb Exp $
//
// Refer to the named.conf(5) and named(8) man pages, and the documentation
// in /usr/share/doc/bind9 for more details.
//
// If you are going to set up an authoritative server, make sure you
// understand the hairy details of how DNS works. Even with
// simple mistakes, you can break connectivity for affected parties,
// or cause huge amounts of useless Internet traffic.
acl svoy {
192.168.100.0/24;
192.168.13.3;
192.168.13.13;
127.0.0.1;
};
options {
allow-recursion { svoy; };
allow-query { svoy; };
directory "/etc/namedb";
pid-file "/var/run/named/pid";
dump-file "/var/dump/named_dump.db";
statistics-file "/var/stats/named.stats";
// If named is being used only as a local resolver, this is a safe default.
// For named to be accessible to the network, comment this option, specify
// the proper IP address, or delete this option.
listen-on { 127.0.0.1;192.168.100.2; };
// If you have IPv6 enabled on this system, uncomment this option for
// use as a local resolver. To give access to the network, specify
// an IPv6 address, or the keyword "any".
// listen-on-v6 { ::1; };
// In addition to the "forwarders" clause, you can force your name
// server to never initiate queries of its own, but always ask its
// forwarders only, by enabling the following line:
//
// forward only;
// If you've got a DNS server around at your upstream provider, enter
// its IP address here, and enable the line below. This will make you
// benefit from its cache, thus reduce overall DNS traffic in the Internet.
/*
forwarders {
62.64.104.58; 194.44.39.130;
};
*/
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND versions 8 and later
* use a pseudo-random unprivileged UDP port by default.
*/
// query-source address * port 53;
};
// If you enable a local name server, don't forget to enter 127.0.0.1
// first in your /etc/resolv.conf so this server will be queried.
// Also, make sure to enable it in /etc/rc.conf.
zone "." {
type hint;
file "named.root";
};
zone "0.0.127.IN-ADDR.ARPA" {
type master;
file "master/localhost.rev";
};
// RFC 3152
zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA" {
type master;
file "master/localhost-v6.rev";
};
// RFC 1886 -- deprecated
zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.INT" {
type master;
file "master/localhost-v6.rev";
};
// NB: Do not use the IP addresses below, they are faked, and only
// serve demonstration/documentation purposes!
//
// Example slave zone config entries. It can be convenient to become
// a slave at least for the zone your own domain is in. Ask
// your network administrator for the IP address of the responsible
// primary.
//
// Never forget to include the reverse lookup (IN-ADDR.ARPA) zone!
// (This is named after the first bytes of the IP address, in reverse
// order, with ".IN-ADDR.ARPA" appended.)
//
// Before starting to set up a primary zone, make sure you fully
// understand how DNS and BIND works. There are sometimes
// non-obvious pitfalls. Setting up a slave zone is simpler.
//
// NB: Don't blindly enable the examples below. :-) Use actual names
// and addresses instead.
/*
zone "example.com" {
type slave;
file "slave/example.com";
masters {
192.168.1.1;
};
};
zone "0.168.192.in-addr.arpa" {
type slave;
file "slave/0.168.192.in-addr.arpa";
masters {
192.168.1.1;
};
};
*/
zone "lykich.cxm" {
notify no;
type master;
file "shlez.cxm";
};
zone "100.168.192.in-addr.arpa" {
notify no;
type master;
file "in-addr.cxm";
};
--------------shlez.cxm------------------------
$TTL 3D
@ IN SOA lykich.cxm. root.lykich.cxm. (
200609031 ;
8H ;
2H ;
4W ;
1D ) ;
;
IN NS shlez.lykich.cxm.
;
shlez IN A 192.168.100.2
igor IN A 192.168.100.5
;@ IN MX 10 shlez.lykich.cxm.
www CNAME shlez
------------------------in-addr.cxm-----------------------
$TTL 3D
@ IN SOA lykich.cxm. root.lykich.cxm. (
200609031 ;
8H ;
2H ;
4W ;
1D ) ;
;
IN NS shlez.lykich.cxm.
;
2 PTR shlez.lykich.cxm.
5 PTR igor.lykich.cxm.
cd /etc/namedb
sh make-localhost
vi /etc/rc.conf
named_enable=”YES”(дописываю)
shutdown –r now
----------------------------resolv.conf---------------------------
domain lykich.cxm
nameserver 127.0.0.1
nameserver 194.44.39.140
---------------------------------------------
nslookup igor
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: igor.lykich.cxm
Address: 192.168.100.5
--------------------------------------
nslookup www.opennet.ru
Server: 127.0.0.1
Address: 127.0.0.1#53
Non-authoritative answer:
Name: www.opennet.ru
Address: 82.137.161.90
Вот так работае BIND .
Cd /etc/mail
make cf
добавится 4 файла
shlez.lykich.cxm.cf
shlez.lykich.cxm.mc
shlez.lykich.cxm.submit.cf
shlez.lykich.cxm. submit.mc
vi shlez.lykich.cxm.mc
divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.29 2003/12/24 21:15:09 gshapiro Exp $')
OSTYPE(freebsd5)
DOMAIN(generic)
FEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
dnl Uncomment to allow relaying based on your MX records.
dnl NOTE: This can allow sites to use your server as a backup MX without
dnl your permission.
dnl FEATURE(relay_based_on_MX)
dnl DNS based black hole lists
dnl --------------------------------
dnl DNS based black hole lists come and go on a regular basis
dnl so this file will not serve as a database of the available servers.
dnl For that, visit
dnl http://directory.google.com/Top/Computers/Internet/Abuse/Spa.../
dnl Uncomment to activate Realtime Blackhole List
dnl information available at http://www.mail-abuse.com/
dnl NOTE: This is a subscription service as of July 31, 2001
dnl FEATURE(dnsbl)
dnl Alternatively, you can provide your own server and rejection message:
dnl FEATURE(dnsbl, `blackholes.mail-abuse.org', `"550 Mail from " $&{client_addr} " rejected, see http://mail-abuse.org/cgi-bin/lookup?" $&{client_addr}')
dnl Dialup users should uncomment and define this appropriately
dnl define(`SMART_HOST', `your.isp.mail.server')
dnl Uncomment the first line to change the location of the default
dnl /etc/mail/local-host-names and comment out the second line.
dnl define(`confCW_FILE', `-o /etc/mail/sendmail.cw')
define(`confCW_FILE', `-o /etc/mail/local-host-names')
dnl Enable for both IPv4 and IPv6 (optional)
DAEMON_OPTIONS(`Name=IPv4, Family=inet')
DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O')
define(`confBIND_OPTS', `WorkAroundBrokenAAAA')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock,F=, T=S:4m;R:4m')
define(`confINPUT_MAIL_FILTERS',`clmilter')
MAILER(local)
MAILER(smtp)
Дальше
make install
vi access
-------------- access-------------------
192.168.100 RELAY
make maps
vi local-host-names
shlez.lykich.cxm
Сендмейл готов к старту
vi /usr/local/etc/clamd.conf
(у меня раскоментированы такие строки)
LogFile /var/log/clamav/clamd.log
PidFile /var/run/clamav/clamd.pid
DatabaseDirectory /var/db/clamav
LocalSocket /var/run/clamav/clamd.sock
FixStaleSocket
User clamav
AllowSupplementaryGroups
ScanMail
Остальное все закоментировано.дописываю в rc.conf clamav-демоны и сендмел
------------------- rc.conf ----------------------------------
# -- sysinstall generated deltas -- # Thu Sep 28 14:42:55 2006
# Created: Thu Sep 28 14:42:55 2006
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
#REMOVED: usbd_enable="YES"
defaultrouter="192.168.13.2"
gateway_enable="YES"
hostname="shlez.lykich.cxm"
ifconfig_lnc0="inet 192.168.13.3 netmask 255.255.255.0"
ifconfig_lnc1="inet 192.168.100.2 netmask 255.255.255.0"
ifconfig_lnc0_alias0="inet 192.168.13.13 netmask 255.255.255.255"
keymap="ru.koi8-r"
keyrate="normal"
mousechar_start="3"
usbd_enable="NO"
# This file now contains just the overrides from /etc/defaults/rc.conf.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# Enable network daemons for user convenience.
# Created: Thu Sep 28 15:45:38 2006
# -- sysinstall generated deltas -- # Thu Sep 28 15:45:38 2006
mousechar_start="3"
font8x8="cp866-8x8"
font8x14="cp866-8x14"
font8x16="cp866b-8x16"
scrnmap="koi8-r2cp866"
keyrate="normal"
keymap="ru.koi8-r"
firewall_enable="YES"
firewall_type="OPEN"
natd_enable="YES"
natd_interface="192.168.13.13"
named_enable="YES"
# This file now contains just the overrides from /etc/defaults/rc.conf.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
sendmail_enable="YES"
# Enable network daemons for user convenience.
# Created: Thu Sep 28 17:50:17 2006
# This file now contains just the overrides from /etc/defaults/rc.conf.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# Enable network daemons for user convenience.
# Created: Fri Sep 29 09:54:23 2006
# This file now contains just the overrides from /etc/defaults/rc.conf.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
clamav_clamd_enable="YES"
clamav_milter_enable="YES"
# Enable network daemons for user convenience.
# Created: Fri Sep 29 10:44:39 2006
inetd_enable="YES"
shutdown –r now
Ну а дальше при загрузке причем незнаю как у других у меня sendmail
Стартует раньше clamav.
Вот ета ошибочка
WARNING:Xsmtp-vilter: local socket name /var/run/clamav/clmilter.sock missing
chown clamav:clamav /var/log/clamav/clamd.log
shutdown –r now
WARNING:Xsmtp-vilter: local socket name /var/run/clamav/clmilter.sock missing
Потом иду на виндовую машину и отправляю писмицо.
И гляжу на него в ящике
Вот оно
From lykich@shlez.lykich.cxm Fri Sep 29 15:13:49 2006
Return-Path: <lykich@shlez.lykich.cxm>
Received: from comwind (igor.lykich.cxm [192.168.100.5])
by shlez.lykich.cxm (8.13.1/8.13.1) with SMTP id k8TCDmAr000520
for <igor@shlez.lykich.cxm>; Fri, 29 Sep 2006 15:13:49 +0300 (EEST)
(envelope-from lykich@shlez.lykich.cxm)
Message-ID: <000801c6e3b6$b068a980$0564a8c0@comwind>
From: "=?koi8-r?B?4NLJyw==?=" <lykich@shlez.lykich.cxm>
To: <igor@shlez.lykich.cxm>
Subject:
Date: Fri, 29 Sep 2006 15:02:00 +0400
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0005_01C6E3D8.3700ACB0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on shlez.lykich.cxm
X-Virus-Status: Clean
This is a multi-part message in MIME format.
------=_NextPart_000_0005_01C6E3D8.3700ACB0
Content-Type: text/plain;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
Step-by-step
------=_NextPart_000_0005_01C6E3D8.3700ACB0
Content-Type: text/html;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Dkoi8-r" http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3D"Arial Cyr" =
size=3D2>Step-by-step</FONT></DIV></BODY></HTML>
------=_NextPart_000_0005_01C6E3D8.3700ACB0--
Ну кажись все,если где то надо уточнить,сделаем.
Самое интересное
Если сделать так
сd /etc/mail
make stop
make start
Ошибок нет.