دا الدرس التاني هنكمل فيه الاعدادات لربط فرعين ببعض من خلال الميكروتك
هنكمل شغل ع سيرفر (A)
---------------------------------------------------------------------------------
---------------------------------------------------------------------------------
هنكمل شغل ع سيرفر (A)
---------------------------------------------------------------------------------
/ppp profile add name=openvpn local-address=192.168.200.254 remote-address=192.168.200.10 change-tcp-mss=yes use-compression=no use-encryption=required
---------------------------------------------------------------------------------
PPP > Profiles افتح
وبعدها اختار new PPP Profile
-------------------------------------------------------------------------------------------------------------------------------
/ppp secret add name=NewYork password=NyTx325 profile=openvpn service=ovpn
---------------------------------------------------------------------------------------------------------------------------------
/interface ovpn-server server set certificate=SERVER cipher=blowfish128,aes128,aes192,aes256 default-profile=openvpn enabled=yes require-client-certificate=yes
------------------------------------------------------------------------------
IP > Routesمن قايمه
هتضيف NEW ROUTE
وتعمل الاعدادات زي الصوره
وبعدين هتتنسخ دا في السرفر (A)
0--------------------------------------------------------------------------
/ip firewall filter add chain=input dst-port=1194 protocol=tcp
/ip firewall nat add chain=srcnat src-address=192.168.100.0/24 dst-address=192.168.88.0/24 place-before=0
-------------------------------------------------------------------------------
وبعدين هتتنسخ دا في السرفر (B)
------------------------------------------------------------------------------
/interface ovpn-client add certificate=cert_export_client-NewYork.crt_0 cipher=aes256 connect-to=71.157.75.49 mac-address=02:2F:03:6C:10:59 name=ovpn-Texas password=NyTx325 profile=default-encryption user=NewYork
--------------------------------------------------------------------------------
/ip route add dst-address=192.168.100.0/24 gateway=192.168.200.254
-------------------------------------------------------------------------------
/ip firewall filter add chain=input dst-port=1194 protocol=tcp
/ip firewall nat add chain=srcnat src-address=192.168.88.0/24 dst-address=192.168.100.0/24 place-before=0
-------------------------------------------------------------------------------
THE END....



0 تعليقات