反思考 \ 逆思考

基本上?沒啥好多說,有很多事情,也難以解釋!

最近都在 Facebook 閒逛比較多,有興趣?怕被牽連的就別來了。

快速連結 >> 工作印象 專題

快速連結 >> 官僚文化 專題

快速連結 >> 貿易經濟 專題

快速連結 >> 職業探討 專題

快速連結 >> 阿榮福利味事件 真相


2010年12月5日 星期日

免費的 FreeNAS + PPPOE 的設置ADSL

維基百科軟體介紹 http://zh.wikipedia.org/zh-tw/FreeNAS

解決PPPoe資訊 http://oneyed.org/fribi-adsl.html

有了這樣一個條件?用 PPPoe 建立 ADSL 撥接,證明 FreeNAS 的相容性。

經過實際測試,確定這個辦法,確實可行!

至於「內部網路」設置方面?有經驗的人,應該都知道怎樣解決!
其他參考「 http://www.freebsd.org/doc/handbook/pppoe.html 」

官方線上文件「 http://www.freebsd.org/cgi/man.cgi?query=ppp&sektion=8 」
........................「 http://www.freebsd.org/doc/handbook/pppoe.html 」
re-PPPoe 下載「 http://www.roaringpenguin.com/products/pppoe 」
..........................「 http://www.faqs.org/rfcs/rfc2516.html 」

FreeNAS 已經是「完整的平台」,真的會傷害到「商業平台」的交易價值。

若不能著重「技術人員」的素養,持續依賴「外包、BOT」來增進「設備運用、平台建構」,就等於是養「一堆沒用的人」。

而用著「系統一致觀念」,建立一個「外包、BOT」的一致性?會否根本就是「圖利廠商」,從開始到最後?都是謀取利益而已!

後面路由管理?會介紹到 FreeNas 的防火牆設置!有興趣的人,可以繼續跟文!

What is FreeBSD?

FreeBSD is a BSD Unix operating system derived from the university of California at Berkeley's 4.4BSD-lite2 which does not retain earlier BSD code derived and used on a AT&T Unix license. Further information on the FreeBSD operating system can be found at http://www.freebsd.org.

FreeBSD Requirements for PPPoE

Be sure that you have a version of userppp that supports PPPoE. Please note that userppp is included in FreeBSD. It is not add-on software. Recent FreeBSD releases should be fine.
Any -CURRENT, -STABLE and -RELEASE versions of FreeBSD should be able to support PPPoE. FreeBSD 4.0-CURRENT and 3.3-STABLE releases have been tested and found to work. Using FreeBSD, an old 66 MHz 486 DX2 with 8 megs of ram can handle PPPoE with 40% CPU usage.

Configuring FreeBSD Kernel for PPPoE

In order to support PPPoE, three lines must be added at the end of the FreeBSD kernel file. Beginners with no idea how to compile a kernel, please read the following carefully. For more experienced users who know how to compile a kernel, just see step 3 below and add the three lines to your kernel.
  1. First you must change to the kernel configuration directory:

    cd /usr/src/sys/i386/conf
  2. In the kernel configuration directory, use your favorite text editor and edit the kernel file. For example, if you use emacs, you would type:

    emacs KERNEL
  3. Go to the end of the kernel file and add the following three lines:

    options NETGRAPH
    options NETGRAPH_ETHER
    options NETGRAPH_PPPOE
    options NETGRAPH_SOCKET
  4. After adding these three lines, save the modified kernel file.
  5. Type this command to set the kernel configuration:

    config KERNEL
  6. Now you must change to the kernel setup directory:

    cd ../../compile/KERNEL
  7. In the kernel setup directory, type the following three commands:

    make depend
    make
    make install
Your kernel is now ready for PPPoE!

Configuring FreeBSD /etc/ppp/ppp.conf File

