Sponsored Content
Special Forums IP Networking authentication of VM's via PPPoE Post 302683909 by karthik.sharma on Wednesday 8th of August 2012 10:46:02 PM
Old 08-08-2012
authentication of VM's via PPPoE

I have two VM's running on Ubuntu box.Their name and IP addresses are give below.

nas 192.168.129.153
home_user 192.168.129.152

I establish a ppp connection between the two machines

#nas (server)
sudo pppd noauth local lock defaultroute persist nodetach 10.1.1.2:10.1.1.3 pty “nc -l 3333”

#home_user(client)
sudo pppd noauth local lock nodetach passive pty “nc 192.168.129.153 3333”


Once I do the above I can see a ppp connection established between the two machines (from ifconfig )

#nas (server)

ppp0 Link encap:Point-to-Point Protocol
inet addr:10.1.1.2 P-t-P:10.1.1.3 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:78 (78.0 B) TX bytes:72 (72.0 B)

#home_user (client)

ppp0 Link encap:Point-to-Point Protocol
inet addr:10.1.1.3 P-t-P:10.1.1.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:72 (72.0 B) TX bytes:78 (78.0 B)


My next aim is to use PPPoE for transport.I install pppoe package on the server

sudo apt-get install pppoe

sudo pppoe-server -I eth0 -L 192.168.129.153 -R 192.168.129.152 -O /etc/ppp/options

I have edited the options file to enable chap and pap authentication.I have also edited chap and pap secret files.

Now my question how do I use the ppp daemon pppd to connect to the server above?
It seems that I have to use the /usr/lib/ppp/version/rp-pppoe.so (part of ppp daemon).How do I make the ppp daemon act as a pppoe client that supports authentication?Any help is appreciated.
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

dns/pppoe Problems

I would appreciate any help anyone could give. I am having DNS problems... Here are the facts: linux: 2.2.16 Distrib: SUSE 7.0 pppd: rp-pppoe ISP: Verizon Avenue IP: Dynamic DNS: 10.5.0.65 ??? Default Gateway: 10.5.0.65 ???? I have tried putting the above IP into /etc/resolv.conf with... (3 Replies)
Discussion started by: Recon
3 Replies

2. UNIX for Dummies Questions & Answers

PPPoE + ADSL on FreeBSD 4.4

