Line 72: |
Line 72: |
| On the server: | | On the server: |
| | | |
− | db ipsec_connections setprop L2TPD-PSK status disabled IPRangeStart 192.168.x.180 IPRangeFinish 192.168.x.200 rightsubnet 192.168.x.0/24 passwd somesecret dpdaction clear dpddelay 10 dpdtimeout 90 | + | db ipsec_connections setprop L2TPD-PSK \ |
| + | status disabled \ |
| + | IPRangeStart 192.168.101.180 \ |
| + | IPRangeFinish 192.168.101.200 \ |
| + | rightsubnet 192.168.101.0/24 \ |
| + | passwd somesecret \ |
| + | dpdaction clear \ |
| + | dpddelay 10 \ |
| + | dpdtimeout 90 |
| + | |
| + | {{Note box| You CAN change some values as '''IPRangeStart''' and '''IPRangeFinish''' but you need to keep same subnet.<br> |
| + | So if you change 101 on '''IPRangeStart''', you must change it on '''IPRangeFinist''' and '''rightsubnet''' too! }} |
| + | |
| | | |
| config setprop xl2tpd status enabled | | config setprop xl2tpd status enabled |
Line 80: |
Line 92: |
| You should now be able to create a connection from a device. | | You should now be able to create a connection from a device. |
| | | |
− | Connection type: L2TP/IPSec PSK | + | Connection type: '''L2TP/IPSec PSK''' |
− | Server IP : Your server IP | + | Server IP : '''Your server IP address''' |
− | IPsec preshared key : as per passwd set above | + | IPsec preshared key : as per '''passwd''' set above |
− | Username : admin (server user) | + | Username : admin (or any user from your server ) |
− | Password : adminpassword (server user password) | + | Password : adminpassword (the password for the above user) |
| | | |
| You can regenerate the server templates with: | | You can regenerate the server templates with: |
Line 90: |
Line 102: |
| signal-event remoteaccess-update | | signal-event remoteaccess-update |
| | | |
− | Note that this this will not stop or restart ipsec. Use ipsec-update to do this: | + | Note that this this will not stop or restart ipsec. Use '''ipsec-update''' to do this: |
| | | |
| signal-event ipsec-update | | signal-event ipsec-update |
− |
| |
| | | |
| ===Stop the service=== | | ===Stop the service=== |