|
DNS и SendMail
|
|||
---|---|---|---|
#18+
На сераере установлены DNS и SendMail. Как сделать так чтобы при включении сервера они не стартовали???? ... |
|||
:
Нравится:
Не нравится:
|
|||
09.04.2003, 14:22 |
|
DNS и SendMail
|
|||
---|---|---|---|
#18+
В rc посмотри, где они там запускаются и прибей стартовые скрипты. ... |
|||
:
Нравится:
Не нравится:
|
|||
09.04.2003, 14:45 |
|
DNS и SendMail
|
|||
---|---|---|---|
#18+
Беда в том что в FreeBSD это можно сделать в файле /etc/rc.conf а вот на сервере где надо это сделать стоит курленная BSD/OC (BSDI) а там этого файла нет???? ... |
|||
:
Нравится:
Не нравится:
|
|||
09.04.2003, 15:35 |
|
DNS и SendMail
|
|||
---|---|---|---|
#18+
Там явно есть что-то подобное :) ls -la /etc что говорит? ... |
|||
:
Нравится:
Не нравится:
|
|||
09.04.2003, 16:56 |
|
DNS и SendMail
|
|||
---|---|---|---|
#18+
www: {124} % ls -la /etc total 528 drwxr-xr-x 21 root wheel 2560 Apr 8 12:13 . drwxr-xr-x 17 root wheel 512 Dec 1 01:27 .. drwxrwxr-x 12 root wheel 512 Nov 3 2000 X11 -r--r--r-- 1 bin bin 1428 Oct 9 2000 amd.conf-sample -rw-r--r-- 1 root wheel 276 Apr 22 2002 boot.default -r--r--r-- 1 root wheel 4559 Oct 8 2000 boot.define -rw-r--r-- 1 root wheel 752 Oct 8 2000 changelist -rw------- 1 root wheel 21 Oct 8 2000 chap_md5_secrets -rw-r--r-- 1 root wheel 1246 Oct 8 2000 crontab -rw-r--r-- 1 root wheel 38 Oct 8 2000 csh.cshrc -rw-r--r-- 1 root wheel 38 Oct 8 2000 csh.login -rw-r--r-- 1 root wheel 39 Oct 8 2000 csh.logout -rw-r--r-- 1 root wheel 2086 Oct 8 2000 daily -rw-r--r-- 1 root wheel 96 Oct 8 2000 daily.local -rwx------ 1 root wheel 5905 Oct 9 2000 dhclient-script -rw-r----- 1 root wheel 988 Oct 9 2000 dhclient.conf-sample -rw-r----- 1 root wheel 3127 Oct 9 2000 dhcpd.conf-sample -r--r--r-- 1 root netdial 8574 Oct 8 2000 dialer.rules -rw-r--r-- 1 root netdial 731 Aug 30 2000 dialer.rules.local -rw-r--r-- 1 root wheel 11832 Oct 8 2000 disktab -rw-r--r-- 1 root wheel 411 Oct 8 2000 dm.conf -rw-rw-r-- 1 root operator 0 Oct 8 2000 dumpdates -rw-r--r-- 1 root wheel 567 Apr 22 2002 fstab -r--r--r-- 1 root wheel 1932 Oct 8 2000 fstab.sample -r--r--r-- 1 root wheel 51 Oct 8 2000 fstab.sample.sd0 -r--r--r-- 1 root wheel 51 Oct 8 2000 fstab.sample.wd0 drwxr-xr-x 2 root wheel 512 Nov 3 2000 ftpd lrwxr-xr-x 1 root wheel 11 Apr 8 12:13 ftpusers -> ftpd/banned drwxr-xr-x 2 root netdial 512 Nov 3 2000 getty -rw-r--r-- 1 root wheel 5027 Oct 8 2000 gettytab -rw-r--r-- 1 root wheel 284 Oct 8 2000 group -rw-r--r-- 1 root wheel 224 Oct 8 2000 hosts -rw-r--r-- 1 root wheel 40 May 21 2002 hosts.allow -rw-r--r-- 1 root wheel 11 Apr 25 2002 hosts.deny -rw------- 1 root wheel 0 Oct 8 2000 hosts.equiv -r--r--r-- 1 bin bin 118705 Oct 9 2000 ifhp.conf -rw-r--r-- 1 root wheel 2452 Aug 20 2002 inetd.conf -rw-r--r-- 1 root wheel 2033 Oct 8 2000 inetd.conf.nowrappers drwxr-xr-x 3 root wheel 512 Apr 22 2002 ipx -rw-r--r-- 1 root wheel 2425 Oct 8 2000 irs.conf drwxr-xr-x 2 root wheel 512 Nov 3 2000 kerberosIV -rw-r--r-- 1 root wheel 12253 Apr 22 2002 keyboard.map -rw-r--r-- 1 root wheel 4260 Aug 15 2002 ld.so.cache -rw-r--r-- 1 root wheel 130 Oct 8 2000 ld.so.conf -r-------- 1 root wheel 16 Apr 22 2002 license -r--r--r-- 1 root wheel 808 Apr 22 2002 localtime -rw-r--r-- 1 root wheel 4214 Oct 8 2000 login.conf -r--r--r-- 1 bin bin 3006 Oct 9 2000 lostaltmail.conf-sample -r--r--r-- 1 root wheel 16542 Oct 9 2000 lpd.conf -r--r--r-- 1 root wheel 10920 Oct 9 2000 lpd.perms dr-x------ 2 lpd lpd 512 Aug 28 2000 lpdhome drwxr-xr-x 2 root wheel 512 Sep 13 2002 mail -rw-r--r-- 1 root wheel 98 Oct 8 2000 mail.rc -rw-r--r-- 1 root wheel 6251 Oct 9 2000 mailcap -rw-r--r-- 1 root wheel 10072 Oct 9 2000 mailcap.sample -rw-r--r-- 1 root wheel 2126 Oct 8 2000 man.conf -rw------- 1 root wheel 1456 Apr 8 12:13 master.passwd -rw-r--r-- 1 root wheel 2231 Oct 8 2000 mime.types -r--r--r-- 1 bin bin 271 Oct 9 2000 mip6.conf.sample -rw-r--r-- 1 root wheel 536 Oct 8 2000 monthly -rw-r--r-- 1 root wheel 98 Oct 8 2000 monthly.local -rw-r--r-- 1 root wheel 352 Aug 15 2002 motd -rw-r--r-- 1 root wheel 777 Oct 8 2000 mtools.conf drwxr-xr-x 2 root wheel 512 Apr 22 2002 mtree -rw-r--r-- 1 root wheel 3364 Nov 1 18:06 named.conf -rw------- 1 root wheel 3380 Nov 1 18:06 named.conf.b drwxr-xr-x 4 root wheel 512 Aug 20 2002 namedb -rw-r--r-- 1 root wheel 93 Oct 8 2000 netgroup drwxr-xr-x 4 root wheel 512 Apr 22 2002 netscripts -rw-r--r-- 1 root wheel 10230 Aug 15 2002 netstart -rw-r--r-- 1 root wheel 9893 Oct 24 2000 netstart.proto -rw-r--r-- 1 root wheel 388 Oct 8 2000 networks drwxrwxr-x 2 root wheel 512 Nov 3 2000 oss -rw-rw-r-- 1 root wheel 19 Sep 6 2000 oss.conf -rw-r--r-- 1 root wheel 1204 Apr 8 12:13 passwd -rw-r--r-- 1 root wheel 9723 Oct 24 2000 pccard.conf -rw-r--r-- 1 root wheel 228 Oct 8 2000 phones -r-------- 1 root netdial 3857 Aug 30 2000 ppp.sys -r-------- 1 root netdial 3857 Oct 8 2000 ppp.sys.sample -r--r--r-- 1 root wheel 6855 Oct 9 2000 printcap -r--r--r-- 1 root wheel 161 Oct 9 2000 printcap.local -rw-r--r-- 1 root wheel 883 Oct 8 2000 protocols -rw-r--r-- 1 root wheel 40960 Apr 8 12:13 pwd.db drwxrwxr-x 2 root wheel 512 Nov 3 2000 racoon drwx------ 2 radius radius 512 Oct 8 2000 raddb -rw-r--r-- 1 root wheel 10211 Apr 25 2002 rc drwxr-xr-x 2 root wheel 512 Apr 22 2002 rc.configure drwxr-xr-x 2 root wheel 512 Nov 3 2000 rc.hardware -rw-r--r-- 1 root wheel 2055 Apr 25 2002 rc.local -rw-r--r-- 1 root wheel 1854 Oct 8 2000 remote -rw-r--r-- 1 root wheel 24 Nov 1 11:47 resolv.conf lrwxr-xr-x 1 root wheel 18 Apr 8 12:13 rimapd -> /usr/libexec/imapd lrwxr-xr-x 1 root wheel 13 Apr 8 12:13 rmt -> /usr/sbin/rmt -rw-r--r-- 1 root wheel 844 Oct 8 2000 rpc drwxr-xr-x 13 root wheel 512 Nov 3 2000 samba_samples -rw-r--r-- 1 root wheel 13869 Oct 24 2000 security -rw-r--r-- 1 root wheel 4844 Oct 8 2000 services -rw-r--r-- 1 root wheel 192 Apr 22 2002 shells -rw-r--r-- 1 root wheel 3807 Nov 3 2000 shlib.map -rw-r--r-- 1 root bin 0 Aug 31 2000 skeykeys drwxr-xr-x 2 root wheel 512 Nov 3 2000 sliphome drwxr-xr-x 2 root wheel 512 Nov 3 2000 snmp -rw------- 1 root wheel 40960 Apr 8 12:13 spwd.db -rw-r--r-- 1 root wheel 974 Aug 31 2000 ssh_config -rw------- 1 root wheel 668 Apr 22 2002 ssh_host_dsa_key -rw-r--r-- 1 root wheel 605 Apr 22 2002 ssh_host_dsa_key.pub -rw------- 1 root wheel 530 Apr 22 2002 ssh_host_key -rw-r--r-- 1 root wheel 334 Apr 22 2002 ssh_host_key.pub -rw-r--r-- 1 root wheel 1210 Oct 10 2000 ssh_prng_cmds -rw-r--r-- 1 root wheel 1166 Sep 14 2000 sshd_config -rw-r--r-- 1 root wheel 1561 Oct 8 2000 syslog.conf lrwxr-xr-x 1 root wheel 25 Apr 8 12:13 termcap -> ../usr/share/misc/termcap -rw-r--r-- 1 root wheel 4658 Apr 22 2002 ttys -r--r--r-- 1 root netdial 12681 Oct 8 2000 ttys.conf -rw-r--r-- 1 root netdial 750 Aug 30 2000 ttys.conf.local drwxr-xr-x 3 uucp uucp 512 Nov 3 2000 uucp -rw-r--r-- 1 root wheel 1266 Oct 8 2000 weekly -rw-r--r-- 1 root wheel 544 Oct 8 2000 weekly.local ... |
|||
:
Нравится:
Не нравится:
|
|||
09.04.2003, 17:28 |
|
DNS и SendMail
|
|||
---|---|---|---|
#18+
Какая гнусная система. Ну посмотри в rc.local, в rc.configure/* ... |
|||
:
Нравится:
Не нравится:
|
|||
09.04.2003, 18:21 |
|
DNS и SendMail
|
|||
---|---|---|---|
#18+
Я уже смотрел там ничего нет. ... |
|||
:
Нравится:
Не нравится:
|
|||
10.04.2003, 08:33 |
|
DNS и SendMail
|
|||
---|---|---|---|
#18+
Код: plaintext 1.
http://www.bsdnewsletter.com/2002/07/Features14.html ... |
|||
:
Нравится:
Не нравится:
|
|||
10.04.2003, 10:15 |
|
DNS и SendMail
|
|||
---|---|---|---|
#18+
Вот эти файлы /etc/rc # Copyright (c) 1995 Berkeley Software Design, Inc. All rights reserved. # The Berkeley Software Design Inc. software License Agreement specifies # the terms and conditions for redistribution. # # BSDI rc,v 2.92 2000/09/29 02:40:23 geertj Exp # System startup script run by init on autoboot or after single-user. # Output and error are redirected to console by init, and the console # is the controlling terminal. stty status '^T' # Set shell to ignore SIGINT (signal 2), but not children; shell catches # SIGQUIT (signal 3) and returns to single user after fsck. trap : 2 trap : 3 # shouldn't be needed HOME=/; export HOME if [ -f /etc/rc.first ] then . /etc/rc.first fi if [ $1x = autobootx ] then echo "Automatic reboot in progress: starting file system checks." fsck -p case $? in 0) ;; 2) exit 1 ;; 4) echo "Rebooting..." reboot echo "Reboot failed; help!" exit 1 ;; 8) echo "Automatic file system check failed; help!" exit 1 ;; 12) echo "Boot interrupted." exit 1 ;; 130) # interrupt before catcher installed exit 1 ;; *) echo "Unknown error; help!" exit 1 ;; esac fi trap "echo 'Boot interrupted.'; exit 1" 3 swapon -a asyncd 2 umount -a >/dev/null 2>&1 mount -a -t nonfs,nonetc # The following test does not work if /var or /usr are mounted via # NFS; NFS file systems are mounted later. for dir in /var/db /usr/bin; do if [ ! -d $dir ]; then echo "Required filesystems were not mounted; help!" exit 1 fi done # clean up left-over files rm -f /etc/nologin rm -f /var/spool/uucp/LCK.* rm -f /var/spool/uucp/STST/* rm -f /var/spool/at/atrun.lock (cd /var/run && { rm -rf -- *; install -c -m 664 -g utmp /dev/null utmp; }) if [ -d /etc/rc.configure ] then cd /etc/rc.configure trap "echo 'configuration interrupted.'; exit 1" 2 stty erase ^H TERM=$( (echo 'console() { term="$2"; for i do case $i in term=*) term=$(expr "$i" : "term=\(.*\)") esac done; echo "$term"; exit 0 }'; grep '^console[ ]' /etc/ttys) | sh) export TERM for i in * do case $i in [0-9]*.*.*[0-9]) if ! ./$i ; then exit 1 fi ;; *) ;; esac done trap : 2 cd / fi if [ -r /etc/license ] then sysctl -w kern.license="$(cat /etc/license)" > /dev/null else echo "Warning: no license for this machine" fi if [ -d /etc/rc.hardware ] then cd /etc/rc.hardware echo -n system specific hardware configuration: for i in * do case $i in [0-9]*.*.*[0-9]) sh $i ;; *) ;; esac done echo . cd / fi if [ ! -f /.base-4.2 ]; then # create a file as a timestamp for install touch /.base-4.2 fi gettyd -s # start gettyd in single user mode # set hostname, turn on network echo 'starting network' . /etc/netstart # check if NFS is in the kernel if [ `nm /bsd | grep -c nfs` = 0 ]; then nfs=NO else nfs=YES fi echo 'starting system logger' syslogd ${syslogdflags-"-l"} # /var/crash should be a directory or a symbolic link # to the crash directory if core dumps are to be saved. if [ -d /var/crash ]; then echo checking for core dump... savecore /var/crash fi # If /etc/gated.conf exists, gated is used; otherwise routed. if [ -f /etc/gated.conf ]; then gdc start fi echo -n 'starting network daemons:' if [ X"${ilmid}" = XYES ]; then echo -n ' ilmid'; ilmid fi if [ -f /etc/scspd.conf -a X"${atmarpd}" != XNO ]; then echo -n ' scspd'; scspd echo -n ' atmarpd'; atmarpd ${atmarpd} fi echo -n ' portmap'; portmap # If gated is being used or $routedflags == NO, routed isn't run. if [ ! -f /etc/gated.conf -a X"${routedflags}" != XNO ]; then [ "X${routedflags}" = "XYES" ] && routedflags="" echo -n ' routed'; routed $routedflags fi if [ -f /etc/named.conf ]; then echo -n ' named'; named fi if [ X${nis_domain} != X ]; then echo -n " ypbind"; ypbind -s fi if [ -f /etc/dhcpd.conf -a "X${dhcpdflags}" != X"NO" ]; then [ "X${dhcpdflags}" = "XYES" ] && dhcpdflags="" echo -n ' dhcpd'; dhcpd $dhcpdflags fi # Only start mountd and nfs daemons if /etc/exports exists if [ -f /etc/exports -a X${nfs} != X"NO" ]; then echo -n ' mountd'; mountd echo -n ' nfsd'; nfsd -u -t -n 6 fi # start status monitor and locking daemon if they exist if [ -f /usr/libexec/statd ]; then echo -n ' statd'; /usr/libexec/statd fi if [ -f /usr/libexec/lockd -a X${nfs} != X"NO" ]; then echo -n ' lockd'; /usr/libexec/lockd fi echo '.' if [ -f /sbin/mount_nfs -a X${nfs} != X"NO" ]; then mount -a -t nfs fi if [ -f /sbin/mount_netc -a X${netc} != X"NO" ]; then mount -a -t netc fi echo -n 'checking quotas:' quotacheck -a echo ' done.' quotaon -a # build ps databases kvm_mkdb /bsd dev_mkdb # build lsof database rm -f /var/run/lsof.dc if [ -x /usr/contrib/bin/lsof ]; then lsof -Du/var/run/lsof.dc -p99999 > /dev/null 2>&1 if [ $? -eq 0 ]; then echo "problems creating /var/run/lsof.dc" rm -f /var/run/lsof.dc else chmod 0644 /var/run/lsof.dc fi fi chmod 666 /dev/tty[pqrs]* chown root /dev/console chmod 600 /dev/console # check the password temp/lock file if [ -f /etc/ptmp ] then logger -s -p auth.err \ 'password file may be incorrect -- /etc/ptmp exists' fi # recover nvi editor files /usr/share/vi/recover echo clearing /tmp # prune quickly with one rm, then use find to clean up /tmp/[lq]* # (not needed with mfs /tmp, but doesn't hurt there...) (cd /tmp && rm -rf [a-km-pr-zA-Z]* && find -d . ! -name . ! -name lost+found ! -name quotas \ ! -name quota.user ! -name quota.group -exec rm -rf -- {} \;) if [ -f /var/account/acct ]; then echo 'turning on accounting'; accton /var/account/acct fi echo 'checking system configuration' chkconfig echo -n standard daemons: echo -n ' cron'; cron if [ -f /usr/libexec/randomd -a "X${randomdflags}" != X"NO" ]; then [ "X${randomdflags}" = "XYES" ] && randomdflags="" echo -n ' randomd'; /usr/libexec/randomd $randomdflags if [ ! -e /dev/random ] ; then ln -sf /var/run/random.stream /dev/random fi if [ ! -e /dev/urandom ] ; then ln -sf /var/run/random.md5 /dev/urandom fi fi echo '.' if [ -f /etc/ntp.conf ]; then NTPSERVERS=$(awk '$1 == "peer" { peers = peers " " $2 } $1 == "server" && $2 !~ /^127.127/ { servers = servers " " $2 } $1 == "broadcastclient" && (NF == 2) { print $2 } $1 == "manycastclient" && (NF > 1) { print $2 } $1 == "multicastclient" { print (NF > 1) ? gensub("^[:blank:]*multicastclient[:blank:]*", "", "g") : "224.0.1.1" } END { servers = servers " " peers; print gensub("^ *", "", "g", servers) }' /etc/ntp.conf) if [ -n "${NTPSERVERS}" ]; then echo -n 'using ntpdate to set the clock' ntpdate -bs ${NTPSERVERS} echo '.' fi fi if [ "X${sshdflags}" != "XNO" -a -x /usr/contrib/bin/ssh-keygen ]; then # Generate keys if they don't exist... if [ ! -f /etc/ssh_host_key ] ; then echo -n 'generating ssh host key (may take a while) ...' /usr/contrib/bin/ssh-keygen -q -b 1024 -N '' \ -f /etc/ssh_host_key echo ' done!' fi if [ ! -f /etc/ssh_host_dsa_key ] ; then echo -n 'generating ssh DSA host key (may take a while) ...' /usr/contrib/bin/ssh-keygen -q -d -b 1024 -N '' \ -f /etc/ssh_host_dsa_key echo ' done!' fi fi echo -n starting additional network daemons: if [ -f /etc/ntp.conf ]; then echo -n ' ntpd'; ( limit openfiles 580; ntpd ) else # $timedflags is imported from /etc/netstart; # if $timedflags == NO, timed isn't run. if [ "X${timedflags}" != X"NO" ]; then [ "X${timedflags}" = "XYES" ] && timedflags="" echo -n ' timed'; timed $timedflags fi fi if [ -f /sbin/nfsiod -a X${nfs} != X"NO" ]; then echo -n ' nfsiod'; nfsiod 4 fi # $rwhod is imported from /etc/netstart; # if $rwhod is set to something other than NO, rwhod is run. if [ -f /usr/sbin/rwhod -a "${rwhod-NO}" != "NO" ]; then [ "X${rwhod}" = "XYES" ] && rwhod="" echo -n " rwhod"; rwhod $rwhod fi # $rstatd is imported from /etc/netstart; # if $rstatd is not to something other than NO, rstatd is run. if [ -f /usr/sbin/rstatd -a ${rstatd-NO} != "NO" ]; then echo -n ' rstatd'; rstatd & fi if [ -f /etc/printcap ]; then echo -n ' printer'; lpd fi if [ -f /etc/mail/sendmail.cf -a -x /usr/sbin/sendmail ]; then (cd /var/spool/mqueue; rm -f [lnx]f*) # Build /etc/mail/aliases.db if there isn't one (req. in newer versions) if [ ! -f /etc/mail/aliases.db ]; then /usr/bin/newaliases >/dev/null 2>&1 fi echo -n ' sendmail'; /usr/sbin/sendmail -bd -q30m fi if [ -f /etc/amd.conf ]; then echo -n ' amd'; amd fi # Kerberos runs ONLY on the Kerberos server machine if [ -f /etc/kerberosIV/principal.db ]; then echo -n ' kerberos' kerberos >> /var/log/kerberos.log & fi #if [ "X${maximflags}" != "XNO" -a -x /usr/sbin/maxim ]; then # echo -n ' maxim'; maxim -s #fi #if [ -f /var/www/docs/index.html ]; then # echo -n ' httpd'; /usr/contrib/bin/apachectl startq #fi #if [ -f /var/www/squid/conf/squid.conf ]; then # echo -n ' squid'; /var/www/squid/bin/start-squid #fi # Main fax spooler processes -- modem processes are run from /etc/ttys by # init or out-only faxq processes are run from rc.local if [ -f /var/spool/fax/etc/config ]; then echo -n ' faxq'; faxq echo -n ' hfaxd' /usr/contrib/lib/hylafax/hfaxd -i hylafax -o oldfax -s snpp fi # Samba (SMB/Lanmanager/NT filesystem and print server) if [ -f /etc/smb.conf ]; then echo -n ' nmbd'; nmbd -D echo -n ' smbd'; smbd -D fi # "-u internal" is the same as the default action if # there is no -u option. if [ -f /etc/inetd.conf ]; then echo -n ' inetd'; inetd -u ${inetd_ignore:-internal} fi if [ -f /etc/raddb/users -a -f /etc/raddb/clients ]; then echo -n ' radiusd'; radiusd fi # Start rarpd if it might answer queries (requires both the configuration # file in /etc/ethers, and boot files in /tftpboot). if [ -f /etc/ethers -a -d /tftpboot ]; then echo -n ' rarpd'; rarpd -a fi if [ "X${apmdflags}" != "XNO" -a -x /usr/libexec/apmd ]; then echo -n ' apmd'; /usr/libexec/apmd ${apmdflags} fi if [ "X${sshdflags}" != "XNO" -a -x /usr/contrib/bin/sshd ]; then echo -n ' sshd'; /usr/contrib/bin/sshd ${sshdflags} fi echo '.' # Transition to symmetric I/O mode and start additional CPUs if [ -f /etc/mp.config -a ! -f /etc/mp.nostart ]; then echo 'Starting additional CPUs'; cpu mp fi sh /etc/rc.local date exit 0 /etc/netstart # # netstart - configure network daemons, interfaces, and routes # hostname=www.fic.ru nis_domain= interfaces="exp0" primary="exp0" defroute="145.249.17.126" # exp0:: ipaddr_exp0="145.249.17.1" netmask_exp0="255.255.255.128" linkarg_exp0="media auto" additional_exp0= # DO NOT DELETE THIS LINE (V3.0) -- make local changes below here # # BSDI netstart.proto,v 2.33 2000/10/23 14:03:39 dab Exp # @(#)netstart 5.9 (Berkeley) 3/30/91 # ############################################################################# # # Configure additional Ethernet, FDDI or Token Ring interfaces with # Maxim or by adding interface definitions above. The format of an # interface defintion is: # # # XXN:: # ipaddr_XXN="WW.XX.YY.ZZ" # netmask_XXN="MM.MM.MM.MM" # linkarg_XXN="LINK ARGS" # additional_XXN= # or # ipaddr_XXN="WW.XX.YY.ZZ/prefix" # linkarg_XXN="LINK ARGS" # additional_XXN= # # Where XXN should be replaced by the interface name and unit number # (e.g. ef0, we1, ntwo1, ...). Also add the interface name to the # defintion of the interfaces variable, the interface names in this # list are seperated by spaces. # # For example, to add the configuration of ef1 at address 10.1.2.3 # with a netmask of 255.255.255.0 and a media type of bnc use: # # # ef1:: # ipaddr_ef1="10.1.2.3" # netmask_ef1="255.255.255.0" # linkarg_ef1="media bnc" # additional_ef1= # or # # ef1:: # ipaddr_ef1="10.1.2.3/24" # linkarg_ef1="media bnc" # additional_ef1= # # If ef0 was already configured, after adding ef1 to the interfaces # variable defintion you would end up with: # # interfaces="ef0 ef1" # ############################################################################# # # IPV6 configuration # # When a kernel is configured with INET6, then when any interface # is brought up, the IPv6 link-local address is automatically # assigned to that interface by the kernel. # # There are 3 variables that may be used for IPv6 configuration: # ip6addr_XXN="xxxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx/prefix" # # v4compat_XXN=YES # # rtadv_XXN=YES # # ip6addr_XXN specifies an IPv6 address to assign to the interface. # # If v4compat_XXN is set to "YES", then the IPv4 compatible # address "::WW.XX.YY.ZZ" will also be assigned to the interface. # (You need to have both ipaddr_XXN and netmask_XXN specified) # # If rtadv_XXN is set, the sysctl variable # net.inet.ip6.accept_rtadv # will be set before issuing the ifconfig command. Setting # it to YES will allow router advertisement messages to be # accepted, to NO will ignore them. # # ############################################################### # # Note: net.inet.ip6.accept_rtadv is NOT a per-interface # # # variable, and will be left at the last value it was set to. # # ############################################################### # # A default IPv6 router is specified via: # # def6route="xxxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx" # ############################################################################# # # ATM configuration # # The ATM configuration variables are: # # atm_adapters # Specify a list of ATM adapters to configure. # atm_netif_XXN # Defines the prefix and number of the network interfaces to # define for ATM adapter XXN. Prefixes must be unique for each ATM # adapter. # atm_sigmgr_XXN # Defines the ATM signalling manager to attach to ATM adapter # XXN. # atm_prefix_XXN # Defines the NSAP prefix to use for ATM adapter XXN. Not # required if the ATM switch supports ILMI and you run ilmid. # atm_arpserver_XXN # Specifies the NSAP address of the ATM ARP server for network # interface XXN. # ilmid # (YES or NO) Specifies whether ilmid will be started. # atmarpd # (NO or a list of network interfaces) Specifies that ATM # ARP service will be provided on the given network interfaces. # Requires that scspd is configured and running. # # A sample configuration is: # # interfaces="... atma0 atmb0 atmb1" # # ... # # ATM configuration # atm_adapters="hfa0 hfa1" # # Fore ATM adapter 0 # atm_netif_hfa0="atma 1" # atm_sigmgr_hfa0="uni31" # atm_arpserver_atma0=0x47.0005.80.ffe100.0000.f21a.4a9d.0020481a4a9d.00 # ipaddr_atma0="10.1.0.0" # netmask_atma0="255.255.0.0" # # # Fore ATM adapter 1 # atm_netif_hfa1="atmb 2" # atm_sigmgr_hfa1="uni31" # atm_arpserver_atmb0=0x47.0005.80.ffe100.0000.f21a.4a9d.0020481a4a9d.00 # ipaddr_atmb0="10.2.1.0" # ipaddr_atmb0="255.255.255.0" # atm_arpserver_atmb1=0x47.0005.80.ffe100.0000.f21a.4a9d.0020481a4a9d.00 # ipaddr_atmb1="10.2.2.0" # ipaddr_atmb1="255.255.255.0" # # ilmid=YES # atmarpd="atma0 atmb1" # ############################################################################# # # These flags specify whether or not to run the daemons (values YES or NO), # or the flags with which to run them if another value. # maximflags=YES routedflags=NO timedflags=NO rwhod=-M16 rstatd=NO randomdflags=YES # Do not start apmd by default # For normal operation (apmd controls suspend events) uncomment # the following line # apmdflags="-m user" apmdflags="${apmdflags:-NO}" # Start dhcpd by default if /etc/dhcpd.conf exists. Put command line # flags for it here (-q keeps it from being verbose on startup). dhcpdflags=-q # Default to no network connections. See syslogd(8). syslogdflags=-l # Argument for the -u option of inetd. See inetd(8). inetd_ignore=internal # Start sshd by default if a host key exists. Add flags here if desired. sshdflags= # Run ATM ILMI protocol ilmid=NO # A list of network interfaces on which to provide ATM ARP service atmarpd=NO ############################################################################# # # Configure hostname and NIS domain as defined in the header # hostname $hostname # Setting the YP/NIS nis_domain does not configure YP/NIS for your # system -- see irs.conf(5). if [ X$nis_domain != X ]; then domainname $nis_domain fi ############################################################################# # Run any sysctl commands configured in /etc/rc.local. Some of them # need to be enabled before the routing daemon is started and # /etc/rc.local is run too late in the boot process. Network related # sysctl commands will all eventually all be moved here. grep 'sysctl[ ]-w[ ]net\.' /etc/rc.local | sh ############################################################################# # Configure ATM adapters for if in $atm_adapters; do netif=`eval "echo \\\$atm_netif_$if"` sigmgr=`eval "echo \\\$atm_sigmgr_$if"` prefix=`eval "echo \\\$atm_prefix_$if"` if [ X"$netif" != X ]; then set -- $netif atm set netif $if $1 $2 if [ X$sigmgr != X ]; then atm attach $if $sigmgr fi if [ X$prefix != X ]; then atm set prefix $if $prefix fi fi done ############################################################################# # # Configure interfaces defined in the header # for if in $interfaces; do ipaddr=`eval "echo \\\$ipaddr_$if"` ipprefix=`expr $ipaddr : '[^/]*/\(.*\)'` ipaddr=`expr $ipaddr : '\([^/]*\).*'` ip6addr=`eval "echo \\\$ip6addr_$if"` if [ X$ipaddr != X ]; then eval "ifconfig $if inet set $ipaddr\${ipprefix:+/}$ipprefix \ \${netmask_$if:+netmask} \$netmask_$if \ \$linkarg_$if \$additional_$if" fi if [ X$ip6addr != X ] ; then eval "ifconfig $if inet6 add $ip6addr \$linkarg_$if" fi rtadv=`eval "echo \\\$rtadv_$if"` if [ X$rtadv = XYES ]; then sysctl -w net.inet.ip6.accept_rtadv=1 elif [ X$rtadv = XNO ]; then sysctl -w net.inet.ip6.accept_rtadv=0 fi v4compat=`eval "echo \\\$v4compat_$if"` if [ X$v4compat = XYES -a X$ipaddr != X ] ; then if [ X$ipprefix != X ]; then eval "ifconfig $if inet6 add ::$ipaddr/`expr 96 + $ipprefix`" else eval "ifconfig $if inet6 add ::$ipaddr \ netmask ffff:ffff:ffff:ffff:ffff:ffff:\$netmask_$if" fi fi done unset ipaddr ipprefix ip6addr rtadv v4compat # set up multicast on primary interface if [ X$primary != X ] ; then ipaddr=`eval "echo \\\$ipaddr_$primary"` ipaddr=`expr $ipaddr : '\([^/]*\).*'` route add -net 224.0.0.0/4 -interface $ipaddr unset ipaddr fi # Configure virtual hosts defined in /etc/virtualip # /etc/virtualip contains a list of IP addresses to configure. # We lookup the link address (if any) and arp for them if we # can; otherwise we just add them as an IP alias on the loopback. if [ -f /etc/virtualip ]; then /usr/libexec/linkaddr $(cat /etc/virtualip | sed -e '/^#/d' -e 's/#.*//') 2>/dev/null | \ while read line; do set -- $line # virtualip [linkaddr] ifconfig lo0 add $1 if [ "$2" ]; then arp -s $1 $2 pub; fi done fi ############################################################################# # Configure IPX addresses # if [ "X$netcinterfaces" != "X" ]; then . /etc/ipx/ipxstart fi ############################################################################# # Finish configuring ATM interfaces after IP addresses have been configured # if [ "X$atm_adapters" != "X" ]; then for netif in `atm show netif 2>/dev/null | \ sed -e 1d -e '2,$s/ .*//'`; do arpserver=`eval "echo \\\$atm_arpserver_$netif"` if [ X$arpserver != X ]; then atm set arpserver $netif $arpserver fi done fi ############################################################################# # # NOTE: # Configure LAN (Ethernet, FDDI and Token Ring) interfaces with # maxim(8) or by specification of the configuration variables as # described above. # # If you have non-LAN interfaces (such as synchronous serial # interfaces), you will have to add ifconfig lines for them manually. # These ifconfig commands should placed before the ifconfig for lo0 # and the installation of a default route. # # Add commands to configure non-LAN interfaces AFTER this line # Add commands to configure non-LAN interfaces BEFORE this line # # configure localhost (loopback) interface ifconfig lo0 inet add 127.1 # do not send packets to the "loopback" net off-machine route add -net 127 127.1 -reject # Configure a static default route as defined in the header if [ X$defroute != X ]; then route add default $defroute fi if [ "X$def6route" != X ] ; then eval "route add -inet6 default $def6route" fi # # Configure addition interfaces as described above instead of adding # ifconfig commands here. # # BEGIN LOCAL ADDITIONS ... |
|||
:
Нравится:
Не нравится:
|
|||
11.04.2003, 08:46 |
|
DNS и SendMail
|
|||
---|---|---|---|
#18+
/etc/rc.lical # Copyright (c) 1995 Berkeley Software Design, Inc. All rights reserved. # The Berkeley Software Design Inc. software License Agreement specifies # the terms and conditions for redistribution. # # BSDI rc.local,v 2.21 2000/06/28 15:33:00 polk Exp # # site-specific startup actions, daemons T=/etc/motd.tmp (sysctl -n kern.version | head -1; echo ""; sed '1,/^$/d' < /etc/motd) > $T cat $T > /etc/motd rm -f $T echo 'setting configuration parameters:' # uncomment the next line to panic if there is a parity error (recommended). # echo -n "memory parity checking: "; sysctl -w machdep.parityerrorpanic=1 # Network configuration; see sysctl(8) for other possibilities. # XXX # These commands are parsed by /etc/netstart and will eventually move there. # to enable verification of the source of IP packets # (this does not work in the presence of redundant paths). # echo -n "IP source checking "; sysctl -w net.inet.ip.sourcecheck=1 # to enable IP packet forwarding (routing): # echo -n "IP forwarding: "; sysctl -w net.inet.ip.forwarding=1 # to enable IPv6 packet forwarding (routing): # echo -n "IPv6 forwarding: "; sysctl -w net.inet.ipv6.forwarding=1 # to disable forwarding of source-routed packets: # echo -n "source-route: "; sysctl -w net.inet.ip.forwsrcrt=0 echo -n 'starting local daemons:' # Uncomment the following line to run pcnfsd -- don't forget to # add the -n argument to mountd in /etc/rc as well... # echo -n " pcnfsd"; /usr/contrib/bin/pcnfsd # Put additional local daemons here... echo '.' # Uncomment the following to start INN (netnews) # su -m -c news news -c /var/news/etc/rc.news # Uncomment the following to start xdm (to run X on the console) # if [ -f /usr/X11R6/lib/X11/xdm/xdm-config ]; then # echo 'Starting xdm'; /usr/X11R6/bin/xdm # fi # Uncomment the following to enable OSS sound devices # (you should already have configured OSS) # /sbin/soundon # Put other local customizations here... echo -n "MySQL MF"; /usr/local/mysql/bin/mysql.server start echo -n "Apache MF"; /usr/local/apache/apache.start ... |
|||
:
Нравится:
Не нравится:
|
|||
11.04.2003, 08:48 |
|
DNS и SendMail
|
|||
---|---|---|---|
#18+
to Gooddy: ну ты чего совсем о......л что-ли? Нафига такие посты класть? По почте посылай кому надо или линк кидай. P.S. о.....л - имелось ввиду "офигел". ... |
|||
:
Нравится:
Не нравится:
|
|||
11.04.2003, 09:25 |
|
DNS и SendMail
|
|||
---|---|---|---|
#18+
Софтбилдер прав, уж очень длинный пост. Но по делу - там же всё написано, Gooddy, - Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14.
Рецепт: 1. Закомментировать строки запуска named и sendmail в /etc/rc или 2. Переименовать /etc/named.conf и /etc/sendmail.cf во что-нибудь другое. ... |
|||
:
Нравится:
Не нравится:
|
|||
11.04.2003, 10:30 |
|
|
start [/forum/topic.php?fid=25&msg=32136980&tid=1491865]: |
0ms |
get settings: |
16ms |
get forum list: |
5ms |
check forum access: |
1ms |
check topic access: |
1ms |
track hit: |
35ms |
get topic data: |
3ms |
get forum data: |
1ms |
get page messages: |
199ms |
get tp. blocked users: |
1ms |
others: | 20ms |
total: | 282ms |
0 / 0 |