Difference between revisions of "Configure VPN Server"

From Idrive
Jump to navigation Jump to search
(Blanked the page)
 
(100 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Before start configure VPN server download the [http://download2.mikrotik.com/winbox.exe Configuration tool for RouterOS].
 
  
Run Winbox.exe and wait 5-10 sec. until the IP and MAC adress will apear.
 
 
 
 
[[File:Mikrotik1.png|center]]
 
 
 
A pop-up window will apear and choose "Remove Configuration" otherwise the router will create a default configuration.
 
 
 
[[File:Mikrotik2.png|center]]
 
 
 
First step is to create a static IP for your internet connection.
 
 
 
[[File:Mikrotik3.png|center]]
 
 
 
Select "Addresses" from "IP" and click the plus sign.
 
 
 
[[File:Mikrotik4.png|center]]
 
 
 
We used IP 10.3.0.80 which is a local IP from the main router IP Pool and
 
we have forwarded the 1723 port.
 
 
 
[[File:Mikrotik5.png|center]]
 
 
 
Route IP for internet access.
 
 
 
[[File:Mikrotik6.png|center]]
 
 
 
Add IP 0.0.0.0/0 in "Dst. Address:" box. In "Gateway" box add your ISP gateway.
 
 
 
[[File:Mikrotik7.png|1024px|center]]
 
 
 
Select "Bridge" from the left menu and add new bridge.
 
 
 
[[File:Mikrotik8.png|1024px|center]]
 
 
 
From the same interface select "Ports" tab and add interfaces ether1 and ether2 to "bridge_internet"
 
 
 
[[File:Mikrotik9.png|1024px|center]]
 
 
[[File:Mikrotik10.png|1024px|center]]
 
 
 
Now click on "Secrets" tab from PPP interface and add a new user.
 
 
 
[[File:Mikrotik13.png|1024px|center]]
 
 
 
Add user and password and choose service pptp from the dropdown.
 
The "Local Address" and "Remote Address" must be diferent than your internet access IP pool.
 
 
Ex.:
 
Local Address: 1.1.1.1
 
Remote Address: 1.1.1.2
 
 
 
[[File:Mikrotik14.png|1024px|center]]
 
 
 
Now select EoIp Tunnel tab from Interfaces and add a new tunnel.
 
 
 
[[File:Mikrotik15.png|1024px|center]]
 
 
 
Add Local and Remote Address same as above and add "1" in the "Tunnel ID".
 
 
 
[[File:Mikrotik16.png|1024px|center]]
 
 
 
Add a new bridge from "Bridge" interface choose a name or leave default and click OK.
 
 
 
[[File:Mikrotik17.png|1024px|center]]
 
 
 
Repeat the step above and create "bridge2"
 
 
 
[[File:Mikrotik19.png|1024px|center]]
 
 
 
Now select "Ports" tab from the same interface and add ether1(LAN/Internet cable), ether2(NIC1 - Internet Connection) in "bridge1" and in "bridge2" add EoIP tunnel, ether3, ether4 and ether5(Base Station NIC) interfaces.
 
 
 
[[File:Mikrotik23.png|1024px|center]]
 
 
 
Add IP for ether5(Base Station NIC).
 
 
 
[[File:Mikrotik20.png|1024px|center]]
 
 
 
Now you have to enable the PPTP server.
 
From PPP->Interface select "PPTP Server" tab check "Enabled" and all "Authentication" boxes.
 
 
 
[[File:Mikrotik21.png|1024px|center]]
 
 
 
If the VPN client is created will appear in PPP->Active Connections if not, please check [[Configure VPN Client]]
 
 
 
[[File:Mikrotik22.png|1024px|center]]
 

Latest revision as of 18:16, 7 November 2014