では 設定替えをしていきます
$ su - Password: # cd /etc/ # sed -e "/^#/d" hosts 127.0.0.1 localhost 192.168.0.8 nyanta.no-ip.info nyanta # cp hosts 0009_hosts # vi hosts # diff -s hosts 0009_hosts 16c16 < 192.168.2.8 nyanta.no-ip.info nyanta --- > 192.168.0.8 nyanta.no-ip.info nyanta # sed -e "/^#/d" hosts.allow ALL : LOCAL ipop3d : 192.168.0.5,192.168.0.6,192.168.0.7,192.168.0.8 # cp hosts.allow 0010_hosts.allow # vi hosts.allow # diff -s hosts.allow 0010_hosts.allow 12c12 < ipop3d : 192.168.2.8,192.168.0.5,192.168.0.6,192.168.0.7,192.168.0.8 --- > ipop3d : 192.168.0.5,192.168.0.6,192.168.0.7,192.168.0.8 # cp resolv.conf 0011_resolv.conf # vi resolv.conf # diff -s resolv.conf 0011_resolv.conf 4c4 < nameserver 192.168.2.8 --- > nameserver 192.168.0.8 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # cd mail # cp access 001_access_192-168-0 # vi access # diff -s access 001_access_192-168-0 3d2 < 192.168.2 RELAY # cp local-host-names 002_local-host-names_192-168-0 # vi local-host-names # diff -s local-host-names 002_local-host-names_192-168-0 7,10d6 < 192.168.2.8 < 192.168.0.5 < 192.168.0.6 < 192.168.0.7 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ # ls -l access.db -rw-r----- 1 root root 12288 Sep 5 21:09 access.db # cp access.db 003_access.db_192-168-0 # makemap hash /etc/mail/access < /etc/mail/access # ls -l access.db -rw-r----- 1 root root 12288 Nov 19 22:57 access.db ~~~~~~~~~~~~~~~~~~~~~~~~~~~ # cd ../rc.d/ # ls -l rc.inet1 lrwxrwxrwx 1 root root 16 Sep 5 06:05 rc.inet1 -> rc.inet1.tradnet* # cp rc.inet1.tradnet 008_rc.inet1.tradnet_192-168-0-8 # vi rc.inet1.tradnet # diff -s rc.inet1.tradnet 008_rc.inet1.tradnet_192-168-0-8 27c27 < IPADDR="192.168.2.8" # REPLACE with YOUR IP address! --- > IPADDR="192.168.0.8" # REPLACE with YOUR IP address! 29,30c29,30 < NETWORK="192.168.2.0" # REPLACE with YOUR network address! < BROADCAST="192.168.2.255" # REPLACE with YOUR broadcast address, if you --- > NETWORK="192.168.0.0" # REPLACE with YOUR network address! > BROADCAST="192.168.0.255" # REPLACE with YOUR broadcast address, if you 32c32 < GATEWAY="192.168.2.1" # REPLACE with YOUR gateway address! --- > GATEWAY="192.168.0.1" # REPLACE with YOUR gateway address! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
にゃんたろう 拝!
2005年11月 4日 (金) 21:55:23 JST 作成
✈