۱. Install OpenVPN and the LuCI web interface on your Ubuntu system.
۲. Head over to the MikroTik router and configure an EoIP tunnel under IP -> Tunnel menu (make sure you select EoIP as the protocol).
۳. Enter the local IP of your MikroTik Interface, the remote Ubuntu address, and give it a name. Click on apply to save settings
۴. On your Ubuntu system, edit the /etc/config/network configuration file and add a new “interface” definition for the EoIP tunnel:
interface ‘eoip’
option ifname ‘eoip_tunnel1’ # replace with actual tunnel name
option proto ‘eoip’ # protocol name
option mtu ‘1400’ # adjust MTU size
option tcp MSS limit ‘1400’ # adjust TCP MSS limit
option local_address ‘LOCAL_ADDRESS’ # change to OpenVPN server IP address
option remote_address ‘REMOTE_ADDRESS’ # change to MikroTik WAN IP address
5. Save and exit, then restart networking by running: sudo /etc/init.d/network restart
6. Lastly test connectivity with an ping command such as ping -c 4