views:

31

answers:

1

I want to develop one PPPoe-like server, so I can create a virtual connecting among server and client. Is there any opensource project for reference ? Thanks

+2  A: 

pppd can do PPPoE (and about a billion other things). I'm not sure what you mean by "virtual" though. Both ends of PPPoE connection have to be on the same Ethernet LAN (strictly speaking there are ways around this, but that involves solving the same problem I think you are trying to solve).

I think you may be more interested in a VPN (Virtual Private Network).

nategoose
I think VPN is slow, right ?
why
one more question, If one pc has a NAT IP(means the pc hava connected a NAT server), Does it can be connected the PPP server also ?
why
@why: PPPoE works at a level below NAT. Any router will block PPPoE.
Ignacio Vazquez-Abrams
Thanks for you good reply. So Any router will not block VPN, if it is right, can you give me a explain
why
@Why: Usually when someone says "router" they are referring to an Internet Protocol Router which routes IP packets. PPPoE packets are not IP packets. IP was designed to be encapsulated in many different types of physical networks. PPP and Ethernet are two of the most popular network types that can carry IP. You can also encapsulate PPP on withing Ethernet (PPPoE) and Ethernet over IP (EoIP) and you can encapsulate IP packets within encrypted UPD packets (a type of IP packet) and have a VPN.
nategoose
@Why: VPNs generally are slower than Local Area Networks, but you will likely have a similarly slow connection if you use something else because it will be doing mostly the same stuff. You could skip the encryption/decryption and get a little bit of speed but you may not even notice it.
nategoose
thank you very much!
why