Hi everyone, This is basically my problem. I setup freebsd, and wanted to get my adsl connection up which uses pppoe to connect. I followed the steps in this (http://free.mine.nu/~squirrel/PPPoE/FreeBSD%20PPPoE%20Howto.htm) manual and configured everything successfully. The problem begins when i... (7 Replies)
Discussion started by: Luftwaffe
7 Replies

3. SCO

pppoe

Greetings... I'm looking for a pppoe client for SCO SYS_V can u guys gimme some help ? a website address or even the program name would be just fine. Thanx (1 Reply)
Discussion started by: nEuRoMaNcEr
1 Replies

4. Red Hat

Dial-up PPPoE + Radius authentication in LINUX

Hi All, I am configured radius authentication server and PPPoE in my Linux systems. It is not work.. Kindly help me how to configure pppoe server to authenticate the clients via radius it is working in UNIX FreeBSD for the same not working in linux. Can you have any configuration... (0 Replies)
Discussion started by: thakshina
0 Replies

5. Red Hat

PPPoE Connection on RHEL5

Hi, I am having broadband connection, I need to connect broadband internet through eth0. Please give me some use full information for configuring this. (0 Replies)
Discussion started by: pkachary
0 Replies

6. Slackware

pppoe-start not working

Hello. I'm new here and i'm new to slack (concept) as well. I made a connection for pppoe with pppoe-setup, bringed up eth0 with ifconfig but when i try pppoe-connect i get "Cannot determine ethernet address for proxy ARP" and with pppoe-start i get "child pppd process terminated". How can i make... (0 Replies)
Discussion started by: editheraven
0 Replies

7. Ubuntu

PPPOE + Ubuntu = Frustrating

Hii everyone, I will be explaining what kind of problem I am having with Ubuntu and PPPOE. I have dual booted my PC with Win 7 and Ubuntu 10.10 Previously, whenever I use to start my ubuntu, internet automatically used to start up.. .no problems. I had created a DSL connection through... (0 Replies)
Discussion started by: zsycho
0 Replies
PPPOE-SERVER(8) 					      System Manager's Manual						   PPPOE-SERVER(8)

NAME
pppoe-server - user-space PPPoE server SYNOPSIS
pppoe-server [options] DESCRIPTION
pppoe-server is a user-space server for PPPoE (Point-to-Point Protocol over Ethernet) for Linux and other UNIX systems. pppoe-server works in concert with the pppoe client to respond to PPPoE discovery packets and set up PPPoE sessions. OPTIONS
-F The -F option causes pppoe-server not to fork and become a daemon. The default is to fork and become a daemon. -I interface The -I option specifies the Ethernet interface to use. Under Linux, it is typically eth0 or eth1. The interface should be "up" before you start pppoe-server, but should not be configured to have an IP address. You can supply multiple -I options if you want the server to respond on more than one interface. -T timeout This option is passed directly to pppoe; see pppoe(8) for details. If you are using kernel-mode PPPoE, this option has no effect. -C ac_name Specifies which name to report as the access concentrator name. If not supplied, the host name is used. -S name Offer a service named name. Multiple -S options may be specified; each one causes the named service to be advertised in a Service- Name tag in the PADO frame. The first -S option specifies the default service, and is used if the PPPoE client requests a Service- Name of length zero. -m MSS This option is passed directly to pppoe; see pppoe(8) for details. If you are using kernel-mode PPPoE, this option has no effect. -s This option is passed directly to pppoe; see pppoe(8) for details. In addition, it causes pppd to be invoked with the sync option. -L ip Sets the local IP address. This is passed to spawned pppd processes. If not specified, the default is 10.0.0.1. -R ip Sets the starting remote IP address. As sessions are established, IP addresses are assigned starting from ip. pppoe-server auto- matically keeps track of the pool of addresses and passes a valid remote IP address to pppd. If not specified, a starting address of 10.67.15.1 is used. -N num Allows at most num concurrent PPPoE sessions. If not specified, the default is 64. -O fname This option causes pppoe-server to tell pppd to use the option file fname instead of the default /etc/ppp/pppoe-server-options. -p fname Reads the specified file fname which is a text file consisting of one IP address per line. These IP addresses will be assigned to clients. The number of sessions allowed will equal the number of addresses found in the file. The -p option overrides both -R and -N. In addition to containing IP addresses, the pool file can contain lines of the form: a.b.c.d-e which includes all IP addresses from a.b.c.d to a.b.c.e. For example, the line: 1.2.3.4-7 is equivalent to: 1.2.3.4 1.2.3.5 1.2.3.6 1.2.3.7 -r Tells the PPPoE server to randomly permute session numbers. Instead of handing out sessions in order, the session numbers are assigned in an unpredictable order. -u Tells the server to invoke pppd with the unit option. Note that this option only works for pppd version 2.4.0 or newer. -o offset Instead of numbering PPPoE sessions starting at 1, they will be numbered starting at offset+1. This allows you to run multiple servers on a given machine; just make sure that their session numbers do not overlap. -f disc:sess The -f option sets the Ethernet frame types for PPPoE discovery and session frames. The types are specified as hexadecimal numbers separated by a colon. Standard PPPoE uses frame types 8863:8864. You should not use this option unless you are absolutely sure the peer you are dealing with uses non-standard frame types. -k The -k option tells the server to use kernel-mode PPPoE on Linux. This option is available only on Linux kernels 2.4.0 and later, and only if the server was built with kernel-mode support. -h The -h option prints a brief usage message and exits. OPERATION
pppoe-server listens for incoming PPPoE discovery packets. When a session is established, it spawns a pppd process. The following options are passed to pppd: nodetach noaccomp nobsdcom nodeflate nopcomp novj novjccomp default-asyncmap In addition, the local and remote IP address are set based on the -L and -R options. The pty option is supplied along with a pppoe command to initiate the PPPoE session. Finally, additional pppd options can be placed in the file /etc/ppp/pppoe-server-options (which must exist, even if it is just empty!) Note that pppoe-server is meant mainly for testing PPPoE clients. It is not a high-performance server meant for production use. AUTHORS
pppoe-server was written by David F. Skoll <dfs@roaringpenguin.com>. The pppoe home page is http://www.roaringpenguin.com/pppoe/. SEE ALSO
pppd(8), pppoe(8), pppoe-sniff(8), pppoe-relay(8), /usr/share/doc/pppoe/README.Debian.gz 4th Berkeley Distribution 3 July 2000 PPPOE-SERVER(8)
All times are GMT -4. The time now is 05:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy