2008-05-12

擴充 yum 的內含

擴充 yum 的內含
yum內含套件只有基本必要套件而已 (如. proftpd...就不在yum中),所以我們可以透過設定 [RPMforge] 來增加套件數量。
執行安裝 [RPMforge] 套件
#rpm -Uhv
http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm




參考連結:Weithenn Study Daily: CentOS 5.1-初始環境設定:

iptables -L -vn

iptables -L -vn
"-L" 參數列出鏈中的規則, 因為沒有指定鏈名, 所以預設列出 filter 鏈的規則
"-v" 參數將顯示完整的資訊, 以便觀察傳輸量統計的狀況, 一般不使用"-v "參數時, 只會顯示如來源位址等簡要的資訊
"-n" 參數設定 iptables 不要將 IP 反查為網域名稱



原始連結:旗標知識網:如何使用 iptables 統計傳輸量

knownhost 的 vps 如何使用 port 轉向

將 port:8080 轉到 port:10000
在knownhost 的vps 測試多次,底下的用法才能使用
iptables -t nat -A PREROUTING -p tcp -i venet0 --dport 8080 -j DNAT --to-destination 67.222.10.12(實體ip):10000
以下用法,是失敗的
iptables -t nat -A PREROUTING -p tcp -i venet0 --dport 8080 -j DNAT --to-destination 0.0.0.0:10000
iptables -t nat -A PREROUTING -p tcp -i venet0 --dport 8080 -j DNAT --to-destination 127.0.0.1:10000



參考連結:IPTABLES: DNAT port 1433 - LinuxQuestions.org

vps的iptable如何使用venet0:0

在 linux 的 venet0:0 是模擬出來的。

if venet0:0 is 192.168.1.1
change:
/sbin/iptables -A OUTPUT -o venet0:0 -m state --state NEW -j ACCEPT
to:
/sbin/iptables -A OUTPUT -o venet0 -s 192.168.1.1 -m state --state NEW -j ACCEPT


原文連結:Iptables error: weird character in interface `venet0:0' - VPSlink Forums

2008-05-09

如何在godaddy的name server 中使用自已的ip

主要在 host Summary 加入 ip ,然後在 Name Servers 中 加入 Summary 中的 domain ,就可以了

原文:
You are not required to register hosts, but if you intend to set up your own Domain Name Server (DNS) service, you can register your own hosts.
WARNING: Unless you have a thorough understanding of this process, we recommend that you do not use this feature.
To Register Your Own Hosts
Log in to your Account Manager.
In the My Products section, click Manage Domains.
Click the domain for which you want to create a host.
In the Host Summary area at the bottom of the page, click the add hyperlink in the header.
In the Host Name field, enter the host name you want to register.
NOTE: Do not enter "www" as your host name.
In the Host IP fields, enter the IP address(es) you want to add to the host.
Click OK.
It takes 4 to 8 hours to register hosts for .COM and .NET domains and 24 to 48 hours for all other domain extensions.

原文連結 >>Registering Your Own Nameservers - Help Center—Knowledge Base and FAQ