|
커피향이 나는 *NIX
커피닉스
시스템/네트웍/보안을 다루는 곳
|
|
|
|
| 이전 주제 보기 :: 다음 주제 보기 |
| 글쓴이 |
메시지 |
열라 알고싶음 손님
|
올려짐: 2004.3.16 화, 9:56 am 주제: 서버는 인터넷 되고 다른 로컬 컴퓨터 들은 안되고 |
|
|
운영체제는 redhat 9
dhcp 설정은 다 됐구요.. 그래서 ip 는 잘 받거든요..
근데 외부로 핑을 하면 핑이 않나가는 군요..(dns서버)
서버는 잘되는데.. 이게 이틀전까진 잘돼었거든요..
모두 아이피 받고... 인터넷도 서버를 통해서 잘돼고요..
뭐가 잘못 된건지.. bind 설정이 꼭 필요한건가요..(네임서버)
머가 잘못된건지 함 바주세요..
이건 dhcpd.conf 입니다..
# dhcpd.conf
#
# Sample configuration file for ISC dhcpd
#
# option definitions common to all supported networks...
option domain-name "student.zeroboys.com";
option domain-name-servers ns1.zeroboys.com, ns2.zeroboys.com;
ddns-update-style ad-hoc;
default-lease-time 3600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.4.255;
option routers 192.168.4.1;
option domain-name-servers 192.168.3.1;
subnet 192.168.4.0 netmask 255.255.255.0 {
range 192.168.4.3 192.168.4.10;
}
# subnet 61.40.233.0 netmask 255.255.255.0 {
#}
이건 rc.local 입니다..
#/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
#mount -t smbfs -o username=student,password=password //e-bank1/classes /mnt
#route add -host 255.255.255.255 dev eth1
#route add -host 255.255.255.255 dev eth0
/sbin/iptables -F
echo "1" > /proc/sys/net/ipv4/ip_forward
/sbin/modprobe ip_conntrack
/sbin/modprobe ip_conntrack_ftp
/sbin/modprobe ip_nat_ftp
/sbin/iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
이건 named.conf 입니다..
## named.conf - configuration for bind
#
# Generated automatically by redhat-config-bind, alchemist et al.
# Any changes not supported by redhat-config-bind should be put
# in /etc/named.custom
#
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
include "/etc/named.custom";
include "/etc/rndc.key";
zone "4.168.192.in-addr.arpa" {
type master;
file "4.168.192.in-addr.arpa.zone";
};
zone "localhost" {
type master;
file "localhost.zone";
};
zone "forward.student.com" {
type master;
file "forward.student.com.zone";
};
이건 foward zone 화일입니다.
$TTL 86400
@ IN SOA ns.student.com. root.localhost (
3 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
IN NS 192.168.3.1.
이건 reverse zone 화일..
$TTL 86400
@ IN SOA ns.student.com. root.localhost (
3 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttk
)
@ IN NS 192.168.3.1.
먼저 감사하다는 말씀드립니다.. |
|
| 위로 |
|
 |
yasu 카페 관리자
가입: 2004년 2월 10일 올린 글: 73
|
올려짐: 2004.3.17 수, 11:30 am 주제: Re]서버는 인터넷 되고 다른 로컬 컴퓨터 들은 안되고 |
|
|
네임서버를 사용하시는게 아니라면 bind는 설정하실 필요가 없습니다.
일단, 데몬 내려주시구여
#/etc/rc.d/init.d/bind stop
윈도우에서 네트웍환경에서 네임서버 설정하듯이..리눅스에서두 기본적인 네임서버 설정을 해야됩니다. 그 파일이 /etc/resolv.con입니다.
여기에 현재 사용하시는 ADSL의 네임서버를 넣고서 핑 테스트해보시기 바랍니다.
1)KT ADSL인 경우
- /etc/resolv.conf
search ns.kornet.net
nameserver 211.216.50.150
2)하나로 ADSL인 경우
- /etc/resolv.conf
search ns.dreamx.com
nameserver 210.181.1.41
3)두루넷 ADSL인 경우
- /etc/resolv.conf
search ns.thrunet.com
nameserver 210.117.65.100
네임서버는 하나 이상 사용도 가능합니다.
그럼, 수고하세요. |
|
| 위로 |
|
 |
|
|
새로운 주제를 올릴 수 없습니다 답글을 올릴 수 없습니다 주제를 수정할 수 없습니다 올린 글을 삭제할 수 없습니다 투표를 할 수 없습니다
|
Powered by phpBB © 2001, 2005 phpBB Group
|