For providing access via PPPoE it is required a PPPoE network access server (NAS) and a subscriber’s unit (PPPoE client).
In this guide as a PPPoE network access server it is used a freeware packet rp-pppoe.

Step1. First we need intenet access and 2 network cards (eth0 – WAN, eth1 – LAN).

vim /etc/network/interfaces

auto lo
iface lo inet loopback
iface eth0 inet static
address 89.xxx.xxx.xxx #Your public IP address
netmask 255.xxx.xxx.xxx  #Your subnet mask
gateway 89.xxx.xxx.xxx    #Your gateway

iface eth1 inet static
address 192.168.4.254
netmask 255.255.255.0

Step2. Install ppp daemon:

apt-get install ppp

Step3. Get rp-pppoe from here and install it.

wget http://www.roaringpenguin.com/files/download/rp-pppoe-3.10.tar.gz

Extract the archive:

Continue Reading…

This bash script was cread for you to help you to set up a VPN that will let you do many things.

This bash script is based primarily on another tutorials, but I have updated and I added some more infos.

This is the script:

#!/bin/bash
# OpenVPN install script
# Tested on Debian Squeeze
# Please submit feedback and questions at [email protected]

ip=`grep address /etc/network/interfaces | grep -v 127.0.0.1 | awk ‘{print $2}’`
apt-get update
apt-get install openvpn libssl-dev openssl
cd /etc/openvpn/
cp -R /usr/share/doc/openvpn/examples/easy-rsa/ /etc/openvpn/
cd /etc/openvpn/easy-rsa/2.0/
chmod +rwx *
. ./vars
./clean-all
source ./vars

echo -e “\n\n\n\n\n\n\n” | ./build-ca
clear

Continue Reading…

Page 1 of 11