ADSL dial-up and dynamic domain name use under Debian Linux

  

I.ADSL dialing

ADSL generally uses PPPoE protocol, Debian software is rp-pppoe, use:

< BR> apt-get install pppoe pppoeconf


This software is installed.


Then run pppoeconf, automatically detect the network card connected to ADSL, and then enter the corresponding parameters, such as user name, password, etc., you can use pon to connect to the Internet.


The generated configuration file is:


/etc/ppp/peers/dsl-provider


II. Dynamic Domain Name


First go to http://www.3322.org/to apply for a dynamic domain name. After applying, download his client at http://www.3322.org/dyndnspage/client.html. Then unzip, I extracted it to

/usr/local/bin/ez-ipupdate.


In the directory /etc/ppp/ip-up.d, the shell below will be automatically executed when ppp is up. This will automatically update the dynamic domain name here. updated. In addition, you can also put firewall rules and NAT rules in this file, such as I generate a 02nat under this directory (note that the attribute should be chmod 755 02nat changed to executable:

#!/bin/bash #IPTABLES=\\"/sbin/iptables\\"# Load the appropriate 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 rule ${IPTABLES} -t nat -A POSTROUTING -o ppp0 -j MASQUERADE# Open 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 
where xxx.3322.org is the domain name you applied for, username is the username, and password is the password.

Copyright © Windows knowledge All Rights Reserved