LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   openvpn over pppoe (https://www.linuxquestions.org/questions/linux-networking-3/openvpn-over-pppoe-639721/)

arsham 05-03-2008 11:20 PM

openvpn over pppoe
 
Hi there,
I have an ADSL that connects to the internet through pppoe.
Now I want to setup a VPN connection with openvpn.

The connection is made , I checked both the server/client logs of openvpn.
But I have no route through the tunnel.

In client , this is the ifconfig output :

Code:

eth0      Link encap:Ethernet  HWaddr 00:11:95:8c:07:92
          inet addr:192.168.1.9  Bcast:192.168.1.255  Mask:255.255.255.0

ppp0      Link encap:Point-to-Point Protocol
          inet addr:192.168.80.237  P-t-P:192.168.210.2  Mask:255.255.255.255

tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:192.168.1.6  P-t-P:192.168.1.5  Mask:255.255.255.255

And the route output is :

Code:


Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
arsham-laptop.l *              255.255.255.255 UH    0      0        0 tun0
192.168.210.2  *              255.255.255.255 UH    0      0        0 ppp0
192.168.1.0    arsham-laptop.l 255.255.255.0  UG    0      0        0 tun0
192.168.1.0    *              255.255.255.0  U    0      0        0 eth0
link-local      *              255.255.0.0    U    1000  0        0 eth0
default        *              0.0.0.0        U    0      0        0 ppp0

How can I manage to get the tunnel work?

uncle_philip 05-04-2008 06:11 PM

your local-ip address must not be the same subnet as tun0.
if your local-ip is 192.168.1.1
then assign your tun0 ip to 192.168.2.1


All times are GMT -5. The time now is 05:47 PM.