7.0 ¹öÀü¿¡¼´Â ADSL ¼³Á¤¿¡ ÇÊ¿äÇÑ pppoe ÇÁ·Î±×·¥ÀÌ ÀÌ¹Ì ¼³Ä¡µÇ¾î ÀÖ¾î, ¸î¸î
°£´ÜÇÑ ¸í·ÉÀ¸·Î ½±°Ô adsl¿¡ Á¢¼ÓÇÒ ¼ö ÀÖ°Ô µÇ¾ú½À´Ï´Ù. ¿©±â¼´Â ´Üµ¶À¸·Î ¸®´ª½º¿¡¼
ADSL ¿¡ ¿¬°áÇÏ´Â ¹æ¹ý°ú, ¸Å½ºÄ¿·¹À̵ùÀ» ÀÌ¿ëÇÏ¿©, Ȩ³×Æ®¿öÅ·À» ±¸ÇöÇÏ´Â ¹æ¹ýÀ»
°£´ÜÈ÷ ¼Ò°³ÇÏ·Á ÇÕ´Ï´Ù.
Â÷ ·Ê
1.
Ŭ¶óÀÌ¾ðÆ®·Î ÀÌ¿ë½Ã
2.
standalone »ç¿ë½Ã
3.
¸Å½ºÄ¿·¹À̵ù »ç¿ë½Ã
4.
6.2 »ç¿ë½Ã
5.
ÇÊÀÚÀÇ »ç¿ë»ç·Ê
ÆÄÀÏ ´Ù¿î·Îµå
1.
ppp.tar.gz : firewallµî ¼³Á¤¿¡ ÇÊ¿äÇÑ ÆÄÀÏ ¸ðÀ½
2.
rp-pppoe-2.5-1.i386.rpm : ¼³Ä¡°¡ µÇÁö ¾ÊÀº »ç¿ëÀÚ³ª, 6.2 ¹öÀü »ç¿ëÀÚ°¡ ¼³Ä¡ÇÒ
ÇÁ·Î±×·¥
1-1. ¸®´ª½º ¼³Ä¡
¸®´ª½º ¼³Ä¡½Ã ·£Ä«µå ¹æ½ÄÀ» ¹°¾îº¼ ¶§ (Ŭ¶óÀÌ¾ðÆ®·Î »ç¿ë, ¸Å½ºÄ¿·¹À̵ù »ç¿ëÇÏÁö
¾ÊÀ½) DHCP°¡ ¾Æ´Ñ °íÁ¤¾ÆÀÌÇǸ¦ ÁØ´Ù.(192.168.0.1) ±× ´ÙÀ½ ¸ðµç ¼³Ä¡°¡ ³¡³ª°í
¸®ºÎÆÃÀ» ½ÃŲ´Ù.
1-2. ADSL Setup
ÇÑÅÒ È¤Àº Äֿܼ¡¼
# adsl-setup
À» ½ÇÇàÇÑ´Ù.
Welcome to the Roaring Penguin ADSL client setup. First,
I will run
some checks on your system to make sure the PPPoE client is installed
properly...
Looks good! Now, please enter some information:
USER NAME
>>> Enter your PPPoE user name (default alponce): <=
¿©±â¿¡ ÇÑÅë ¾ÆÀ̵𸦠³Ö¾î ÁÝ´Ï´Ù.
|
INTERFACE
>>> Enter the Ethernet interface connected to the ADSL
modem
(default eth1):eth0 <= ·£Ä«µå°¡ ÇϳªÀÏ °æ¿ì, ÇÊÀÚ´Â µÎ °³À̰í
¸Å½ºÄ¿·¹À̵ùÀ» ÇÏ¿´½À´Ï´Ù.
|
Do you want the link to come up on demand, or stay up continuously?
If you want it to come up on demand, enter the idle time in seconds
after which the link should be dropped. If you want the
link to
stay up permanently, enter 'no' (two letters, lower-case.)
NOTE: Demand-activated links do not interact well with dynamic
IP
addresses. You may have some problems with demand-activated
links.
>>> Enter the demand value (default no): <= ±×³É
¿£Å͸¦ Ä¡¸é µË´Ï´Ù...
|
Please enter the IP address of your ISP's primary DNS server.
If your ISP claims that 'the server will provide DNS addresses',
enter 'server' (all lower-case) here.
If you just press enter, I will assume you know what you are
doing and not modify your DNS setup.
>>> Enter the DNS information here:168.126.63.1 <=
Çѱ¹Åë½Å DNS¸¦ ³Ö¾î ÁÝ´Ï´Ù..
|
Please enter the IP address of your ISP's secondary DNS server.
If you just press enter, I will assume there is only one DNS
server.
>>> Enter the secondary DNS server address here: 168.126.63.2
<= º¸Á¶ DNSÀÔ´Ï´Ù.
|
PASSWORD
>>> Please enter your PPPoE password: <= ÆÐ½º¿öµå¸¦
³Ö¾î ÁÝ´Ï´Ù..
>>> Please re-enter your PPPoE password: <=
´Ù½Ã Çѹø ³Ö¾î ÁÝ´Ï´Ù...
|
FIREWALLING
Please choose the firewall rules to use. Note that these
rules are
very basic. You are strongly encouraged to use a more sophisticated
firewall setup; however, these will provide basic security. If
you
are running any servers on your machine, you must choose 'NONE'
and
set up firewalling yourself. Otherwise, the firewall rules
will deny
access to all standard servers like Web, e-mail, ftp, etc. If
you
are using SSH, the rules will block outgoing SSH connections
which
allocate a privileged source port.
The firewall choices are:
0 - NONE: This script will not set any firewall rules. You
are responsible
for ensuring the security of your
machine. You are STRONGLY
recommended to use some kind of
firewall rules.
1 - STANDALONE: Appropriate for a basic stand-alone web-surfing
workstation
2 - MASQUERADE: Appropriate for a machine acting as an Internet
gateway
for a LAN
>>> Choose a type of firewall (0-2): 0 <= ÀÏ´Ü 0À»
¼±ÅÃÇÕ´Ï´Ù.
|
** Summary of what you entered **
Ethernet Interface: eth0
User name: lsy1974
Activate-on-demand: No
Primary DNS: 168.126.63.1
Secondary DNS: 168.126.63.2
Firewalling: STANDALONE
>>> Accept these settings and adjust configuration files
(y/n)? <= y¸¦ ÀÔ·ÂÇÕ´Ï´Ù.
Adjusting /etc/ppp/pppoe.conf
Adjusting /etc/resolv.conf
Adjusting /etc/ppp/pap-secrets
and /etc/ppp/chap-secrets
(But first backing it up to /etc/ppp/pap-secrets-bak)
(But first backing it up to /etc/ppp/chap-secrets-bak)
|
1-3. ÆÄÀÏÀÇ ÆíÁý
¿©±â±îÁö ÇÑ ´ÙÀ½ ¸î°¡Áö ÆÄÀÏÀ» ÆíÁýÇÏ¿©¾ß ÇÕ´Ï´Ù.
/etc/ppp/pppoe.conf ÆÄÀÏÀÇ ¼³Á¤À» ¼öÁ¤ÇÕ´Ï´Ù. Çѱ¹Åë½Å ADSLÀ» rp-pppoe ÆÐŰÁö·Î
Á¢¼ÓÇϱâ À§Çؼ´Â ¿É¼ÇÀÌ ÇÑ °¡Áö Ãß°¡µÇ¾î¾ß ÇÕ´Ï´Ù. ÀÌ ¿É¼ÇÀÌ ¾øÀ¸¸é, Á¢¼ÓÀÌ
¾ÈµÉ ¼öµµ ÀÖ½À´Ï´Ù.
/etc/ppp/pppoe.conf ÆÄÀÏÀÇ ³¡¿¡ º¸¸é ´ÙÀ½°ú °°Àº ºÎºÐÀÌ º¸ÀÔ´Ï´Ù.
# Any extra arguments to pass to pppoe. Normally, use a
blank string
# like this:
PPPOE_EXTRA=""
|
¿©±â¿¡¼,
¶ó°í ½áÁÝ´Ï´Ù. ´ë¼Ò¹®ÀÚ¸¦ ±¸ºÐÇÏ´Ï ÁÖÀÇÇϽñ⠹ٶ󱸿ä.
¸¶Áö¸·À¸·Î
# adsl-start
¶ó°í ÀÔ·ÂÇϼ¼¿ä.
±×·¯¸é, ¿¬°áµÇ¾ú´Ù°í ³ª¿Ã °ÍÀÔ´Ï´Ù.
2-1. ÆÄÀ̾î¿ùÀÇ ¼³Á¤
FIREWALLING
Please choose the firewall rules to use. Note that these
rules are
very basic. You are strongly encouraged to use a more sophisticated
firewall setup; however, these will provide basic security. If
you
are running any servers on your machine, you must choose 'NONE'
and
set up firewalling yourself. Otherwise, the firewall rules
will deny
access to all standard servers like Web, e-mail, ftp, etc. If
you
are using SSH, the rules will block outgoing SSH connections
which
allocate a privileged source port.
The firewall choices are:
0 - NONE: This script will not set any firewall rules. You
are responsible
for ensuring the security of your
machine. You are STRONGLY
recommended to use some kind of
firewall rules.
1 - STANDALONE: Appropriate for a basic stand-alone web-surfing
workstation
2 - MASQUERADE: Appropriate for a machine acting as an Internet
gateway
for a LAN
>>> Choose a type of firewall (0-2): 0 <= 1ÀÏ °æ¿ì...
|
¿©±â¼ 1À̳ª 2¸¦ ¼±ÅÃÇÑ »ç¶÷Àº ÆÄÀ̾î¿ù ¼³Á¤ÆÄÀÏÀ» »ý¼ºÇØ¾ß ÇÕ´Ï´Ù. ÀÌ ¹®¼¿¡
µþ·ÁÀÖ´Â firewall-standalone ÆÄÀÏÀ» ±×´ë·Î »ç¿ëÇϼŵΠ¹«¹æÇϱ¸¿ä. ¾Æ´Ï¸é
´ÙÀ½ÀÇ ÆÄÀÏÀ» ¸¸µå¼ÅµÎ µË´Ï´Ù.
ÀÌ ÆÄÀÏÀº /etc/rc.d/init.d ¹Ø¿¡ firewallÀ̶ó´Â À̸§À¸·Î À§Ä¡Çؾß
ÇÕ´Ï´Ù.
#!/bin/sh
#
# firewall-standalone This
script sets up firewall rules for a standalone
# machine
#
# Copyright (C) 2000 Roaring Penguin
Software Inc. This software may
# be distributed under the terms of the
GNU General Public License, version
# 2 or any later version.
# Interface to Internet
EXTIF=ppp+
ANY=0.0.0.0/0
ipchains -P input ACCEPT
ipchains -P output ACCEPT
ipchains -P forward DENY
ipchains -F forward
ipchains -F input
ipchains -F output
# Deny TCP and UDP packets to privileged
ports
ipchains -A input -l -i $EXTIF -d $ANY
0:1023 -p udp -j DENY
ipchains -A input -l -i $EXTIF -d $ANY
0:1023 -p tcp -j DENY
|
2-2. ½ÇÇà
±× ´ÙÀ½Àº ´ç¿¬È÷
#adsl-start
¸¦ ½ÇÇà½ÃŰ¸é ¿¬°áÀÌ µË´Ï´Ù.
·£Ä«µå°¡
Çϳª ÀÌ»óÀ̰í, eth0°¡ ¿ÜºÎ¿Í ¿¬°áµÇ°í eth1ÀÌ ³»ºÎ¿¡ ¿¬°á
eth0 : 192.168.0.1
eth1 : 192.168.0.2
3-1. ³×Æ®¿öÅ© Ä«µå ¼³Á¤
INTERFACE
>>> Enter the Ethernet interface connected to the ADSL
modem
(default eth1):eth0 <= eth0 ÀÌ ADSL ¿ÜÀå¸ðµ©°ú ¿¬°á
|
3-2. ÆÄÀ̾î¿ùÀÇ ¼³Á¤
FIREWALLING
Please choose the firewall rules to use. Note that these
rules are
very basic. You are strongly encouraged to use a more sophisticated
firewall setup; however, these will provide basic security. If
you
are running any servers on your machine, you must choose 'NONE'
and
set up firewalling yourself. Otherwise, the firewall rules
will deny
access to all standard servers like Web, e-mail, ftp, etc. If
you
are using SSH, the rules will block outgoing SSH connections
which
allocate a privileged source port.
The firewall choices are:
0 - NONE: This script will not set any firewall rules. You
are responsible
for ensuring the security of your
machine. You are STRONGLY
recommended to use some kind of
firewall rules.
1 - STANDALONE: Appropriate for a basic stand-alone web-surfing
workstation
2 - MASQUERADE: Appropriate for a machine acting as an Internet
gateway
for a LAN
>>> Choose a type of firewall (0-2): 0 <= 2ÀÏ °æ¿ì...
|
¿©±â¼, 2¸¦ ¼±ÅÃÇÑ »ç¶÷Àº ÆÄÀ̾î¿ù ¼³Á¤ÆÄÀÏÀ» »ý¼ºÇØ¾ß ÇÕ´Ï´Ù. ÀÌ ¹®¼¿¡
µþ·ÁÀÖ´Â firewall-masq ÆÄÀÏÀ» ±×´ë·Î »ç¿ëÇϼŵΠ¹«¹æÇϱ¸¿ä... ¾Æ´Ï¸é ´ÙÀ½ÀÇ
ÆÄÀÏÀ» ¸¸µå¼ÅµÎ µË´Ï´Ù.
ÀÌ ÆÄÀÏÀº /etc/rc.d/init.d ¹Ø¿¡ firewall À̶ó´Â À̸§À¸·Î À§Ä¡ÇØ¾ß ÇÕ´Ï´Ù.
#!/bin/sh
#
# firewall-masq This
script sets up firewall rules for a machine
# acting
as a masquerading gateway
#
# Copyright (C) 2000 Roaring Penguin
Software Inc. This software may
# be distributed under the terms of the
GNU General Public License, version
# 2 or any later version.
# Interface to Internet
EXTIF=ppp+
ANY=0.0.0.0/0
ipchains -P input ACCEPT
ipchains -P output ACCEPT
ipchains -P forward DENY
ipchains -F forward
ipchains -F input
ipchains -F output
# Deny TCP and UDP packets to privileged
ports
ipchains -A input -l -i $EXTIF -d $ANY
0:1023 -p udp -j DENY
ipchains -A input -l -i $EXTIF -d $ANY
0:1023 -p tcp -j DENY
# Do masquerading
ipchains -A forward -s 192.168.0.2/32
-j MASQ
ipchains -A forward -s 192.168.0.3/32
-j MASQ
ipchains -A forward -s 192.168.0.4/32
-j MASQ
echo 1 > /proc/sys/net/ipv4/ip_forward
|
[ÁÖÀÇ] ipchains -A input -l -i $EXTIF -d $ANY 0:1023 -p udp -j DENY
¿¡¼ input ´ÙÀ½ÀÇ ¿É¼ÇÀº ¼Ò¹®ÀÚ LÀÔ´Ï´Ù.
3-3. ½ÇÇà
±× ´ÙÀ½Àº ´ç¿¬È÷
# adsl-start
¸¦ ½ÇÇà½ÃŰ¸é ¿¬°áÀÌ µË´Ï´Ù.
3-4. ¸Å½ºÄ¿·¹ÀÌÆÃ ¸Ó½Å¿¡ ¹°¸° Ŭ¶óÀÌ¾ðÆ® ¼³Á¤
¸®´ª½º ¸Ó½Å¿¡ ¹°¸° ´Ù¸¥ ¸Ó½ÅµéÀÇ ³×ÀÓ¼¹ö´Â ¸®´ª½º¸Ó½Å¿¡ ³×ÀÓ¼¹ö°¡ ¼³Ä¡µÇ¾î
ÀÖ´Ù¸é ¸®´ª½º¸Ó½ÅÀ¸·Î Àâ¾Æ ÁÖ¸é(192.168.0.2) µË´Ï´Ù. ¸¸ÀÏ ³×ÀÓ¼¹ö°¡ ¼³Ä¡µÇÁö
¾Ê¾Ò´Ù¸é ÇÑÅë ³×ÀÓ¼¹ö(168.126.63.1)À» Àâ¾ÆÁÖ¸é µË´Ï´Ù. Ŭ¶óÀÌ¾ðÆ®¿¡¼ °ÔÀÌÆ®¿þÀÌ´Â
ADSL ¸ðµ©°ú ¿¬°áµÈ ·£Ä«µåÀÇ IP·Î ÁöÁ¤ÇØ ÁÝ´Ï´Ù. (192.168.0.1) ADSL·Î ¿¬°áµÇ´Â
¸®´ª½º ¸Ó½Å¿¡¼´Â °ÔÀÌÆ®¿þÀ̸¦ ¼³Á¤ÇÒ Çʿ䰡 ¾ø½À´Ï´Ù.
rp-pppoe 2.2-4 ÆÐŰÁö¸¦ ¼³Ä¡ÇÑ ´ÙÀ½ À§ÀÇ °úÁ¤À» ¼ø¼´ë·Î ÁøÇàÇÏ¸é µË´Ï´Ù.
¼³Á¤ ÆÄÀÏÀÌ ¾Æ·¡ÀÇ ¼³Á¤À» ¹Ý¿µÇÑ °ÍÀ̹ǷÎ, Âü°í ÇϽøé ÀÌÇØ°¡ ½¬¿ï °Í °°¾Æ
±×·Á º¸¾Ò½À´Ï´Ù.
±Û¾´ÀÌ : Á¤³«¼ö ´Ô
(º» ¹®¼´Â ¿Í¿ì¸®´ª½º 7.0 ¹× ÇÑÄĸ®´ª½º 1.2¸¦ ±âÁØÀ¸·Î ¸¸µé¾úÀ¸¸ç, º» ¹®¼ÀÇ
ÀúÀÛ±ÇÀº º»ÀÎ(Á¤³«¼ö)¿¡°Ô ÀÖ½À´Ï´Ù. »çÀüµ¿ÀǾøÀÌ »ç¿ëÇÏ¿©µµ ¹«¹æÇÏ¸ç »ç¿ëÇÒ
¶§ ±×³É ÀúÀÚÀÇ À̸§À» ¸í½ÃÇØ ÁÖ¼¼¿ä.) |