Community discussions

MikroTik App
 
Rockyboa
Member Candidate
Member Candidate
Topic Author
Posts: 106
Joined: Tue Jul 14, 2009 10:52 pm

remote Dynamic IP tunnel using EoIP

Fri May 07, 2010 11:31 pm

We currently have RB1000 and wish to leverage the IPSec offload processor. Since we have particular need we would like to use EoIP as our VPN tunnel architechture.

So we started thinking about building a EoIP tunnel and use IPSec in transport mode over this tunnel. Problem is that remote sites are mainly dynamic. I wish not use another layer such as PPTP or L2TP just to make this thing work. Unless you can confirm that L2TP will also benefits from the specialized hardware offload in the RB1000.

Does anyone created successfully a tunnel using EoIP with a script when remote site are using dynamicaly assign IPs.?

Martin
 
User avatar
maximan
Trainer
Trainer
Posts: 543
Joined: Sat May 29, 2004 12:10 am
Location: Rio Cuarto, Argentina
Contact:

Re: remote Dynamic IP tunnel using EoIP

Tue May 11, 2010 7:38 pm

 
changeip
Forum Guru
Forum Guru
Posts: 3830
Joined: Fri May 28, 2004 5:22 pm

Re: remote Dynamic IP tunnel using EoIP

Tue May 11, 2010 9:28 pm

You can also use l2tp without encryption, it will be almost just like EoIP.
 
User avatar
superrouter
newbie
Posts: 44
Joined: Wed Feb 23, 2005 12:35 pm
Location: ZA

Re: remote Dynamic IP tunnel using EoIP

Sat May 15, 2010 2:46 pm

hi rocky, did you ever get that eoip from dynamic client right ?
 
User avatar
superrouter
newbie
Posts: 44
Joined: Wed Feb 23, 2005 12:35 pm
Location: ZA

Re: remote Dynamic IP tunnel using EoIP

Sun May 23, 2010 11:08 am

here is a script to update a eoip tunnel if your destination is using a ddns service.

:global "eoipint1" "youreoipinterfacename"
:global "eoipconnectclient1" "yourDDNSdomain"
:global "eoip1hostip" [:resolve $"eoipconnectclient1"]
:global "eoipconnectto" [/interface eoip get $eoipint1 remote-address]
:if ($eoip1hostip != $eoipconnectto) do={
:log info "****** Updating EOIP Tunnel for $eoipint1"
/interface eoip set $"eoipint1" remote-address=$"eoip1hostip"}
:if ($eoip1hostip = $eoipconnectto) do={
:log info "**** No Update necessary for EOIP Tunnel $eoipint1"}

What I have done is just set netwatch to ping an ip at thhe other side of the eoip tunnel and if it gets no response to run this script to update the ddns ip.
 
jadu
Frequent Visitor
Frequent Visitor
Posts: 86
Joined: Sat Feb 05, 2011 9:22 am
Location: Bucharest - Constanta

Re: remote Dynamic IP tunnel using EoIP

Thu Mar 31, 2011 12:11 am

here is a script to update a eoip tunnel if your destination is using a ddns service.

:global "eoipint1" "youreoipinterfacename"
:global "eoipconnectclient1" "yourDDNSdomain"
:global "eoip1hostip" [:resolve $"eoipconnectclient1"]
:global "eoipconnectto" [/interface eoip get $eoipint1 remote-address]
:if ($eoip1hostip != $eoipconnectto) do={
:log info "****** Updating EOIP Tunnel for $eoipint1"
/interface eoip set $"eoipint1" remote-address=$"eoip1hostip"}
:if ($eoip1hostip = $eoipconnectto) do={
:log info "**** No Update necessary for EOIP Tunnel $eoipint1"}

What I have done is just set netwatch to ping an ip at thhe other side of the eoip tunnel and if it gets no response to run this script to update the ddns ip.
This one works great in ROS 4.17 !

Who is online

Users browsing this forum: miker3000, unhuzpt and 70 guests