Hi Joel Lang
To set up port forwarding for port 7013 to an Azure Red Hat Virtual Machine, you will need to configure the Azure Network Security Group (NSG) associated with the VM to allow inbound traffic on that port.
Please follow the below steps:
- Go to Azure Portal -> Virtual machines -> Select your Red Hat VM -> Go to Networking section -> Network Interface (NIC) associated with your VM. Click on the NIC -> In the NIC settings -> Network security group -> click on the NSG linked to your VM.
- In the NSG settings -> click on Inbound security rules -> Click + Add -> Now add the following details:
- Source: Choose Any or specify the source IP range if you want to restrict access.
- Source port ranges: Leave this as
* (all ports).
- Destination: Choose Any or specify the IP address of your VM.
- Destination port ranges: Enter 7013.
- Protocol: Select TCP
- Action: Select Allow.
- Priority: Set a priority number.
- Name: Provide a name for the rule.
- Description: Optionally, add a description.
- Click on Add to create the rule.
- Now to Configure Firewall on the Red Hat VM -> Connect to your Red Hat VM using SSH -> Check if the firewall (e.g.,
firewalld or iptables) is running and configured to allow traffic on port 7013.
# Check if firewalld is running
sudo systemctl status firewalld
# Allow traffic on port 7013
sudo firewall-cmd --zone=public --add-port=7013/tcp --permanent
# Reload the firewall to apply changes
sudo firewall-cmd --reload
And then try accessing your VM through port 7013 from the relevant client or application to test connectivity.
Hope this helps!
Please Let me know if you have any queries.