View previous topic :: View next topic |
Author |
Message |
Duco Ergo Sum Apprentice
Joined: 06 Dec 2005 Posts: 154 Location: Winsford
|
Posted: Tue Oct 14, 2014 12:10 am Post subject: |
|
|
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 |
|
|
salahx Guru
Joined: 12 Mar 2005 Posts: 559
|
Posted: Tue Oct 14, 2014 4:50 am Post subject: |
|
|
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 |
|
|
Duco Ergo Sum Apprentice
Joined: 06 Dec 2005 Posts: 154 Location: Winsford
|
Posted: Tue Oct 14, 2014 8:40 am Post subject: |
|
|
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 |
|
|
Envek n00b
Joined: 03 May 2017 Posts: 1
|
Posted: Wed May 03, 2017 5:05 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|