Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VPN Client not connecting [SOLVED]
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Duco Ergo Sum
Apprentice
Apprentice


Joined: 06 Dec 2005
Posts: 153
Location: Winsford

PostPosted: Tue Oct 14, 2014 12:10 am    Post subject: Reply with quote

Okay.

Solved!

This last issue was a routing issue after all.

I had mixed up my assigned IP address range with the target address range. I can now natively remote onto my PC.

My next task is to create a mechanism to bring this connection up on demand and drop it as easily. Thank you for your invaluable help! This has been one big learning experience for me.

The route which has worked looked like:

Code:

ip route add 3.5.8.0/24 dev ppp0 src 125.64.27.8
Back to top
View user's profile Send private message
salahx
Guru
Guru


Joined: 12 Mar 2005
Posts: 437

PostPosted: Tue Oct 14, 2014 4:50 am    Post subject: Reply with quote

Well now that we know is disconnection problem has nothing to l2tp implementation you can switch back to xl2tpd if you like. Its a little easier to script. But openl2tp can be scripted to - just include the command after l2tpconfig ("l2tpconfig tunnel create tunnel_name="test" dest_ipaddr=17.11.7.5 our_udp_port=1701"). xl2tpd, openl2tpd, and strongswan all require root to bring up/tear down connection, but xl2tp is easier to restrict via "sudo" than openl2tp. On the other hand, if you're using sudo you can just create a script and run the whole script via sudo as well.
Back to top
View user's profile Send private message
Duco Ergo Sum
Apprentice
Apprentice


Joined: 06 Dec 2005
Posts: 153
Location: Winsford

PostPosted: Tue Oct 14, 2014 8:40 am    Post subject: Reply with quote

I try to script to openl2tp and if that proves plausible, I'll stick with it.

Once I know what and how I'm going to do it, I'll post a summary here.

I can not thank you enough for your patience and time and effort and expertise and guidance and generosity.
Back to top
View user's profile Send private message
Envek
n00b
n00b


Joined: 03 May 2017
Posts: 1

PostPosted: Wed May 03, 2017 5:05 pm    Post subject: Reply with quote

Thank you, awesome people, for your thread. Troubleshooting in this thread is the only thing in whole Internet that helped me to set up L2TP-PSK client VPN connection.

BTW, can you suggest me how to set up autoconnection after system reboot (so, `ipsec up`, `xl2tpd-control connect` and if it is succeeded then `ip route add` will be executed)?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page Previous  1, 2, 3, 4, 5
Page 5 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum