MikroTik RouterOS is powerful Linux based OS and have lots of features
from firewall to Load balance and hotspot to VPN server. One of these is builtin radius server userman which serve as central user database and billing AAA server (Prepaid and postpaid) for all the service which support Radius client (NAS) even for remote NAS clients.
I assume that you are familiar with MikroTik with basic configuration and menus. So lets get to work.
MikroTik Part
- Login to your MikroTik via winbox
- Goto IP -> IP Pool and click + (plus)
- On the new dialog of IP Pool Enter (in my case)
- Name : L2TP-IP-pool1
- Addresses : 172.16.20.2-172.16.8.254
- OK
- Goto IP -> Firewall -> NAT and click on + (plus) Enter following (in my case)
- On General Tab
- Chain : srcnat
- Src Address : 172.16.20.0/24
- On Action tab
- Action : masquerade
- Click OK
- Goto IP -> IPSec -> peers and click + (plus) and enter following (in my case)
- Secret : 1234
- Exchange Mode : main l2tp
- Check Send initial contact
- My ID : auto
- Proposal Check : obey
- Hash Algorithm : sha1
- Encryption Algorithm : 3des, aes128
- D/H Group : modp 1024
- Generate Policy : port override
- Click OK
- Now Click on Proposal tab on IPSec windows and open the default
- Check sha1, 3des, aes128 cbc, aes256 cbc and PFS Group : none and Click OK
- Now goto PPP and Click L2TP server button and Check enable, Use IPSec and enter IPSec Secret : 1234 and Click OK
- Now Goto Profiles tab on PPP and click + (plus) and enter following (in my case)
- Name : L2TP-IPSec-profile1
- Local Address : 172.16.20.1
- Remote Address : L2TP-IP-Pool1
- Click on Proposal tab and Check Required
- Click OK
- Now Goto Secret tab and Click + (plus) and enter following on New PPP Secret
- Name : l2tp
- Password : l2tp
- Service : l2tp
- Profile : L2TP-IPSec-profile1
- Click OK
- That's all for MikroTik
Now comes the Microsoft Windows XP Part
- Login to your Windows XP Machine (in my case)
- Goto My Network Properties
- Click Create New Connection to open New connection Wizard
- Click Next
- Select Connect to the network at my workplace and click Next
- Select Virtual Private Network Connection and click Next
- Company Name enter anything L2TP VPN Connection in my case and Click Next
- Enter the Host Name or IP address 10.0.0.1 (in my case Gateway) and Click Next
- Click Finish
- Now open the created Connection and enter the Username/ Password l2tp/l2tp (in my case)
- Click Properties - > Security tab and Click IPSec settings...
- and Enter the Key 1234 and Click OK
- Click on Networking Tab and Select Type of VPN as L2TP IPSec VPN and Click OK
- Now Click Connect
- You shall connect to the L2TP VPN Server
- You can use userman Radius Server for userman and Password
- All done,
Visit my YouTube Channel HomeTech
Please Support my YouTube Channel by liking and subscribing
I spend more time on my YouTube Channel so all comments are 101% replied there
Comments and suggestions are welcome to improve the tutorial and help other
Share Happiness
how setting l2tp/ipsec server and android clien
ReplyDelete