Use of ADSL dialing and dynamic domain names in Debian Linux

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.