Skip to Content.
Sympa Menu

discuss - Re: [opennic-discuss] Guides needed

discuss AT lists.opennicproject.org

Subject: Discuss mailing list

List archive

Re: [opennic-discuss] Guides needed


Chronological Thread 
  • From: subhuman <discipline AT gmx.net>
  • To: discuss AT lists.opennicproject.org
  • Subject: Re: [opennic-discuss] Guides needed
  • Date: Tue, 29 May 2012 13:57:28 +0200

How to configure a PPPoE internet connection on a Debian box
========================================

Assuming your computer has a direct connection (with no router between
it and the DSL modem), the configuration is pretty straightforward.
Here's the tutorial for beginners:


# Login as root:
su

# Make sure the resolvconf package is installed:
apt-get install resolvconf

# Create the directory /usr/etc/ppp:
mkdir -p /usr/etc/ppp

# Open your favourite editor, create a new file and put as many OpenNIC
# nameserver IPs as you like in it. For instance (if you're in Germany):
vi /usr/etc/ppp/resolv.conf.opennic

nameserver 78.138.97.33
nameserver 178.63.26.172
nameserver 2a00:e10:1000:10:1586:0:33:53
rotate

:wq

# Note: the "rotate" option helps dividing the requests between the
nameservers listed.

# Create the following little script:
vi /etc/ppp/ip-up.d/zzz_opennic_resolvconf

#!/bin/sh
# some providers insist on the 'usepeerdns' option, hence
# we reinitialize the resolver to opennic servers after
# all is done. this hook script will be run automatically by
# pppd after it successfully established a connection.

set -e

# before we start: if anything went wrong with pppd, the $PPP...
# variables will not exist.
test -n "$PPP_IFACE" || exit 0

# Logging: use /var/log/ppp-ipupdown.log if it exists (then it is open
# for writing, see ../ip-up). Else use syslog:
blather () {
local whereto
if [ -e /var/log/ppp-ipupdown.log ]; then
whereto="echo $0: $@"
else
whereto="logger -i -t $0 $@"
fi
eval $whereto
}

SYSTEM_RCONF="/etc/ppp/resolv.conf"
# the file we just created:
LOCAL_RCONF="/usr/etc/ppp/resolv.conf.opennic"

test -f $SYSTEM_RCONF || { blather "$SYSTEM_RCONF does not exist. Exiting.";
exit 0; }
test -f $LOCAL_RCONF || { blather "$LOCAL_RCONF does not exist. Exiting.";
exit 0; }

cat $LOCAL_RCONF | /sbin/resolvconf -a $PPP_IFACE
cp $LOCAL_RCONF $SYSTEM_RCONF

blather "Resolver configured for OpenNIC namespace."

:wq

# Restart your network:
/etc/init.d/networking restart

# And that's it.

should work, at least it does on my box.
--martin

On Tue, 29 May 2012 20:39:58 +1000
Julian De Marchi <julian AT jdcomputers.com.au> wrote:

> Heya,
>
> I need some people to write guides for me on how to configure DNS for
> the system you use. I'd also like some ones about configuring routers.
>
> If you are able to help, please email me in provate so I can get you
> onto the system.
>
> Many thanks!
>
> --julian
>
>
> --------
> You are a member of the OpenNIC Discuss list.
> You may unsubscribe by emailing discuss-unsubscribe AT lists.opennicproject.org


--
Volk ist Opium für eine Religion.



Archive powered by MHonArc 2.6.19.

Top of Page