{"id":395,"date":"2007-12-14T23:50:37","date_gmt":"2007-12-14T15:50:37","guid":{"rendered":"http:\/\/blog.smallken.ink\/2007\/12\/14\/linux\/395.html"},"modified":"2007-12-14T23:50:37","modified_gmt":"2007-12-14T15:50:37","slug":"%e6%96%87%e5%ad%97%e4%bb%8b%e9%9d%a2%e4%b8%8badsl-%e6%92%a5%e6%8e%a5%e8%a8%ad%e5%ae%9a-for-fedora8","status":"publish","type":"post","link":"https:\/\/blog.smallken.site\/?p=395","title":{"rendered":"\u6587\u5b57\u4ecb\u9762\u4e0bADSL \u64a5\u63a5\u8a2d\u5b9a for Fedora8"},"content":{"rendered":"<p>\u6211\u8a18\u5f97\u5728 CentOS5 \u8981\u8a2d\u5b9aadsl\u662f\u4f7f\u7528 <br \/># adsl-setup<\/p>\n<p>\u4f46\u662f\u4f7f\u7528 Fedora8 \u6642\u537b\u767c\u73fe\u8b8a\u6210\u4e86 # pppoe-setup\uff0c\u5176\u5be6\u4e0b\u9019\u500b\u6307\u4ee4\u662f\u5e6b\u52a9\u6211\u5011\u5efa\u7acb\u597d \/etc\/sysconfig\/network-scripts\/ifcfg-ppp0\uff0c\u9019\u500b\u8a2d\u5b9a\u6a94<\/p>\n<p># pppoe-setup<\/p>\n<p>LOGIN NAME<br \/>Enter your Login Name (default root):<font color=\"#ff0000\">12345678@hinet.net<\/font><\/p>\n<p>Enter the Ethernet interface connected to the PPPoE modem<br \/>For Solaris, this is likely to be something like \/dev\/hme0.<br \/>For Linux, it will be ethX, where &#8216;X&#8217; is a number.<br \/>(default eth0): <font color=\"#ff0000\">\u2190 \u76f4\u63a5 Enter<\/font><\/p>\n<p>Do you want the link to come up on demand, or stay up continuously?<br \/>If you want it to come up on demand, enter the idle time in seconds<br \/>after which the link should be dropped.&nbsp; If you want the link to<br \/>stay up permanently, enter &#8216;no&#8217; (two letters, lower-case.)<br \/>NOTE: Demand-activated links do not interact well with dynamic IP<br \/>addresses.&nbsp; You may have some problems with demand-activated links.<br \/>Enter the demand value (default no): <font color=\"#ff0000\">\u2190 \u76f4\u63a5 Enter<\/font><\/p>\n<p>DNS  <\/p>\n<p>Please enter the IP address of your ISP&#8217;s primary DNS server.<br \/>If your ISP claims that &#8216;the server will provide dynamic DNS addresses&#8217;,<br \/>enter &#8216;server&#8217; (all lower-case) here.<br \/>If you just press enter, I will assume you know what you are<br \/>doing and not modify your DNS setup.<br \/>Enter the DNS information here: <font color=\"#ff0000\">\u2190 ADSL\u64a5\u63a5\u6642\uff0cDNS \u53ef\u8a2d\u53ef\u4e0d\u8a2d\uff0c\u76f4\u63a5 Enter<\/font><\/p>\n<p>PASSWORD  <\/p>\n<p>Please enter your Password: <font color=\"#ff0000\">\u2190 \u8f38\u5165\u64a5\u63a5\u5bc6\u78bc\uff0c\u4e0d\u6703\u986f\u793a<\/font><br \/>Please re-enter your Password: <font color=\"#ff0000\">\u2190 \u518d\u6b21\u8f38\u5165\u64a5\u63a5\u5bc6\u78bc\uff0c\u4e0d\u6703\u986f\u793a<\/font><\/p>\n<p>USERCTRL  <\/p>\n<p>Please enter &#8216;yes&#8217; (three letters, lower-case.) if you want to allow<br \/>normal user to start or stop DSL connection (default yes): <font color=\"#ff0000\">\u2190 \u76f4\u63a5 Enter<\/font> <\/p>\n<p>FIREWALLING  <\/p>\n<p>Please choose the firewall rules to use.&nbsp; Note that these rules are<br \/>very basic.&nbsp; You are strongly encouraged to use a more sophisticated<br \/>firewall setup; however, these will provide basic security.&nbsp; If you<br \/>are running any servers on your machine, you must choose &#8216;NONE&#8217; and<br \/>set up firewalling yourself.&nbsp; Otherwise, the firewall rules will deny<br \/>access to all standard servers like Web, e-mail, ftp, etc.&nbsp; If you<br \/>are using SSH, the rules will block outgoing SSH connections which<br \/>allocate a privileged source port.  <\/p>\n<p>The firewall choices are:<br \/>0 &#8211; NONE: This script will not set any firewall rules.&nbsp; You are responsible<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for ensuring the security of your machine.&nbsp; You are STRONGLY<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; recommended to use some kind of firewall rules.<br \/>1 &#8211; STANDALONE: Appropriate for a basic stand-alone web-surfing workstation<br \/>2 &#8211; MASQUERADE: Appropriate for a machine acting as an Internet gateway<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for a LAN<br \/>Choose a type of firewall (0-2): <font color=\"#ff0000\">0<\/font><\/p>\n<p>Start this connection at boot time(\u958b\u6a5f\u8981\u4e0d\u8981\u81ea\u52d5\u64a5\u63a5?)  <\/p>\n<p>Do you want to start this connection at boot time?<br \/>Please enter no or yes (default no):<font color=\"#ff0000\">yes <\/font><\/p>\n<p>** Summary of what you entered **  <\/p>\n<p>Ethernet Interface: eth0<br \/>User name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href=\"mailto:12345678@hinet.net\">12345678@hinet.net<\/a><br \/>Activate-on-demand: No<br \/>DNS:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Do not adjust<br \/>Firewalling:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NONE<br \/>User Control:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yes<br \/>Accept these settings and adjust configuration files (y\/n)?<font color=\"#ff0000\">y<\/font><\/p>\n<p><font color=\"#000000\">\u5b8c\u6210\u8a2d\u5b9a\u4e4b\u5f8c\uff0c\/etc\/sysconfig\/network-scripts\/ifcfg-ppp0 \u8a2d\u5b9a\u6a94\u88ab\u5efa\u7acb\u8d77\u4f86\u3002<\/font><\/p>\n<p><font color=\"#000000\">ADSL \u64a5\u63a5<br \/><\/font><font color=\"#000000\"># ifup ppp0 <br \/>or <br \/># pppoe-start<\/font><\/p>\n<p><font color=\"#000000\">ADSL \u65b7\u7dda<br \/># ifdown ppp0<br \/>or<br \/># pppoe-stop<\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u8a18\u5f97\u5728 CentOS5 \u8981\u8a2d\u5b9aadsl\u662f\u4f7f\u7528 # adsl-setup \u4f46\u662f\u4f7f\u7528 Fedora8 \u6642\u537b\u767c\u73fe\u8b8a&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-395","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/posts\/395","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=395"}],"version-history":[{"count":0,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/posts\/395\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.smallken.site\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=395"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=395"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}