Article Title: Use of ADSL dialing and dynamic domain names in Debian Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Use of ADSL dialing and dynamic domain names in Debian
I. ADSL dialing
ADSL generally uses the PPPoE protocol, and Debian uses the rp-pppoe software, using:
Apt-get install pppoe pppoeconf
The software is installed.
Then run pppoeconf, automatically detect the network adapter connecting to ADSL, and enter the relevant parameters, such as the user name and password, to connect to the Internet using pon.
The generated configuration file is in:
/Etc/ppp/peers/dsl-provider
II. dynamic domain name
First go to http://www.3322.org/apply for dynamic domain name. After applying, download his client in http://www.3322.org/dyndnspage/client.html. Decompress the package.
/Usr/local/bin/ez-ipupdate.
Shell in the directory/etc/ppp/ip-up.d, will be automatically executed when ppp is up, so that the dynamic domain name update program here, you can automatically update. In addition, you can also place firewall rules and NAT rules in this file. for example, I generate an 02nat under this directory (note that the attribute should be changed to executable chmod 755 02nat:
#! /Bin/bash # IPTABLES = \ "/sbin/iptables \" # load the corresponding module modprobe iptable_nat # Clear All Rules $ {IPTABLES}-t filter-f input $ {IPTABLES }-t filter-f output $ {IPTABLES}-t filter-f forward $ {IPTABLES}-t filter-X $ {IPTABLES}-t nat-f prerouting $ {IPTABLES} -t nat-f output $ {IPTABLES}-t nat-f postrouting $ {IPTABLES}-t nat-X $ {IPTABLES}-t mangle-f prerouting $ {IPTABLES }- t mangle-f output $ {IPTABLES}-t mangle-X # NAT rules $ {IPTABLES}-t nat-a postrouting-o ppp0-j MASQUERADE # enable the packet forwarding function echo 1>/proc/sys/net/ipv4/ip_forward # dynamic domain name update/usr/local/bin/ez-ipupdate-h xxx.3322.org-I ppp0-S qdns-u username: password
|
Xxx.3322.org is the domain name you applied for, username is the user name, and password is the password.