Community discussions

MikroTik App
 
superlep
just joined
Topic Author
Posts: 3
Joined: Tue Mar 06, 2018 4:19 pm

command ppp secret

Tue Mar 06, 2018 9:10 pm

good evening who can explain the meaning in the command /ppp secret of the values local-address and remote-address. Is the local address the IP value of the local network that we want to give to the client when logging into the created vpn and remote-adddress is the value of the router's IP wan that the client must point to by connecting from the internet? thank you and sorry.
 
User avatar
CZFan
Forum Guru
Forum Guru
Posts: 2098
Joined: Sun Oct 09, 2016 8:25 pm
Location: South Africa, Krugersdorp (Home town of Brad Binder)
Contact:

Re: command ppp secret

Wed Mar 07, 2018 11:32 am

local address = address of vpn server
remote address = client address connecting to the vpn service
 
erfanurmia
newbie
Posts: 31
Joined: Wed Mar 07, 2018 11:14 am
Contact:

Re: command ppp secret

Wed Mar 07, 2018 11:53 am

you can set any address to local address, no problem
you can set local address sam as remote address ,this way is secure because when client connect via vpn to your network , he/she couldnt see your ip address that set on router or interfaces
remote address is a address that you wanna serve it to client
if you wanna serve more than 1 ip ,you should make a pool of ip
else you can set 1 ip on remote section
good luck
 
superlep
just joined
Topic Author
Posts: 3
Joined: Tue Mar 06, 2018 4:19 pm

Re: command ppp secret

Wed Mar 07, 2018 5:26 pm

Thanks for the reply. I want to insert a remote client via the Internet into a LAN network created and give it an IP address, so I can view the PCs on the LAN network and work on it.

a friend of mine suggested me to use these commands

/ ppp secret add name = test password = test local-address = 192.168.8.1 remote-
address = 192.168.8.240;

/ interface pptp-server server set enabled = yes;

/ ip firewall filter add action = accept chain = input dst-port = 1723 protocol = tcp;

/ ip firewall filter add action = accept chain = input protocol = gre "

It should activate the vpn

Then just configure a client (pc or phone) with:

Server: IP wan router
User: test
Pass: test

and find me on the net

but I did not understand what they meant local-address and remote-address because my local network inside the Miktronik has ip address 10.0.0.1
 
superlep
just joined
Topic Author
Posts: 3
Joined: Tue Mar 06, 2018 4:19 pm

Re: command ppp secret

Wed Mar 07, 2018 5:27 pm

Thanks for the reply. I want to insert a remote client via the Internet into a LAN network created and give it an IP address, so I can view the PCs on the LAN network and work on it.

a friend of mine suggested me to use these commands

/ ppp secret add name = test password = test local-address = 192.168.8.1 remote-
address = 192.168.8.240;

/ interface pptp-server server set enabled = yes;

/ ip firewall filter add action = accept chain = input dst-port = 1723 protocol = tcp;

/ ip firewall filter add action = accept chain = input protocol = gre "

It should activate the vpn

Then just configure a client (pc or phone) with:

Server: IP wan router
User: test
Pass: test

and find me on the net

but I did not understand what they meant local-address and remote-address because my local network inside the Miktronik has ip address 10.0.0.1