Page 1 of 1
command ppp secret
Posted: Tue Mar 06, 2018 9:10 pm
by superlep
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.
Re: command ppp secret
Posted: Wed Mar 07, 2018 11:32 am
by CZFan
local address = address of vpn server
remote address = client address connecting to the vpn service
Re: command ppp secret
Posted: Wed Mar 07, 2018 11:53 am
by erfanurmia
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
Re: command ppp secret
Posted: Wed Mar 07, 2018 5:26 pm
by superlep
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
Re: command ppp secret
Posted: Wed Mar 07, 2018 5:27 pm
by superlep
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