L2TP Client: Ubiquiti Edgerouter: Difference between revisions
Appearance
Content deleted Content added
mNo edit summary |
mNo edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 17: | Line 17: | ||
Create a static route so the L2TP gateway runs over your current ISP gateway (EdgeOS tries to route the L2TP over itself for some reason). |
Create a static route so the L2TP gateway runs over your current ISP gateway (EdgeOS tries to route the L2TP over itself for some reason). |
||
[[File:Edgerouter-L2TP1.png| |
[[File:Edgerouter-L2TP1.png|frameless]] |
||
L2TP set up in the usual way via the config tree |
L2TP set up in the usual way via the config tree |
||
[[File:Edgerouter-L2TP2.png| |
[[File:Edgerouter-L2TP2.png|frameless]] |
||
Add an SNAT rule so LAN clients can access |
Add an SNAT rule so LAN clients can access |
||
[[File:Edgerouter-L2TP3.png| |
[[File:Edgerouter-L2TP3.png|frameless]] |
||
You then need to edit the /etc/ppp/peers/l2tpc1 file and add the line "remotename xl2tpd" so it looks something like this |
You then need to edit the /etc/ppp/peers/l2tpc1 file and add the line "remotename xl2tpd" so it looks something like this |
||
[[File:Edgerouter-L2TP4.png| |
[[File:Edgerouter-L2TP4.png|frameless]] |
||
Then run "sudo service xl2tpd restart" to re-establish the L2TP, it's important this is done via the cli otherwise EdgeOS overwrites this file and removes the line we just added. |
Then run "sudo service xl2tpd restart" to re-establish the L2TP, it's important this is done via the cli otherwise EdgeOS overwrites this file and removes the line we just added. |
||
This should get v4 up and running |
This should get v4 up and running. |
||