Home dynamics ax aws ec2 ubuntu vpn client access to mikrotik
dynamics ax

aws ec2 ubuntu vpn client access to mikrotik

aws ec2 ubuntu vpn client access to mikrotik

ok, ill be quick

on ec2

1. make sure your ecc has a security group allowed to be access to your ippublic
2. install pptpd
3. see these below script:
pty "pptp your-vpn-server-ip --nolaunchpppd --debug"
name username-on-vpn
password password-on-vpn
remotename PPTP
require-mppe-128
require-mschap-v2
refuse-eap
refuse-pap
refuse-chap
refuse-mschap
noauth
debug
persist
maxfail 0
defaultroute
#replacedefaultroute
usepeerdns
4. save those script on /etc/ppp/peers/PPTP
5. find file: /etc/ppp/chap-secrets
6. script it like below:
your-vpn-username pptp your-vpn-password *
7. create a 755 file called ip-up.local
8. script it like below:
ip route add your-target-server-for-example via your-ip-local-after-connect
9. activate vpn by using command pon PPTP
10. deactivevpn by using command poff PPTP
11. add point 9 and 10 into crontab root

on mikrotik

1. goto ppp
2. add secrets
fill name, password, service (pptp), profile (default-encryption), local address (remember your local ip address after connect, see the script before), remote address

 

Author

Ronny

Leave a Reply