Community discussions

MikroTik App
 
-headstrong-
Member
Member
Topic Author
Posts: 377
Joined: Thu Jun 05, 2008 8:04 pm
Location: South Africa

Do I need a static internet IP to create a VPN?

Tue Jun 24, 2008 1:36 am

Hi guys

I am following this wiki on open VPN:http://wiki.mikrotik.com/wiki/OpenVPN#W ... penVPN_.3F
/ip address add address=10.15.30.31/24 interface=ether1 comment=Lan
/ip address add address=189.64.0.2/24 interface=ether2 comment=Internet
/ip route add dst-address=10.0.0.0/8 gateway=10.15.30.5 comment=Wan
/ip route add gateway=189.64.0.1 comment=Internet
Does the 189.64.0.2/24 need to be a static IP assigned by my ISP or can I make it up?

thanks
 
User avatar
gmsmstr
Trainer
Trainer
Posts: 982
Joined: Fri Jun 04, 2004 2:22 am
Location: St. Louis, MO
Contact:

Re: Do I need a static internet IP to create a VPN?

Tue Jun 24, 2008 4:51 am

You have to have a public IP if you wish to address the VPN server on the internet. Several ways of doing this, dynamic DNS services will allow you to have a dynamic IP, and update the DNS servers. Then you vpn into the dns address vs the IP as the IP can change.

Second is to have a static public IP, this is the simplest, but requires a static public IP.
 
-headstrong-
Member
Member
Topic Author
Posts: 377
Joined: Thu Jun 05, 2008 8:04 pm
Location: South Africa

Re: Do I need a static internet IP to create a VPN?

Tue Jun 24, 2008 8:25 pm

thanks gmsmstr

How do I configure my clients to connect to the domain name as ROS v.3.10 requires me to enter an actual ip address for pptp,opvn, eoip
 
diaan1
Frequent Visitor
Frequent Visitor
Posts: 52
Joined: Tue Jun 12, 2007 7:31 pm

Re: Do I need a static internet IP to create a VPN?

Tue Jun 24, 2008 9:33 pm

Check out http://www.changeip.com.

Works very well.
 
User avatar
hilton
Long time Member
Long time Member
Posts: 634
Joined: Thu Sep 07, 2006 5:12 pm
Location: Jozi (aka Johannesburg), South Africa

Re: Do I need a static internet IP to create a VPN?

Tue Jun 24, 2008 9:40 pm

thanks gmsmstr

How do I configure my clients to connect to the domain name as ROS v.3.10 requires me to enter an actual ip address for pptp,opvn, eoip
You'll need to check this out.
http://wiki.mikrotik.com/wiki/Dynamic_D ... angeIP.com

Did you get my pm?
 
User avatar
gargamel
just joined
Posts: 9
Joined: Fri May 16, 2008 9:38 am
Location: Centurion,South Africa

Re: Do I need a static internet IP to create a VPN?

Tue Jun 24, 2008 10:22 pm

http://wiki.mikrotik.com/wiki/Dynamic_D ... angeIP.com refers to the script that is used for the VPN Server to update dynamic ip
to static name.

On the client side running routeros I use the following script.

# Script Starts
:global newvpnip [:resolve $changeiphostname]
:global currentvpnip [/interface pptp-client get $vpnname connect-to]

:if ($currentvpnip != $newvpnip) do={
:log info "Change VPN IP"
/interface pptp-client set $vpnname connect-to=$newvpnip
}
# Script Ends


Replace $changeiphostname to the Hostname of your VPN Server, and $vpnname to the vpn connection name example pptp-out1 etc.

Then schedule the script to run say every 5 minutes.

Works very well for me.
 
-headstrong-
Member
Member
Topic Author
Posts: 377
Joined: Thu Jun 05, 2008 8:04 pm
Location: South Africa

Re: Do I need a static internet IP to create a VPN?

Tue Jun 24, 2008 11:12 pm

wow thanks guys, that looks pretty simple but powerful

Hilton, I can't seem to send or receive PM's...Says that it is locked...how do I unlock it?
 
User avatar
hilton
Long time Member
Long time Member
Posts: 634
Joined: Thu Sep 07, 2006 5:12 pm
Location: Jozi (aka Johannesburg), South Africa

Re: Do I need a static internet IP to create a VPN?

Tue Jun 24, 2008 11:21 pm

I sent it to your email address? something at webafrica?

Not? If you didn't get it, I would like that video pls, hiltonr[at]gmail.com

Ta.

Who is online

Users browsing this forum: adwlodaro, Bruzxce, FAB1150 and 196 guests