¸®´ª½º¿¡¼ Diald¸¦ »ç¿ëÇÏ¿© ISDN¶ó¿ìÅÍ ¸¸µé±â
¸®´ª½º¿¡¼ Diald¸¦ »ç¿ëÇÏ¿© ISDN¶ó¿ìÅÍ ¸¸µé±â
±è±â¼ö baram88@soback.kornet.net
1999.05.21 5.1¹ø°¼öÁ¤ 1999.04.19óÀ½¾¸
À̹®¼´Â Diald¸¦ »ç¿ëÇÏ¿© ISDNÀ̳ª ¸ðµ©À» ÅëÇÑ ÀÎÅͳݿ¬°á¹æ¹ý°ú
´Ù¸¥ PCµé°ú ȸ¼±À» °øÀ¯ÇÏ´Â ¹æ¹ýÀ» ¼³¸íÇÏ°íÀÚ ÇÕ´Ï´Ù.
¸®´ª½º ¹Ú½º¿¡¼ ISDN 1ȸ¼±(ÀÏ¹Ý ¸ðµ©µµ »ó°ü¾ø½À´Ï´Ù.)À¸·Î ¿©·¯´ëÀÇ
ÄÄÇ»ÅÍ°¡ ÀÎÅͳÝÀ» °øÀ¯Çؼ »ç¿ëÇÏ´Â ¹æ¹ýÀ» ¼Ò°³ ÇÏ°íÀÚ ÇÕ´Ï´Ù.
ÀϹÝÀûÀ¸·Î ½ÃÁß¿¡¼ ±¸ÇÒ¼ö ÀÖ´Â ISDN ¶ó¿ìÅÍ´Â Á¢¼ÓÇÏ°íÀÚÇÏ´Â ³×Æ®¿÷¿¡ µû¶ó
Àüȸ¦ µû·Î °É¾îÁÖ´Â ¹æ½ÄÀÌ ¾Æ´Ï¶ó ÇÑ°÷¸¸¸¦ ÁöÁ¤ÇÏ¿© Àüȸ¦ °É¾î¼ Á¢¼ÓÇØ
ÁÖ´Â ¿ªÇÒÀ» ÇÕ´Ï´Ù. ÁÖ·Î ISP·Î Àüȸ¦ °Ì´Ï´Ù.
ÀÌ·± ¿ªÇÒÀº ¸®´ª½º·Î ¾î·ÆÁö ¾Ê°Ô ¸¸µé¼ö ÀÖ½À´Ï´Ù.
Àú´Â ¾ËÂ¥ ·¡µåÇÞ 5.2 ¹öÀü°ú ÄÚ³Ý °èÁ¤ ±×¸®°í Diald¸¦
±âÁØÀ¸·Î ¼³¸íÇÏ°íÀÚÇÕ´Ï´Ù.
´Ù¸¥ ȯ°æÀ¸·Î ¼º°øÇÏ½Ã¸é ¸ÞÀÏ ºÎŹµå¸³´Ï´Ù.
±×¸®°í ¸ÞÀÏ È¯¿µÇÕ´Ï´Ù. ¾î¶² ÀÇ°ßÀÌ¶óµµ º¸³»ÁÖ½Ã¸é °¨»çÇÏ°Ú½À´Ï´Ù.
°¢°¢ÀÇ PC¿¡ LAN Ä«µå¸¦ ¼³Ä¡ÇÏ°í Çãºê¶ó´Â Àåºñ¸¦ ÅëÇØ ³×Æ®¿÷À¸·Î ¿¬°áÇÕ´Ï´Ù.
ÀÚ¼¼ÇÑ ¼³¸íÀº ´Ù¸¥ ¹®¼¸¦ Âü°í ÇϽñ⠹ٶø´Ï´Ù.
À̳»¿ëµµ ´Ù¸¥ ¹®¼¸¦ Âü°íÇϼÌÀ¸¸é ÇÕ´Ï´Ù.
- ¿ÜÀåÇü NT³»ÀåÇü TA (¶Ç´Â ¸ðµ©) - ¿©±â¼´Â ´ºÅØÀÇ ¿È´Ï¸ðµ¨ÀÔ´Ï´Ù.
- ¸ÖƼ¸µÅ©PPP Á¦¾î¸í·É (Á¦Ç°¸Þ´º¾ó¿¡ ÀÖÀ» °Ì´Ï´Ù.) - ¸ðµ©Àº À̸í·ÉÀÌ ÇÊ¿ä ¾ø½À´Ï´Ù.
- ISP °èÁ¤ (¿©±â¼´Â ÄÚ³ÝÀ» ¿¹·Î µé¾ú½À´Ï´Ù.)
- ISDN Á¢¼ÓÀüȹøÈ£
- ¾ÆÀ̵ð,Æнº¿öµå
- DNS ÁÖ¼Ò
- ¸®´ª½º¹Ú½º (Àú´Â ÆÒƼ¾ö 166 ÀÔ´Ï´Ù.)
- ¾ËÂ¥ RedHat 5.2 ( 9,900¿ø¿¡ ±¸ÀÔÇؼ ¼³Ä¡Çß½À´Ï´Ù.)
- Diald
- diald16-0.16.5a-2.i386.rpm 159038 byte
- diald16-config-0.16.5a-2.i386.rpm 6233 byte
Redhat ¹Ì·¯»çÀÌÆ®ÀÎ º¸¶ó³Ý¿¡¼ ¹Þ½À´Ï´Ù.
ftp://ftp.bora.net/pub/Linux/redhat-contrib/libc6/i386/ ¿¡¼
diald16-0.16.5a-2.i386.rpm
diald16-config-0.16.5a-2.i386.rpm
ÈÀÏÀ» ´Ù¿î·Îµå ¹Þ½À´Ï´Ù.
[kskim@ja kskim]$ ncftp ftp.bora.net [Enter]
bora> cd /pub/Linux/redhat-contrib/libc6/i386/ [Enter]
bora> mget diald16* [Enter] <---- ÀÌ·¯¸é ¹Þ±â ½ÃÀÛÇÕ´Ï´Ù.
bora> bye {Enter] <---- ¸ðµÎ ¹Þ°í³ª¸é Á¾·áÇÕ´Ï´Ù.
[kskim@ja kskim]$ ls -l [Enter]
total 19431
-rw-r--r-- 1 kskim kskim 159038 Mar 28 20:53 diald16-0.16.5a-2.i386.rpm
-rw-r--r-- 1 kskim kskim 6233 Mar 28 20:54 diald16-config-0.16.5a-2.i386.rpm
ÀÌÁ¦ ¹Þ¾ÆÁ® ÀÖ´Â °ÍÀ» È®ÀÎÇÒ¼ö ÀÖ½À´Ï´Ù.
root °èÁ¤À¸·Î ¼³Ä¡ ÇÏ¼Å¾ß ÇÕ´Ï´Ù.
[kskim@ja kskim]$ su [Enter]
Password: <--- root Æнº¿öµåÀÔ·ÂÈÄ [¿£ÅÍ]
[root@ja kskim]# rpm -Uvh diald16* [Enter]
ÇÏ½Ã¸é ¼³Ä¡°¡ µÇ¾ú½À´Ï´Ù.
[root@ja kskim]# cd /etc/diald [Enter]
[root@ja diald]# ls -l [Enter] <--- È®ÀÎÇØ º¸¸é
total 14
-rwx------ 1 root root 3414 Apr 20 12:38 connect*
-rw-r--r-- 1 root root 1342 May 3 09:50 diald.conf
prw-rw---- 1 root wheel 0 May 3 11:46 diald.ctl|
-rw-r--r-- 1 root root 1235 Mar 28 13:51 diald.defs
-rw-r--r-- 1 root root 5905 May 3 09:56 phone.filter
±×¸®°í ³ª¼ diald.conf¸¦ /etc µð·º·Î¸®¿¡ ½Éº¼¸¯¸µÅ© ½Ãŵ´Ï´Ù.
[root@ja diald]# cd /etc [Enter]
[root@ja etc]# ln -s /etc/diald/diald.conf /etc/diald.conf [Enter]
±×·¯¸é conf ÈÀϱîÁö ³¡.
/etc/diald.conf ÈÀÏÀ» ¼öÁ¤ÇÕ´Ï´Ù.
#
# diald.conf for anathoth
#
# Select the demand dial rules you want
# Bring the link up for anything, timeout in seconds. Use this for
# when the dompute has its own phone line
accept any 420 any <---- À̺κÐÀ» '#'·Î ¸·½À´Ï´Ù.
#accept any 420 any <---- ÀÌ·¸°Ô..
# Use the filter file that comes with diald. This can be a bit drastic,
# so use the filter below
# include /usr/lib/diald/standard.filter
# or use the filter that brings the link up for use on a line shared with
# a phone
# include /etc/diald/phone.filter <---- À̺κÐÀ» '#'¸¦ Áö¿ó´Ï´Ù.
include /etc/diald/phone.filter <---- ÀÌ·¸°Ô...
# stuff to set up the diald connection
#device /dev/modem <--- À̺κÐÀ» Àڽſ¡°Ô ¸Â°Ô ¹Ù²ß´Ï´Ù.
device /dev/ttyS1 <--- ÀÌ·¸°Ô.. (ÀÚ½ÅÀÇ ISDN TA³ª ¸ðµ© ¿¬°áÆ÷Æ® ¿©±â¼´Â Com2)
speed 115200 <--- TA³ª ¸ðµ©ÀÇ ¼Óµµ ¿©±â¼´Â 115200bps
lock
mode ppp
# We may get another terminal server, thus use
# 'dynamic' and do not tell PPP the IP number of the other end
# For use with gated, comment out the 'dynamic' option, and
# set remote to be the same as local
dynamic
local 10.0.0.1
remote 10.0.0.2
# pppd-options name anappp : <---- À̺κÐÀ»
pppd-options asyncmap 00000000 name bs0600 : <---- ÀÌ·¸°Ô... ......
ÀÚ½ÅÀÌ °¡ÀÔÇÑ ISPÀÇ Á¢¼Ó ID(°èÁ¤)
# Delay sending packets for 5 seconds after PPP device opens -
# this allows routes to be established back to the appropriate dialup server.
up-delay 5
defaultroute
modem
crtscts
connect /etc/diald/connect
redial-timeout 10
fifo /etc/diald/diald.ctl
# restrict 9:00:00 17:45:00 1 * *
# or-restrict 9:00:00 17:45:00 2 * *
# or-restrict 9:00:00 17:45:00 3 * *
# or-restrict 9:00:00 17:45:00 4 * *
# or-restrict 9:00:00 17:45:00 5 * *
# up
device ¼³Á¤½Ã »ç¿ëÇÏ´Â ½Ã¸®¾óÆ÷Æ® ¼³Á¤Àº ´ÙÀ½°ú °°½À´Ï´Ù.
com1 ---> /dev/ttyS0
com2 ---> /dev/ttyS1
com3 ---> /dev/ttyS2
com4 ---> /dev/ttyS3
ÀÚ¼¼ÇÑ ³»¿ëÀº Serial-HOWTO¹®¼¸¦ Âü°íÇϽʽÿÀ.
±×¸®°í ¼öÁ¤ÇÒ ÈÀÏÀº /etc/diald/connect ÀÔ´Ï´Ù.
#!/bin/sh
# Copyright (c) 1996, Eric Schenk.
#
--- Áß°£ »ý·« ---
# The initialization string for your modem
#MODEM_INIT="ATZ&C1&D2%C0" <---- À̺κÐÀ» Àڽſ¡°Ô ¸Â°Ô ¹Ù²ß´Ï´Ù. ¸ðµ©ÃʱâÈ ¸í·É
MODEM_INIT="ATB40&J3" <---- ÀÌ·¸°Ô.. (ÀÌ°ÍÀº ISDN TAÀÇ MLPPP Á¦¾î¸í·É)
# The phone number to dial
#PHONE_NUMBER="999111999" <---- À̺κÐÀ»
PHONE_NUMBER="01414" <---- ÀÌ·¸°Ô ... (ÀÌ°ÍÀº ÄÚ³ÝISDNÁ¢¼Ó¹øÈ£)
--- Áß°£ »ý·« ---
# Success!
message "Protocol started"
ISDNÀ¸·Î ÀÎÅͳݿ¡ 128KÁ¢¼ÓÀ» ÇÏ·Á¸é ISDN TA°¡
MultiLink PPP ¸ðµå·Î ¼³Á¤µÇ¾î¾ß ÇÕ´Ï´Ù.
ISDN ¿ÜÀåTAÀÇ MultiLink PPP Á¦¾î¸í·ÉÀº ´Ü¸»±âÁ¦Á¶È¸»ç¸¶´Ù Ʋ¸³´Ï´Ù.
¿©±â¼´Â ´ºÅØÀÇ ``¿È´Ï''¸ðµ¨ Ãʱâȸí·ÉÀÔ´Ï´Ù.
Á¢¼ÓÀüȹøÈ£´Â ISP(ÀÎÅͳݰ¡ÀÔ¾÷ü)¸¶´Ù Ʋ¸³´Ï´Ù.
¿©±â¼´Â ÄÚ³ÝÀÇ Á¢¼Ó¹øÈ£¸¦ Àû¾ú½À´Ï´Ù.
¸ðµ©À¸·Î ¿¬°á½Ã¿¡´Â Ãʱâȸí·É¿¡ 'ATZ'¶ó°í ÀûÀ¸½Ã¸é ¹«¸®°¡ ¾ø½À´Ï´Ù.
±×¸®°í ISP Á¢¼ÓÀ» À§ÇÑ Passwd¼³Á¤À» ÇØ¾ß ÇÕ´Ï´Ù.
ÀÎÅͳÝÁ¢¼ÓÀÌ °¡´ÉÇÏ´Ù¸é À̺κÐÀº ¹ú½á ¼³Á¤ÀÌ µÇ¾î ÀÖÀ» ¼öµµ ÀÖ½À´Ï´Ù.
¸¸¾à ¼³Á¤ÀÌ ¾ÈµÇ¾îÀÖ´Ù¸é ¼³Á¤À» ÇÕ´Ï´Ù.
ISDNÀ¸·Î ISP·Î ¿¬°áÇϰųª À©µµ¿ì95·Î ¿¬°á½Ã »ç¿ëÇÏ´Â ¹æ½ÄÀÌ
PAP ÀÎÁõ ¹æ½ÄÀÔ´Ï´Ù.
¼öÁ¤ÇÒ ÈÀÏÀº
/etc/ppp/pap-secrets - Passwd¸¦ ¼³Á¤ÇÏ´Â ÈÀÏ ÀÔ´Ï´Ù.
ÀÔ´Ï´Ù.
/etc/ppp/pap-secrets ÈÀÏ ³»¿ëÀÔ´Ï´Ù.
# Secrets for authentication using PAP
# client server secret IP addresses
bs0600 * 1234 - ÀÌ·±½ÄÀ¸·Î Àû¾îÁÖ¸é µË´Ï´Ù.
jungang * 1234 - ´Ù¸¥ °èÁ¤ÀÌ ¶Ç ÀÖ´Ù¸é...
jungang ppp0 1234
jungang ppp1 1234
ID°¡ bs0600 Æнº¿öµå°¡ 1234¶ó¸é À§¿Í °°ÀÌ Àû¾îÁÝ´Ï´Ù.
±×·¯¸é Çѹø È®ÀÎÇØ º¸°Ú½À´Ï´Ù.
[kskim@ja ppp]# ls -l
total 5
-rw------- 1 root daemon 78 Jun 8 1998 chap-secrets
-rwxr-xr-x 1 root root 265 Oct 16 1998 ip-down*
-rwxr-xr-x 1 root root 349 Oct 16 1998 ip-up*
-rw-r--r-- 1 root daemon 5 Jun 8 1998 options
-rw------- 1 root daemon 300 Apr 16 10:13 pap-secrets <---- ÀÌÈÀÏÀÌ ¼öÁ¤µÇ¾ú½À´Ï´Ù.
±×¸®°í ÀÎÅͳÝÀ» ¿Ã¹Ù·Î È°¿ëÇÏ·Á¸é DNS (µµ¸ÞÀγ×ÀÓ¼¹ö) ¼³Á¤À» ÇØ¾ß ÇÕ´Ï´Ù.
µµ¸ÞÀÎ ÁÖ¼Ò ¿¹¸¦ µéÀÚ¸é soback.kornet.netÀ» 168.126.3.3 ¶ó´Â IPÁÖ¼Ò·Î ¹ø¿ªÀ»
ÇØÁÖ´Â ¿ªÇÒÀ» ÇÕ´Ï´Ù.
¼öÁ¤ÇÒ ÈÀÏÀº /etc/resolv.conf
search kt.co.kr co.kr com <---- µÞºÎºÐÀ» »ý·«ÇßÀ» ¶§ ã¾Æº¸´Â µµ¸ÞÀÎ
nameserver 127.0.0.1 <---- ¸®´ª½º¹Ú½º¿¡¼ ÀÚü ³×ÀÓ¼¹ö¸¦ ¿î¿µÇÒ °æ¿ì
nameserver 168.126.63.1 <---- »ç¿ëÇÏ´Â ISPÀÇ DNSÁÖ¼Ò ¿©±â¼´Â ÄÚ³ÝÀÇ °æ¿ì
nameserver 168.126.63.2 <---- »ç¿ëÇÏ´Â ISPÀÇ º¸Á¶DNSÁÖ¼Ò
¸®´ª½º ¹Ú½º¿¡¼ DNS µ¥¸óÀ» ¶ç¿ìÁö ¾Ê´Â´Ù¸é 127.0.0.1 À» ÀûÁö ¸¶¼¼¿ä.
±×¸®°í ¿©±â¼ DNSÁÖ¼Ò´Â ÀÎÅͳݼºñ½º¸¦ ¹Þ´Â ISP·Î ¹®ÀÇÇÏ½Ã¸é ¾Ë¼ö ÀÖ½À´Ï´Ù.
ÇÊ¿äÇϽźÐÀº ¼öÁ¤ÇϽñ⠹ٶø´Ï´Ù.
ÀÌÈÀÏÀº ``ƯÁ¤ ÆÐŶ»ç¿ëÈÄ ¾ó¸¶ÀÇ ½Ã°£ÀÌ °æ°úÇÑ ÈÄ Á¢¼ÓÀ» ²÷À» °ÍÀΰ¡?'' ¸¦
¼³Á¤ÇÏ´Â ¿ªÇÒÀ» ÇÕ´Ï´Ù. ´ÜÀ§´Â ÃÊ ÀÔ´Ï´Ù.
À̺κÐÀº Àúµµ Á¤È®È÷ ¸ð¸£°Ú½À´Ï´Ù.
/usr/doc/diald16-0.16.5a/ ¾È¿¡ ¼³¸íÀÌ ÀÖÀ¸´Ï ÂüÁ¶ÇϽñ⠹ٶø´Ï´Ù.
¼öÁ¤ÇÒ ÈÀÏÀº /etc/diald/phone.filter ÀÔ´Ï´Ù.
# This is a pretty complicated set of filter rules.
# (These are the rules I use myself.)
#
--- Áß°£»ý·« ---
# NOTE: Your /etc/services may not define the tcp service www, in which
# case you should comment out the following two lines or get a more
# up to date /etc/services file. See the FAQ for information on obtaining
# a new /etc/services file.
accept tcp 240 tcp.dest=tcp.www <--- À¥»ç¿ë½Ã »ç¿ëÀÌ ³¡³ ÈÄ 240ÃÊ°¡
accept tcp 240 tcp.source=tcp.www °æ°úÇϸé Àüȸ¦ ²÷½À´Ï´Ù.
# Once the link is no longer live, we try to shut down the connection
# quickly. Note that if the link is already down, a state change
# will not bring it back up.
keepup tcp 5 !tcp.live
ignore tcp !tcp.live
# an ftp-data or ftp connection can be expected to show reasonably frequent
# traffic.
accept tcp 240 tcp.dest=tcp.ftp <--- FTP»ç¿ëÈÄ 240ÃÊ°¡ °æ°úÇϸé Á¢¼ÓÀ» ²÷½À´Ï´Ù.
accept tcp 240 tcp.source=tcp.ftp
--- Áß°£»ý·« ---
# If we don't catch it above, give the link 10 minutes up time.
# accept tcp 600 any
accept tcp 300 any <--- 10ºÐÀÌ ±æ¾î¼ 5ºÐÀ¸·Î ¹Ù²å½À´Ï´Ù.
--- Áß°£»ý·« ---
# Anything else gest 2 minutes.
accept udp 120 any
# Catch any packets that we didn't catch above and give the connection
# 30 seconds of live time.
accept any 30 any <--- Á¤ÀǵÇÁö ¾ÊÀº °ÍµéÀº 2ºÐÈÄ Á¢¼ÓÀ» ²÷½À´Ï´Ù.
ÀÌÁ¦ Diald¸¦ ½ÇÇàÇÕ´Ï´Ù.
[root@ja diald]# /etc/rc.d/init.d/diald start [Enter]
Diald Á¾·á´Â
[root@ja diald]# /etc/rc.d/init.d/diald stop [Enter]
Ä¡½Ã¸é µË´Ï´Ù.
½ÇÇàÈÄ Á¦´ë·Î ¿¬°áµÇ¾ú´ÂÁö Ping Test¸¦ Çغ¾´Ï´Ù.
[kskim@ja kskim]$ping home.hitel.net [Enter] ÈÄ Á¶±Ý ±â´Ù¸®¼¼¿ä
PING home.hitel.net (203.245.15.254): 56 data bytes
64 bytes from 203.245.15.254: icmp_seq=0 ttl=249 time=117.7 ms
64 bytes from 203.245.15.254: icmp_seq=1 ttl=249 time=60.1 ms
64 bytes from 203.245.15.254: icmp_seq=2 ttl=249 time=60.1 ms
64 bytes from 203.245.15.254: icmp_seq=3 ttl=249 time=60.1 ms
64 bytes from 203.245.15.254: icmp_seq=4 ttl=249 time=60.1 ms
64 bytes from 203.245.15.254: icmp_seq=5 ttl=249 time=60.1 ms
64 bytes from 203.245.15.254: icmp_seq=6 ttl=249 time=60.1 ms
64 bytes from 203.245.15.254: icmp_seq=7 ttl=249 time=70.1 ms
--- home.hitel.net ping statistics ---
8 packets transmitted, 8 packets received, 0% packet loss
round-trip min/avg/max = 60.1/68.5/117.7 ms
ÀüÈ°¡ °É·Á°¡°í À§¿Í °°ÀÌ Àß µ¿ÀÛ ÇÕ´Ï´Ù.
½ÇÇàµÇ¾ú´ÂÁö´Â ¾Æ·¡ ¸í·ÉÀ¸·Î È®Àΰ¡´ÉÇÕ´Ï´Ù.
[kskim@ja kskim]$/sbin/ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0
UP BROADCAST LOOPBACK RUNNING MTU:3584 Metric:1
RX packets:7329 errors:0 dropped:0 overruns:0 frame:0
TX packets:7329 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
eth0 Link encap:Ethernet HWaddr 00:60:97:5B:1A:BD
inet addr:168.248.138.150 Bcast:168.248.138.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:168416 errors:4 dropped:0 overruns:0 frame:7
TX packets:202300 errors:0 dropped:0 overruns:0 carrier:201
collisions:2479
Interrupt:10 Base address:0x6400
sl0 Link encap:Serial Line IP <---- ½ÇÇàµÈ°ÍÀ» ³ªÅ¸³À´Ï´Ù. °¡»ó µð¹ÙÀ̽ºÀÔ´Ï´Ù.
inet addr:10.0.0.1 P-t-P:10.0.0.2 Mask:255.0.0.0
UP POINTOPOINT RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:136 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
ppp0 Link encap:Point-to-Point Protocol <--- Áö±Ý ÀüÈ°¡ °É¸° »óÅÂÀÔ´Ï´Ù.
inet addr:168.126.43.10 P-t-P:168.126.43.2 Mask:255.255.0.0
UP POINTOPOINT RUNNING MTU:1500 Metric:1
RX packets:1204 errors:0 dropped:0 overruns:0 frame:0
TX packets:1382 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
Memory:2bd9038-2bd9c04
[kskim@ja kskim]$/sbin/route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.2 * 255.255.255.255 UH 1 0 0 sl0<p>
168.126.43.2 * 255.255.255.255 UH 0 0 0 ppp0
168.248.138.0 * 255.255.255.0 U 0 0 314 eth0
127.0.0.0 * 255.0.0.0 U 0 0 28 lo
default * 0.0.0.0 U 0 0 35 ppp0 <--- ISP¿¡ Á¢¼ÓµÊ
default * 0.0.0.0 U 1 0 80 sl0 <--- °¡»ó µð¹ÙÀ̽º
WIN95°¡ ¼³Ä¡µÈ ´Ù¸¥ PC¿¡¼ ¸®´ª½º ¹Ú½º¸¦ ÅëÇÏ¿© ÀÎÅͳÝÀ» °øÀ¯ ÇÒ ¼ö ÀÖ½À´Ï´Ù.
¸®´ª½º¿¡¼ IP Masquerade ¸¦ »ç¿ëÇÏ½Ã¸é µË´Ï´Ù.
ÀÚ¼¼ÇÑ ³»¿ëÀº
http://kldp.org/network.html ¿¡¼
IP Masquerade mini HOWTO ÇÑ±Û ¹ø¿ªÆÇ ¹®¼¸¦ ÂüÁ¶ÇϽñ⠹ٶó¸ç
¸¸¾à¿¡ ¼³Á¤ÀÌ µÇ¾î ÀÖ´Ù¸é Åë°úÇϽñ⠹ٶø´Ï´Ù.
¿©±â¼´Â °£´ÜÇÏ°Ô ¼³¸íÀ» ÇÏ°Ú½À´Ï´Ù.
ÀÏ´Ü root±ÇÇÑÀ¸·Î ÀÛ¾÷ÇÏ·Á¸é
[kskim@ja kskim]$su [¿£ÅÍ]
Passwd: <---¿©±â¼ rootÀÇ Æнº¿öµå ÀÔ·ÂÈÄ [¿£ÅÍ]¸¦ Ĩ´Ï´Ù.
±×¸®°í³ª¼
¸ÕÀú IP Forwarding ÀÌ °¡´ÉÇϵµ·Ï ¸¸µé¾î ÁÝ´Ï´Ù.
¼öÁ¤ÇÒ ÈÀÏÀº /etc/sysconfig/network ÀÔ´Ï´Ù.
NETWORKING=yes
FORWARD_IPV4="yes" <---- ¿©±â°¡ "yes"·Î µÇ¾î ÀÖ¾î¾ß ÇÕ´Ï´Ù.
HOSTNAME="ja.kotel.co.kr" <---- ¿ä±â´Â PC¸¶´Ù Ʋ¸³´Ï´Ù.
DOMAINNAME=kotel.co.kr <---- ¿ä±âµµ PC¸¶´Ù Ʋ¸³´Ï´Ù.
GATEWAY="" <---- ¿©±â´Â ºñ¿ö³õ¾Æ¾ß ÇÕ´Ï´Ù.
GATEWAYDEV="" <----¿©±âµµ ºñ¿ö ³õ¾Æ¾ß ÇÕ´Ï´Ù.
±×¸®°í ³×Æ®¿÷ Àç½Ãµ¿
[root@ja kskim]#/etc/rc.d/init.d/network restart [¿£ÅÍ] ÇϽðí..
±×¸®°í ipfwadmÀ¸·Î IP Masqerade ¸í·ÉÀ» ÁÝ´Ï´Ù.
[root@ja kskim]#/sbin/ipfwadm -F -p deny
[root@ja kskim]#/sbin/ipfwadm -F -a m -S 168.248.138.0/24 -D 0.0.0.0/0 [¿£ÅÍ]Ä¡½Ã¸é µË´Ï´Ù.
¿©±â¼ 168.248.138.0/24 ´Â 168.248.138.0 ³×Æ®¿÷ÀÇ ¸ðµç È£½ºÆ®¿¡¼
¿ÜºÎ(ÄÚ³ÝÀ» ÅëÇÑ ÀÎÅͳÝ)À¸·Î Á¢¼ÓÀÌ °¡´ÉÇϵµ·Ï ÇØÁÖ´Â ¸í·ÉÀÔ´Ï´Ù.
´ÜÀÏ È£½ºÆ®¿¡°Ô¸¸ ¿¾îÁÖ·Á¸é 168.248.138.145/32 ·Î ¿É¼ÇÀ» ÁÖ¸é 168.248.138.145È£½ºÆ®
¿¡¼¸¸ ¿ÜºÎ·Î Á¢¼Ó°¡´ÉÇÕ´Ï´Ù.
±×¸®°í ºÎÆýà ¸¶´Ù ¹ø°Å·Ó°Ô ÀÔ·ÂÇϱ⠱ÍÂúÀ¸½Ã¸é
/etc/rc.d/rc.local ÈÀÏ µÞºÎºÐ¿¡ ¾Æ·¡³»¿ëÀ» Ãß°¡
/sbin/ipfwadm -F -p deny
/sbin/ipfwadm -F -a m -S 168.248.138.0/24 -D 0.0.0.0/0
¸¦ Àû¾îÁÖ¸é µË´Ï´Ù. /etc/rc.d/rc.sysinit ÈÀÏ µÞºÎºÐ¿¡ Àû¾îÁּŵµ µË´Ï´Ù.
±×¸®°í FTP³ª ƯÁ¤¼ºñ½º¸¦ »ç¿ëÇϽ÷Á¸é º°µµÀÇ ¸ðµâÀ» »ç¿ëÇØ¾ß ÇÕ´Ï´Ù.
±×·¯¸é ¸ðµâÀ» ¿Ã¸³´Ï´Ù.
[root@ja kskim]# modprobe ip_masq_ftp [Enter] <--- FTP¸¦ »ç¿ëÇϱâÀ§ÇØ
[root@ja kskim]# modprobe ip_masq_raudio [Enter] <--- RealAudio¸¦ »ç¿ëÇϱâÀ§ÇØ
[root@ja kskim]# modprobe ip_masq_vdolive [Enter] <--- ...¸¦ »ç¿ëÇϱâÀ§ÇØ
¸Þ¹ø ºÎÆýà ½ÇÇàÇϱ⠱ÍÂúÀ¸½Ã¸é /etc/rc.d/rc.local ÈÀÏÀÇ µÞºÎºÐ¿¡ Ãß°¡ÇØ
ÁÝ´Ï´Ù. ¾Æ´Ï¸é /etc/rc.d/rc.modules ÈÀÏÀ» ¸¸µå¼Åµµ µË´Ï´Ù.
#!/bin/sh
modprobe ip_masq_ftp
modprobe ip_masq_raudio
modprobe ip_masq_vdolive
[root@ja kskim]# chmod 755 /etc/rc.d/rc.modules [Enter]·Î Æ۹̼ÇÀ» Á¶Á¤ÇÕ´Ï´Ù.
±×·¯¸é ´ÙÀ½ ºÎÆýúÎÅÍ´Â ¸í·ÉÀ» µû·Î ÁÖ½Ç ÇÊ¿ä°¡ ¾ø½À´Ï´Ù.
°£´ÜÈ÷ ¾ê±âÇÏÀÚ¸é
- À©µµ¿ì95ÀÇ µðÆúÆ®°ÔÀÌÆ®¿þÀ̸¦ ¸®´ª½º¹Ú½ºÀÇ IPÁÖ¼Ò·Î ÁöÁ¤ÇÏ¼Å¾ß ÇÕ´Ï´Ù.
- À©µµ¿ì95ÀÇ DNS¼¹öÁÖ¼Ò¸¦
- ¸®´ª½º¹Ú½º¿¡¼ DNS¼ºñ½º¸¦ ¿î¿µÇÒ °æ¿ì ¸®´ª½º¼¹öÀÇ IPÁÖ¼Ò¸¦ µî·Ï
- ¸®´ª½º¹Ú½º¿¡¼ DNS¼ºñ½º¸¦ ¿î¿µÇÏÁö ¾ÊÀ» °æ¿ì ISPÀÇ DNS¼¹öÁÖ¼Ò µî·Ï
¼º´ÉÀ¸·Î µûÁöÀÚ¸é ¸®´ª½º¹Ú½º¿¡¼ DNS¼ºñ½º¸¦ ¿î¿µÇÒ¶§°¡ ÈξÀ ÁÁ½À´Ï´Ù.
À©µµ¿ì98¿¡¼µµ Àß µ¿ÀÛÇÕ´Ï´Ù.
¼³Á¤¹æ¹ýÀº
- µðÆúÆ®°ÔÀÌÆ®¿þÀÌ µî·Ï
- À©µµ¿ì95ÀÇ ``½ÃÀÛ''¸Þ´º Ŭ¸¯
- ``¼³Á¤'' -
- ``Á¦¾îÆÇ'' ¼±ÅÃ
- ``³×Æ®¿öÅ©'' ´õºíŬ¸¯
- ``³×Æ®¿öÅ© ±¸¼º''ÅÇ ¼±ÅÃ
- ``TCPIP - 3Com Etherlink III'' Ŭ¸¯ - ·£Ä«µå¿¡ ¿¬°áµÈ TCP/IP ·£Ä«µå¿¡ µû¶ó Ʋ¸²
- ``µî·ÏÁ¤º¸'' Ŭ¸¯
- ``°ÔÀÌÆ®¿þÀÌ''ÅÇ Å¬¸¯
- ``»õ °ÔÀÌÆ®¿þÀÌ''Ç׸ñ¿¡ ¸®´ª½º¹Ú½ºÀÇ ·£Ä«µåÀÇ IPÁÖ¼Ò(ÀúÀÇ°æ¿ì 168.248.138.150)¸¦ Àû¾îÁÝ´Ï´Ù.
- ``Ãß°¡(A)'' Ŭ¸¯Çϸé ``¼³Ä¡µÈ °ÔÀÌÆ®¿þÀÌ'' ¿¡ ÇØ´ç IP°¡ º¸ÀÔ´Ï´Ù.
- DNS¼¹ö µî·ÏÀ» ÇÕ´Ï´Ù. DNS¼³Á¤À» À§Çؼ´Â (1-7) À§¿Í µ¿ÀÏ
- ``DNS ±¸¼º'' ÅÇ ¼±ÅÃ
- ``DNS »ç¿ë'' ¼±ÅÃ
- ``È£½ºÆ®''¿Í ``µµ¸ÞÀÎ''¿¡ ÇØ´ç ISPÀÇ DNS¼¹ö µµ¸ÞÀÎÀ» Àû½À´Ï´Ù.
±×³É ´ëÃæ Àû¾îµµ µË´Ï´Ù.
- ``ãÀ» DNS ¼¹ö ÁÖ¼Ò'' ¿¡ DNS¼¹ö IPÁÖ¼Ò¸¦ Àû½À´Ï´Ù.
¿©±â¿¡´Â ¸®´ª½º¹Ú½ºÁÖ¼Ò¸¦ Àû°í ``Ãß°¡''¸¦ ´©¸¨´Ï´Ù.
¸®´ª½º¹Ú½º¿¡¼ DNS¼ºñ½º¸¦ ¿î¿µ ¾ÈÇÒ ¶§¿¡´Â ÀûÁö ¸¶¼¼¿ä.
- ``ãÀ» DNS ¼¹ö ÁÖ¼Ò'' ¿¡ ISP¾÷ü DNS¼¹ö IPÁÖ¼Ò¸¦ Àû½À´Ï´Ù.
ÄÚ³ÝÀº 168.126.63.1 ÀÔ´Ï´Ù. Àû°í ``Ãß°¡''¸¦ ´©¸¨´Ï´Ù.
±×·¯¸é DNS¼¹ö°¡ 2°³ µî·Ï µÇ¾ú½À´Ï´Ù.
- ``È®ÀÎ''À» Ŭ¸¯ÇÏ°í ³ª°¡¸é ÀçºÎÆÃÇ϶ó´Â ¸Þ¼¼Áö°¡ ³ª¿É´Ï´Ù.
ÀçºÎÆÃÇϸé ÀÌÁ¦ ¸®´ª½º ¹Ú½º¸¦ ÅëÇØ ÀÎÅͳÝ(ÄÚ³Ý)À» »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.
°³·«ÀÇ ¿¬°áµµ´Â ¾Æ·¡¿Í °°½À´Ï´Ù.
PC 1 Win95
IP 168.248.138.2 -----+
Mask 255.255.255.0 |
Gw 168.248.138.150 | INTERNET
| +------------+ |
PC 2 Win95 | | Linux Box | |
IP 168.248.138.3 -----+---- eth0 -------- ppp0 ------- Kornet ISDN --+
Mask 255.255.255.0 | IP 168.126.43.2 01414
Gw 168.248.138.150 | IP 168.248.138.150 IP 168.126.43.10
| Mask 255.255.255.0
PC 3 Win95 |
IP 168.248.138.4 -----+
Mask 255.255.255.0
Gw 168.248.138.150
¿©±â¼´Â ³»ºÎ³×Æ®¿÷ÁÖ¼Ò¸¦ ºÎ¿© ¹Þ¾Ò±â ¶§¹®¿¡ 168.248.138.0 ³×Æ®¿÷À» »ç¿ëÇÏ¿´°í
ÀϹÝÀûÀ¸·Î´Â ³»ºÎ³×Æ®¿÷ ¿ëÀ¸·Î ¹èÁ¤µÈ 192.168.0.0 ³×Æ®¿÷Áß¿¡¼
ÆíÇÑ´ë·Î ÁöÁ¤Çؼ »ç¿ëÇÏ¸é µË´Ï´Ù. ¿¹)192.168.1.0 À̳ª 192.168.2.0 µîµî
¸®´ª½º¹Ú½º¿¡ ÇÁ·Ï½Ã ¼¹ö µ¹¸®±â(RedHat 5.2¿¡ squid°¡ µé¾îÀÖ½À´Ï´Ù.
Àß µ¹¾Æ°©´Ï´Ù.).
À¥À¸·Î ½ÇÇàÇÏ°í Á¾·áÇϵµ·Ï ¸¸µé±â ... ? ?
¼öµ¿À¸·Î Àüȸ¦ °É°í ²÷À» ÇÊ¿ä¾øÀÌ ¸®´ª½º ¹Ú½º¿¡¼ ÀÚµ¿À¸·Î Àüȸ¦ °É°í
²÷¾îÁֱ⠶§¹®¿¡ »ç¿ëÇϱ⠰£ÆíÇÕ´Ï´Ù.
½ÃÁßÀÇ ISDN¶ó¿ìÅÍ¿Í ¶È°°½À´Ï´Ù.
ISDN 1ȸ¼± ¶Ç´Â ¸ðµ© 1ȸ¼±À¸·Î À¥À» ÁÖ·Î »ç¿ëÇÑ´Ù¸é ¼ÓµµÀúÇϾøÀÌ ÀÎÅͳÝÀ»
»ç¿ëÇÒ¼ö ÀÖ¾î¼ ÅëȷḦ ¾Æ³¥¼ö ÀÖ´Ù. ÁÖ·Î Áß¼Ò±â¾÷¿¡ PC¸¦ 10´ë Á¤µµ
¹°·Á¼ »ç¿ëÇϱ⿡´Â ±¦Âú´Ù°í »ý°¢ÇÕ´Ï´Ù.
ÀÌ ¹®¼ÀÇ °³¼±Àº ÀÌÁ¦ ¸¶°¨ ÇÏ·Á°í ÇÕ´Ï´Ù.
Á¦°¡ ¾ËÂ¥5.2¸¦ »ç¿ëÇÏ°í Àֱ⠶§¹®¿¡ ¾ËÂ¥¹èÆ÷ÆÇ 6.0 ¿¡ ´ëÇؼ ¾Ë·Áµå¸®Áö
¸øÇÏ´Â °Í¿¡ ´ëÇؼ ¹Ì¾ÈÇÏ°Ô »ý°¢ÇÏ°í ÀÖ½À´Ï´Ù.
´Ù¸¥ °÷¿¡ »ç¿ëÇϼŵµ ÁÁ°í ¹®¼¸¦ º¸¿ÏÇϽźÐÀÌ ÀÖ´Ù¸é Á¦°Ôµµ 1ºÎ º¸³»ÁÖ¼¼¿ä.
1999.11.11.
±è±â¼ö
<baram88@kldp.org>
<baram88@hanmir.com>
<http://www.uijongbu.co.kr>
<http://baram88.dns4u.com>
- À©µµ¿ì Ŭ¶óÀ̾ðÆ®¿¡¼ http://168.126.63.18ÀÌ·±½ÄÀÇ ÁÖ¼Ò´Â
¾Ë¾Æ ¸Ô´Âµ¥ ¶È°°Àº http://www.kornet.net´Â ¸ø¾Ë¾Æ ¸Ô½À´Ï´Ù.
¾î¶»°Ô ÇØ¾ß Çմϱî ?
´ä: À©µµ¿ìÀÇ ³×Æ®¿÷¼³Á¤¿¡¼ DNS¼¹ö°¡ µî·ÏµÇ¾î ÀÖ¾î¾ß ÇÕ´Ï´Ù.
¸®´ª½º¿¡¼ DNS¼¹ö¸¦ ¿î¿µÇÑ´Ù¸é ¸®´ª½º¼¹öÁÖ¼Ò¿Í
ISPÀÇ DNS¼¹öÁÖ¼Ò¸¦ Àû¾îÁÖ¸é µÇ°í,
¸®´ª½º¹Ú½º¿¡¼ ¿î¿µ ¾ÈÇÒ °æ¿ì¿¡´Â ÇØ´ç ISPÀÇ DNS¼ºñ½º ÁÖ¼Ò¸¦
Àû¾îÁÖ¸é µË´Ï´Ù.
- ¸®´ª½º ¹Ú½º¿¡¼ ÀÎÅͳݿ¡ Á¢¼ÓÀº µÇ´Âµ¥ ping Å×½ºÆ®°¡ ¾ÈµÇ°í
³Ý½ºÄÉÀÌÇÁ·Î ¹ÛÀ¸·Î ³ª°¡Áö ¸øÇÕ´Ï´Ù.
´ä: /sbin/ifconfig ·Î ppp0 µð¹ÙÀ̽º°¡ ÀâÈ÷´Âµ¥ ¿ÜºÎ·ÎÀÇ pingÀÌ ¾ÈµÉ °æ¿ì
µÎ°¡Áö¸¦ Á¡°ËÇØ º¸¼Å¾ß ÇÕ´Ï´Ù.
- ¸®´ª½º¹Ú½º¿¡ ¹Ì¸® µðÆúÆ®°ÔÀÌÆ®¿þÀÌ°¡ ¼³Á¤µÇ¾î ÀÖ´Â °æ¿ì
ppp ·Î ¿¬°áµÈÈÄ ¿¬°áµÈ ppp0 µð¹ÙÀ̽º°¡ µðÆúÆ®°ÔÀÌÆ®¿þÀÌ·Î ÀâÇô¾ß
¿ÜºÎ·ÎÀÇ ¿¬°áÀÌ Àß µË´Ï´Ù.
Á¡°ËÇÒ ÈÀÏÀº /etc/sysconfig/network ÈÀÏÀÔ´Ï´Ù.
NETWORKING=yes
FORWARD_IPV4="yes"
HOSTNAME="ja.kotel.co.kr"
DOMAINNAME=kotel.co.kr
GATEWAY="" <--- ¿©±â¿¡ ¾Æ¹«³»¿ëµµ ¾ø¾î¾ß ÇÕ´Ï´Ù.
GATEWAYDEV="" <--- ¿©±â¿¡µµ ¾Æ¹«³»¿ëµµ ¾ø¾î¾ß ÇÕ´Ï´Ù.
- PPP¿¬°á ¿É¼Ç¿¡¼ asyncmap Ç׸ñÀÌ ¼³Á¤ÀÌ µÇ¾î¾ß ÇÕ´Ï´Ù.
/etc/diald.conf ÈÀÏÀ» Á¡°ËÇÕ´Ï´Ù.
# pppd-options name anappp : <---- À̺κÐÀÌ
pppd-options asyncmap 00000000 name [º»ÀÎI.D] : <---- ÀÌ·¸°Ô ¹Ù²î¾ú´ÂÁö
- ¿¬°á¸í·ÉÀ» Áá´Âµ¥ Àåºñ¿¡ ºÒÁ¶Â÷ µé¾î¿ÀÁö ¾Ê½À´Ï´Ù.
´ä: ½Ã¸®¾óÆ÷Æ®°¡ ¿Ã¹Ù¸£°Ô ¼³Á¤µÇ¾ú´ÂÁö È®ÀÎÇÏ¼Å¾ß ÇÕ´Ï´Ù.
device ¼³Á¤½Ã »ç¿ëÇÏ´Â ½Ã¸®¾óÆ÷Æ® ¼³Á¤Àº ´ÙÀ½°ú °°½À´Ï´Ù.
com1 ---> /dev/ttyS0
com2 ---> /dev/ttyS1
com3 ---> /dev/ttyS2
com4 ---> /dev/ttyS3
ÀÚ¼¼ÇÑ ³»¿ëÀº Serial-HOWTO¹®¼¸¦ Âü°íÇϽʽÿÀ.
- Âü°í ÇÏÀÌÅÚ »ç¿ë½Ã
- Á¢¼ÓÀüȹøÈ£ : 02-3144-0470-6: ISDN 64K,128K
01432: ¸ðµ© 56k
- DNS : 204.252.145.2
- DNS : 204.252.145.10 º¸Á¶
- ¸ðµ¨º° ML-PPP¸í·É <-- Á÷Á¢ ½ÃÇèÀº ¾ÈÇغýÀ´Ï´Ù.
- DigitelÀÇ DTA-200U : AT$V=2 <--- ´ë¿ì OEM ³³Ç°
- ´ºÅØÁ¤º¸Åë½ÅÀÇ ¿È´Ï : ATB40&J3
- I&T TelecomÀÇ TA-3000US : AT&O27 <--- ÄÚ¼¼½º OEM ³³Ç°
128K Á¢¼Ó ¾ÈµÉ½Ã Æß¿þ¾î ¾÷±×·¹À̵å ÇÊ¿ä.
- ½´ÆÛ³×Æ®ÀÇ NTA´Â MLPPP¸í·ÉÀÌ ¾ø´ä´Ï´Ù. 64K·Î ¾²¼Å¾ß ÇÒ°Í °°½À´Ï´Ù.
(
»ç±¤¼± kssa@hanmail.net´ÔÀÌ »ç¿ëÇÏ°í °è½Ê´Ï´Ù.)
- ÁßµµTAÀÎ UTA-128¸ðµ¨ÀÇ ¸í·É
64K Á¢¼ÓÀ» ÇÏ·ÁÇÒ¶§´Â AT&F1
128K Á¢¼Ó½Ã¿¡´Â AT&F2
°Ã¶±Ô kang cheul kyu
skiland@kornet.net´ÔÀÌ Àß¾²°í °è½Ê´Ï´Ù. 1999.10.01