It's one of the interesting thing i am going to discuss on .
I want to log in as PPPoE VPN user in my mikrotik nas , Which is exist on the internet .and I am at remote location but i want to login as a PPPoE user over the VPN.
Lets start the configuration .
Before you want to log in as PPPoE VPN user you must have to provide the reach-ability to your mikrotik NAS . But here my PC is connected to the internet through Relianc JIO and My nas is existed in remote Location . Because my NAS is in Public IP .
Lets start the configuration .
Here , I have existing PPPoE server setup where my all users are connected from LAN and Now
i am going to connect my PC as PPPoE user over the VPN .
Step-1
Go to IP>Pool>Create Pool>
In my case, I am going to create the 12.0.0.0/24 as a VPN ip pool .
Go To >PPP>Profile>ADD Profile(+)
you have to create a different PPPoE profile for VPN because you may have existing PPPoE Profile which is running on existing setup .So that would be better to create a different PPPoE
profile to not interfering with existing profile .
As you can see on my above picture , I have created a new profile the name of VPN Profile.
Local Address -The WAn IP of my NAS.
Remote IP -My IP pool which is created the name of 12.0.0.0/24(VLAN3).
Step-2
Create a PPTP interface in mikrotik NAS.
GO to>PPP>Interface>PPTP Server Binding
Just add a PPTP server Binding and give any name whatever you want .In mycase i have given the name as pptp-in-Laxmi
Step-3
Enable the PPTP service .
Go To PPTP Server>Click on Enable and as you can see below on my yellow highlighted area of the image .
Step-4
Create the username and password which you are going to access over the VPN and PPPoE users .
Go to PPP>Secret>
Local Address- This is my NAS's WAN IP .
Remote IP - when any VPN user will try to login
over the as PPPoE using this username (laxmi) and password he/she will get this IP address(12.0.0.20).
Profile-I have selected VPN Profile which I have created for VPN users .
Service-Service name should be selected as a PPTP.
Step-5
Configure the nat for 12.0.0.0/24 network .
Step-6
Create the VPN Connection in windows machine , here I have windows 10 and i am going to create the VPn connection in this machine ..
Go to following
Control Panel>Network Adaptor setting >
Once you will click on Connect to a workplace you will be able to enter the username and password . and you have to give same username and password which you have created in mikrotik PPP>secret, In my case my username is laxmi and password is 54321.
Now you can see in the system the VPN connection is established and the ip address is 12.0.0.20.
Step 6-
To verify the user in nAS
Now you can see teh user is live in NAS as L and service is PPTP.
/interface pptp-server server
set authentication=pap,chap,mschap1,mschap2 default-profile=profile1 enabled=\
yes
/ip firewall nat
add action=masquerade chain=srcnat src-address=12.0.0.0/24
/ppp secret
add local-address=WAN IP(you can Give) name=laxmi password=12345 profile=\
"VPN Profile" remote-address=12.0.0.20 service=pptp
/ppp profile
add dns-server=8.8.8.8,4.2.2.2 local-address=(WAN IP address ) name="VPN Profile" \
remote-address=VLAN3
I want to log in as PPPoE VPN user in my mikrotik nas , Which is exist on the internet .and I am at remote location but i want to login as a PPPoE user over the VPN.
Lets start the configuration .
Before you want to log in as PPPoE VPN user you must have to provide the reach-ability to your mikrotik NAS . But here my PC is connected to the internet through Relianc JIO and My nas is existed in remote Location . Because my NAS is in Public IP .
Lets start the configuration .
Here , I have existing PPPoE server setup where my all users are connected from LAN and Now
i am going to connect my PC as PPPoE user over the VPN .
Step-1
Go to IP>Pool>Create Pool>
In my case, I am going to create the 12.0.0.0/24 as a VPN ip pool .
Go To >PPP>Profile>ADD Profile(+)
you have to create a different PPPoE profile for VPN because you may have existing PPPoE Profile which is running on existing setup .So that would be better to create a different PPPoE
profile to not interfering with existing profile .
As you can see on my above picture , I have created a new profile the name of VPN Profile.
Local Address -The WAn IP of my NAS.
Remote IP -My IP pool which is created the name of 12.0.0.0/24(VLAN3).
Step-2
Create a PPTP interface in mikrotik NAS.
GO to>PPP>Interface>PPTP Server Binding
Just add a PPTP server Binding and give any name whatever you want .In mycase i have given the name as pptp-in-Laxmi
Step-3
Enable the PPTP service .
Go To PPTP Server>Click on Enable and as you can see below on my yellow highlighted area of the image .
Step-4
Create the username and password which you are going to access over the VPN and PPPoE users .
Go to PPP>Secret>
Local Address- This is my NAS's WAN IP .
Remote IP - when any VPN user will try to login
over the as PPPoE using this username (laxmi) and password he/she will get this IP address(12.0.0.20).
Profile-I have selected VPN Profile which I have created for VPN users .
Service-Service name should be selected as a PPTP.
Step-5
Configure the nat for 12.0.0.0/24 network .
Step-6
Create the VPN Connection in windows machine , here I have windows 10 and i am going to create the VPn connection in this machine ..
Go to following
Control Panel>Network Adaptor setting >
Once you will click on Connect to a workplace you will be able to enter the username and password . and you have to give same username and password which you have created in mikrotik PPP>secret, In my case my username is laxmi and password is 54321.
Now you can see in the system the VPN connection is established and the ip address is 12.0.0.20.
Step 6-
To verify the user in nAS
Now you can see teh user is live in NAS as L and service is PPTP.
You can follow the below commands to configure this above tasks in NAS.
/interface pptp-server server
set authentication=pap,chap,mschap1,mschap2 default-profile=profile1 enabled=\
yes
/ip firewall nat
add action=masquerade chain=srcnat src-address=12.0.0.0/24
/ppp secret
add local-address=WAN IP(you can Give) name=laxmi password=12345 profile=\
"VPN Profile" remote-address=12.0.0.20 service=pptp
/ppp profile
add dns-server=8.8.8.8,4.2.2.2 local-address=(WAN IP address ) name="VPN Profile" \
remote-address=VLAN3
ReplyDeleteI have read your article throughly and it was awesome content with great example.
Selenium Training in chennai
Selenium Training
Selenium Course in Chennai
Selenium Classes in chennai
It was a very good post indeed. I thoroughly enjoyed reading it in my lunch time. Will surely come and visit this blog more often. Thanks for sharing. surfshark free trial
ReplyDeleteThank you very much for the sharing! COOL.. vpn for torrenting
ReplyDelete