To edit the /etc/ppp/ppp.conf file, just use your favorite text editor. Replace any existing file content with the lines below. Be sure the "set device PPPoE:---" line is correct for your network interface card. (We used ed1 for the NIC in this example.) Change the authname and authkey to your sympatico user id (b1xxxxxx) and your password.
# /etc/ppp/ppp.conf
default:
set log Phase Chat LCP IPCP CCP tun command
nat enable yes
nat same_ports yes
nat use_sockets yes
set redial 15 28800
set reconnect 15 28800
pppoe:
set device PPPoE:ed1:
set mru 1492
set mtu 1492
set speed sync
enable lqr
set lqrperiod 5
set cd 5
set dial
set login
set timeout 0
set authname b1xxxxxx@sympatico.ca
set authkey yourpassword
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR
enable dns
# end of ppp configuration

Configuring FreeBSD /etc/rc.conf  File

The /etc/rc.conf file should be set up as follows for the ethernet interface that goes to your DSL modem. (Again, this example uses ed1 for the NIC.)
# /etc/rc.conf
network_interfaces="auto"   #Set network interfaces automatically
ifconfig_ed1="inet 10.0.0.1 netmask 255.0.0.0 -arp up"
ppp_enable="YES"             #This enables PPP on startup (recommended)
ppp_mode="background"
ppp_profile="pppoe"
#end of  /etc/rc.conf

Rebooting the System

After you have compiled the kernel to support PPPoE and have edited the /etc/ppp/ppp.conf and /etc/rc.conf files with the right configuration, you can reboot your system. If you enabled ppp in the /etc/rc.conf as recommended, you should be connected and can now enjoy surfing the net on FreeBSD using PPPoE.

Starting PPP Manually

If you did not enable ppp to automatically connect on startup in the /etc/rc.conf file, you can use this command to connect to the Internet manually:
ppp -background pppoe 

※※ 這樣內容,上手會困難嗎?※※ 我想到什麼?就寫什麼!※※

※對於資訊!我想到什麼?就寫什麼!

如果困難的話?
歡迎來信討論或發表意見,我會儘快回覆。

也歡迎來 YAHOO 知識家,集思廣益!

我的YAHOO 知識家 首頁:
http://tw.knowledge.yahoo.com/my/my?show=AB05975376

有需要技術文件 DarkMan 蒐集了不少!
存在FTP共享。想下載?請洽DarkMan信箱取得下載帳號。※

(-.-)

我承認.....從西元2000年後,就沒有在「Grey Hat」過了?

況且,我們沒去玩弄中華電信的小烏龜.....我是安分守己的宅男
當然?駭客技術,是一種私下傳授的「奧義」,並不適合廣為人們學習!
畢竟,這樣多學習資訊的人?都被隔離~又隔離~切割~又切割~之後?
沒幾個能夠將「資訊整體」一窺全豹,自然沒有人,在資訊能力上,具有健全的行為。
至此,不少人都只懂得一部分?甚至更慘,活在一般資訊下,難以突破!

請散播更多Dark Man 的訊息!
DarkMan專用信箱darkman@ishr.twbbs.org
Mail 伺服器?遷移中!施工期間!有諸多不便!近請見諒!
"人資系統的黑暗人" http://hr-no.blogspot.com "
微軟免費「免費防毒軟體」
微軟免費「間諜攻擊防護」

Dark Man 對於擁有「技術、技能、軟體、硬體、平台」並不自大,而是更加的重視「自我約束、安全管理」,曾幾何時?那些對「職能素養」相當重視的人,都一一退出職場;留下的只是「自我膨脹、爭名奪利」的人。

重視職能達成的人?會否越來越不容易工作;除了要應付工作之餘?

還要去面對「自我膨脹、爭名奪利」之輩.......這是「極其惡意」的事情,為何?仍要這樣去組織「職場環境」,就因為「權大通天、利大遮事」嗎?

這裡講述到的「軟體平台」,沒有花一定的時間去熟悉,是不可能深入,也不可能順利操作,有興趣的人,要多花時間投入,才能夠掌握網路運用。