This script will create a public IP address, a VM, an internal Load Balancer with NAT rules, and an Azure Private Link Service. You will get charged for these Azure resources. Before using this Terraform script, you are agreeing to the following:
- You have an Azure vNet and subnet created.
- You have an active VPN between your Azure vNet and the on-prem/AWS/GCP network.
- You can access your on-prem/AWS/GCP database from that Azure vNet.
- You have admin privilege to the Azure subscription.
You agree that Striim is not responsible for creating, deleting, or managing any Azure resources and is not liable for any associated costs in your Azure account.
terraform init
terraform plan -var-file="pass_values.tfvars"
terraform apply -var-file="pass_values.tfvars" -auto-approve
terraform destroy -var-file="pass_values.tfvars"
terraform output -raw ssh_private_key > ~/.ssh/<striim-integration-key>
chmod 600 ~/.ssh/<striim-integration-key>
ssh -i ~/.ssh/<striim-integration-key> azureuser@<vm-ip-address>
sudo iptables -t nat -nvL
iptables -t nat -A PREROUTING -p tcp --dport SOURCE_PORT1 -j DNAT --to-destination DESTINATION_IP1:${DESTINATION_PORT1}
iptables -t nat -A POSTROUTING -p tcp -d DESTINATION_IP1 --dport DESTINATION_PORT1 -j SNAT --to-source $(hostname -i)
iptables-save
Go to the Azure Virtual Machine Portal > Connect > Download the RDP client > Use the User and Password that passed during creation
netsh interface portproxy show all
netsh interface portproxy add v4tov4 listenport=<database-port> listenaddress=0.0.0.0 connectport=<database-port> connectaddress=<database-ip-address>