Telekom DSL with Ubiquiti EdgeRouter
These days i exchanged my aging FritzBox with a Ubiquiti EdgeRouter Lite(not available anymore).
Most of the configuration including IPsec is pretty straightforward. The only thing which took a little bit more time is the "Zwangstrennung" (daily shutdown) of the PPPoE connection from my provider. I do the daily reconnect for my connection at 4 am every day.
To achieve that, a script and a daily call from cron is needed. Here is a article from the Ubiquiti Forum which helped a lot. Parts of the script are from there.
Create a script reconnect.sh under /config/scripts
#!/bin/bash
run=/opt/vyatta/bin/vyatta-op-cmd-wrapper
# reconnect interface
# update dyndns
# update ipsec
ip=
Activate the cron entry inside the console on your EdgeRouter
Do not forget to have the listen for the gui and ssh interface only on internal network
Some other helpful commands
# add a static name to the dns resolver
# delete it
# start dyndns update
# show actual dyndns state
# set the ipsec ip address after it changed i.e. on pppoe
Dani says 2016/09/09
Danke für den Artikel, hat mir mit meinem DHCP Problem ("VLAN Interface aktualisiert DHCP Lease nicht richtig" geholfen, zumindest mal bis der Fehler behoben ist).
#!/bin/bash
run=/opt/vyatta/bin/vyatta-op-cmd-wrapper
-> das ganze dann in Crontab
Offenbar bin ich nicht der Einzige mit dem Problem. https://community.ubnt.com/t5/EdgeMAX/WAN-dropped-DHCP-renew-fixes-it/td-p/780660
Timo says 2016/12/29
Thanks for the article, I needed to set up the daily reconnect as well and it provided a place for me to call curl to update my dynamic DNS entries after a reconnect.
Article created 2014-12-07. Comment on this post!