罪と罰++二律背反

touch /var/log/btmp
vi /etc/xinetd.d/telnet
disable = yes 行を削除
/etc/issue.net
/etc/issueを書き換える

/etc/hosts.allow
/etc/hosts.deny

:input ACCEPT
:forward ACCEPT
:output ACCEPT
:icmp -
-A input -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 -p 1 -j icmp
-A input -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 2049:2049 -p 6 -j REJECT
-A input -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 2049:2049 -p 17 -j REJECT
-A input -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 6000:6009 -p 6 -j REJECT
-A input -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 7100:7100 -p 6 -j REJECT
-A icmp -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 -j ACCEPT
acl clients src 192.168.1287.0/255.255.255.0
http_access allow clients

/etc/ssh/sshd_config

#PermitRootLogin yes
PermitRootLogin no
/etc/hosts.deny
sshd	:ALL
/etc/hosts.allow
sshd	:172.16.0.2
sshd	:AQURE
ftp ftp.nlc.net.au/pub/unix/mail/qmail/
qmail-1.03.tar.gz
qmail-date-localtime.patch
tar xvzf qmail-1.03.tar.gz
patch -p0 < ./qmail-date-localtime.patch
mkdir /var/qmail
groupadd nofiles
useradd -g nofiles -d /var/qmail/alias -s /bin/false alias
useradd -g nofiles -d /var/qmail -s /bin/false qmaild
useradd -g nofiles -d /var/qmail -s /bin/false qmaill
useradd -g nofiles -d /var/qmail -s /bin/false qmailp
groupadd qmail
useradd -g qmail -d /var/qmail -s /bin/false qmailq
useradd -g qmail -d /var/qmail -s /bin/false qmailr
useradd -g qmail -d /var/qmail -s /bin/false qmails
cd qmail-1.03
make setup
make check
./config-fast aqure.zive.net
./config
cp /var/qmail/boot/home /var/qmail/rc
cd /var/qmail/alias
touch .qmail-postmaster .qmail-mailer-deamon .qmail-root
chmod 644 .qmail*
&aqure@tomoeda.aqure.zive.net
/var/qmail/rcを変更
./Mailboxから./Maildir
/var/qmail/bin/maildirmake ~aqure/Maildir
/var/qmail/bin/maildirmake /etc/skel/Maildir

/etc/tcp.smtp
127.0.0.1:allow,RELAYCLIENT=""
192.168.128.:allow,RELAYCLIENT=""
/usr/local/bin/tcprules /etc/tcp.smtp.cdb /etc/tcp.smtpd.tmp < /etc/tcp.smtp
/usr/local/bin/tcpserver -x /etc/tcp.smtp.cdb -v -u 502 -g 501 0 smtp /var/qmail/bin/qmail-smtp 2>&1 | /var/qmail/bin/splogger smtpd 3 &
/bin/pop3d_auth
!/bin/sh
case "$AUTH" in
apop)
exec /bin/checkapoppw "$@"
;;
*)
exec /bin/checkpw "$@"
;;
esac
chmod 600 ./.password
/usr/local/bin/tcpserver 0 pop-3 /var/qmail/bin/qmail-popup aqure.zive.net /bin/pop3d_auth /var/qmail/bin/qmail-pop3d Maildir &

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2012-06-08 (金) 00:25:02 (2691d)