---
title: "Wymiana bramy OVHgateway (EN)"
description: "Find out how to replace the OVHgateway with another manageable virtual machine"
url: https://docs.ovhcloud.com/pl/guides/hosted-private-cloud/nutanix-on-ovhcloud/software-gateway-replacement
lang: pl
lastUpdated: 2022-12-05
---
# Wymiana bramy OVHgateway (EN)

## Objective

This guide will explain how to replace the outgoing internet gateway (OVHgateway) with another network operating system that will give you, in addition to internet access, the ability to configure NAT and VPN (Ipsec or SSL VPN).

:::warning
OVHcloud provides services for which you are responsible, with regard to their configuration and management. It is therefore your responsibility to ensure  that they function correctly.

This guide is designed to assist you in common tasks as much as possible. Nevertheless, we recommend contacting a [specialist service provider](https://partner.ovhcloud.com/pl/directory/) or reaching out to [our community](https://community.ovh.com/en/) if you experience any issues.

:::


***

### OVHcloud Control Panel Access

- **Direct link:** [Nutanix](https://manager.eu.ovhcloud.com/#/dedicated/nutanix)
- **Navigation path:** <code className="action">Hosted Private Cloud</code> > <code className="action">Nutanix</code> > Select your cluster

***


## Requirements

- One Nutanix cluster provided by OVHcloud
- Access to the <ManagerLink to="/">OVHcloud Control Panel</ManagerLink>
- Access to your clusters via Prism Central

## Instructions

The OVHgateway uses two network cards by default:

- One on VLAN 0 (base) connected to the internet with an additional OVHcloud IP address.
- One on VLAN 1 (infra) connected to the local administration network with a range of IP addresses, in this example in 192.168.10.0/24.

In our guide, we will replace this gateway with the network operating system **pfSense Community edition** without software support.

:::info
It is entirely possible to use this guide to install other network operating systems compatible with AHV.

:::

[](#)
### Downloading sources for pfSense installation

Download an ISO image for the **pfSense** installation from this link: [Downloading pfSense](https://www.pfsense.org/download/).

Using [this documentation](/pl/guides/hosted-private-cloud/nutanix-on-ovhcloud/image-import.md), add the **pfSense ISO** image to your Nutanix cluster.

[](#)
### Creating the GW-PFSENSE virtual machine

Create a virtual machine with these settings:

- **Name**: `GW-PFSENSE`
- **Storage1**: `100 GB HDD`
- **Storage2**: `DVD drive connected to the pfSense ISO file`
- **RAM**: `4 GB`
- **CPU**: `2 vCPU`
- **Network**: `2 network cards, one on VLAN 0 (base) and the other on VLAN 1 (infra)`

You can use [our guide on virtual machine management](/pl/guides/hosted-private-cloud/nutanix-on-ovhcloud/virtual-machine-management.md) to create this virtual machine.

![Create VM 01](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/00-createvm01.png)
[](#)
### Shutting down the OVH-GATEWAY virtual machine

To avoid duplicate IP addresses on the network, stop the **OVHgateway** virtual machine before starting the new virtual machine on **pfSense**.

Via **Prism Central**
, click in the top left on the `main menu
`.
![OVHGateway 01](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/01-stop-ovhgateway01.png)
Click `VMs
`.
![OVHGateway 02 stop](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/01-stop-ovhgateway02.png)
Click on the `OVHgateway
` virtual machine.
![OVHGateway 03](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/01-stop-ovhgateway03.png)
From the `More
` menu at the top, click `Soft Shutdown
`.
![OVHGateway 04](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/01-stop-ovhgateway04.png)
[](#)
### Retrieving the public address in the OVHcloud Control Panel

Retrieve information about the OVHcloud gateway network settings.

Log in to the OVHcloud Control Panel
, select your Nutanix cluster, and find the information in the `IPFO`
 field.
![Get IP Fail OVER](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/02-get-ipfailover.png)
**IPFO** is a range of 4 addresses. The first and last are reserved, the third is on OVHcloud hardware and serves as an **Internet** gateway. The only usable IP address is the second address in the range.

During installation, we will reuse this information to assign it to the new **GW-PFSENSE virtual machine**.

```console
XX.XX.XX.N Reserved network address that appears on the OVHcloud client site
XX.XX.XX.N+1 IP address to be assigned to the GW-PFSENSE virtual machine WAN interface
XX.XX.XX.N+2 Address to be used as a gateway on the GW-PFSENSE VM WAN interface
XX.XX.XX.N+3 Reserved broadcast IP address
```

For example, if the **IPFO** address displayed on the client site is 198.51.100.0/30, use:

- **198.51.100.1** for the **WAN** interface address.
- **198.51.100.2** for the gateway on the **WAN** interface.

[](#)
### Start the GW-PFSENSE virtual machine

Go back to virtual machine management in **Prism Central**
 and click on `GW-PFSENSE
`.
![Start GATEWAY pfsense](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/02-start-gatewaypfsense01.png)
Select `Power On
` from the `More
` menu.
![Start GATEWAY pfsense](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/02-start-gatewaypfsense02.png)
Click `Launch console
`.
![Start GATEWAY pfsense](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/02-start-gatewaypfsense03.png)
[](#)
### Installing pfSense

Review the pfSense licence information and press the `Enter
` key to accept it.
![pfsense Installation 01](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/03-install-pfsense01.png)
Choose `Install`
, switch to `OK`
 with the `Tab
` key and press `Enter
`.
![pfsense Installation 02](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/03-install-pfsense02.png)
Select `Continue with default keymap`
, go to `Select`
 with the `Tab
` key and press the `Enter
` key.
![pfsense Installation 03](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/03-install-pfsense03.png)
Select `Auto (ZFS)`
, switch to `OK`
 with the `Tab
` key, and then press the `Enter
` key.
![pfsense Installation 04](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/03-install-pfsense04.png)
Go to `Select`
 with the `Tab
` key and press `Enter
`.
![pfsense Installation 05](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/03-install-pfsense05.png)
Select `Stripe`
, switch to `OK`
 with the `Tab
` key, and then press `Enter
`.
![pfsense Installation 06](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/03-install-pfsense06.png)
Select `NUTANIX VDISK`
 with the `Space
` bar. Then go to `OK`
 with the `Tab
` key and press `Enter
`.
![pfsense Installation 07](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/03-install-pfsense07.png)
Go to `YES`
 with the `Tab
` key and press the `Enter
` key.
![pfsense Installation 08](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/03-install-pfsense08.png)
Choose `NO`
 with the `Tab
` key and press the `Enter
` key.
![pfsense Installation 09](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/03-install-pfsense09.png)
Select `Reboot`
 and press the `Enter
` key.
![pfsense Installation 10](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/03-install-pfsense10.png)
[](#)
### Eject the pfSense CDROM from the GW-PFSENSE virtual machine

From **Prism Central**, go back to **GW-PFSENSE** virtual machine management and perform the following steps to eject the CDROM.

Click on `Soft Shutdown
` in the `More
` menu on the **GW-PFSENSE**
 virtual machine to stop this virtual machine.
![Remove CDROM 01](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/03-remove-cdrom01.png)
Click `Update
`.
![Remove CDROM 02](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/03-remove-cdrom02.png)
Click `Next
`.
![Remove CDROM 03](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/03-remove-cdrom03.png)
Click the `Eject
` icon next to the CDROM.
![Remove CDROM 04](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/03-remove-cdrom04.png)
Click `Next
`.
![Remove CDROM 05](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/03-remove-cdrom05.png)
Click `Next
`.
![Remove CDROM 06](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/03-remove-cdrom06.png)
Click `Save
`.
![Remove CDROM 07](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/03-remove-cdrom07.png)
Click `Power On
` in the `More
` menu.
![Remove CDROM 08](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/03-remove-cdrom08.png)
Click `Launch Console
` to continue the installation after startup.
![Remove CDROM 09](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/03-remove-cdrom09.png)
[](#)
### Configure pfSense IP addresses through the console

We will configure the **pfSense** gateway IP addresses as follows:

- WAN interface: Use this part of the [Retrieving a public address in the OVHcloud Control Panel](#getpublicaddress) guide to assign the IP address and gateway on this interface.
- LAN Interface: 192.168.10.254/24 which is the gateway address of the Nutanix cluster private network followed by the subnet mask.

Accept the licence by pressing the `Enter
` key.
![Configure pfsense 01](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/04-configureip-pfsense01.png)
Type `n`
 and press the `Enter
` key when asked if you need **VLANs**
.
![Configure pfsense 02](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/04-configureip-pfsense02.png)
Type `vtnet0`
 as the interface name for the **WAN**
 and press `Enter
`.
![Configure pfsense 03](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/04-configureip-pfsense03.png)
Type `vtnet1`
 as the interface name for the **LAN**
 and press `Enter
`.
![Configure pfsense 04](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/04-configureip-pfsense04.png)
Confirm the changes by entering `y`
, then press the `Enter
` key.
![Configure pfsense 05](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/04-configureip-pfsense05.png)
Type `2`
 to choose `Set interface(s) IP address`
 and press `Enter
`.
![Configure pfsense 06](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/04-configureip-pfsense06.png)
Select the **WAN**
 interface by typing `1`
 and pressing `Enter
`.
![Configure pfsense 07](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/04-configureip-pfsense07.png)
Type `n`
 and press `Enter
` when prompted to configure the address by DHCP.
![Configure pfsense 08](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/04-configureip-pfsense08.png)
Type **the public IP address with the mask**
 and press the `Enter
` key, for example: **198.51.100.1/30**
.
Then enter **the public**
 gateway IP address and press the `Enter
` key, for example: **198.51.100.2**
.
![Configure pfsense 09](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/04-configureip-pfsense09.png)
Type `n`
 and press the `Enter
` key when the wizard offers you the configuration of the **IPv6 address WAN interface via DHCP6**
.
![Configure pfsense 10](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/04-configureip-pfsense10.png)
When requested to **revert to HTTP as the webConfigurator protocol**
, type `n`
 and press `Enter
`.
![Configure pfsense 11](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/04-configureip-pfsense11.png)
Press `Enter
` to validate the registration of the IP address of the **WAN**
.
![Configure pfsense 12](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/04-configureip-pfsense12.png)
Type `2`
 and press the `Enter
` key to configure IP addresses.
![Configure pfsense 13](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/04-configureip-pfsense13.png)
Take option `2`
 and press the `Enter
` key to change the LAN IP address.
![Configure pfsense 14](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/04-configureip-pfsense14.png)
Type the private IP address followed by the mask `192.168.10.254/24`
 and press the `Enter
` key.
![Configure pfsense 15](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/04-configureip-pfsense15.png)
Press the `Enter
` key to not put a gateway on the **LAN interface**
.
![Configure pfsense 16](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/04-configureip-pfsense16.png)
Press the `Enter
` key to disable IPv6 usage.
![Configure pfsense 17](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/04-configureip-pfsense17.png)
Type `n`
 and press the `Enter
` key on the DHCP server activation request.
![Configure pfsense 18](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/04-configureip-pfsense18.png)
Answer `n`
 and press the `Enter
` key when prompted to **revert to HTTP as the webConfigurator protocol**
.
![Configure pfsense 19](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/04-configureip-pfsense19.png)
You can now manage the HTTPS gateway on the private network of the **Nutanix** cluster.

Press the `Enter
` key to complete the command line configuration.
![Configure pfsense 20](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/04-configureip-pfsense20.png)
[](#)
### Configure some options through the web interface

Connect to the pfSense Web Console with the URL `https://192.168.10.254` from a cluster virtual machine on the **AHV LAN: Base**.

Enter the following information:

- **User account**: admin
- **Default password**: pfsense

Then click `SIGN IN
`.
![WEB Configure pfsense 01](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/05-configure-pfsense01.png)
[](#)
#### Change the pfSense default password\*\*

From the `System
` menu, choose `User Manager
`.
![Change Password 01](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/06-change-password01.png)
Click the `Pen
` icon.
![Change Password 02](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/06-change-password02.png)
Enter and confirm the password to the right of `Password`.

![Change Password 03](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/06-change-password03.png)
Confirm the changes by clicking `Save
` at the bottom of the menu.
![Change Password 03](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/06-change-password04.png).
[](#)
#### Add a rule to allow remote administration from a public address

Go to the `Firewall
` menu and choose `Rules
`.
![Authorisation admin from public ADDRESS](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/07-authorize-admin-from-publicaddress01.png)
Check that you are on the `WAN`
 tab, then click the `Add
` button (at the bottom with the up arrow) to create a firewall rule.
![Authorisation admin from public ADDRESS](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/07-authorize-admin-from-publicaddress02.png)
Set these options in the **Edit Firewall Rule** section:

- **Action**: `Pass`
- **Interface**: `WAN`
- **Address Family**: `IPv4`
- **Protocol**: `TCP`

Select `Single host or alias` from the **Source** drop-down menu and enter the `public address` that can connect to the **pfSense** firewall.

![Authorisation admin from public ADDRESS 03](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/07-authorize-admin-from-publicaddress03.png)
Then set these options in the **Destination** section:

- **Destination**: `WAN address`
- **Destination Port Range From**: `HTTPS`
- **Destination Port Range To**: `HTTPS`

Click `Save
`.
![Authorisation admin from public ADDRESS 04](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/07-authorize-admin-from-publicaddress04.png)
Click `Apply Changes
` to activate the rule.
![Authorisation admin from public ADDRESS 05](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/07-authorize-admin-from-publicaddress05.png)
The **pfSense** administration interface is then accessible from the Internet, only from the authorised network in HTTPS, here `https://198.51.100.1`.

### Configuring Internet Access in a New VLAN

We will create a new subnet in VLAN 2 with an address range in 192.168.2.0/24 and a gateway in 192.168.2.254.

#### PfSense VM modification

Log in to Prism Central to make these changes:

Use the [Isolating management machines from production](/pl/guides/hosted-private-cloud/nutanix-on-ovhcloud/isolate-management-vm.md) guide to create a new VLAN on your Nutanix cluster with these settings:

- **VLAN name**: `Production`
- **VLAN number**: `2`

Your new network must appear in **Subnets**.

![08 add vlan production 01](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/08-add-vlan-production01.png)
Now that the new subnet has been created, we will add an adapter to the configuration of your **GW-PFSENSE** virtual machine.

Via the virtual machine management, select your **GW-PFSENSE**
 virtual machine, go to the `Actions
` menu and choose `Update
`.
![09 update-vm-pfsense 01](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/09-update-vm-pfsense01.png)
Click `Next
`.
![09 update-vm-pfsense 02](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/09-update-vm-pfsense02.png)
Click `Attach to Subnet
`.
![09 update-vm-pfsense 03](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/09-update-vm-pfsense03.png)
Choose the `Production
` subnets and click `Save
`.
![09 update-vm-pfsense 04](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/09-update-vm-pfsense04.png)
Click `Next
`.
![09 update-vm-pfsense 05](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/09-update-vm-pfsense05.png)
Click `Next
`.
![09 update-vm-pfsense 06](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/09-update-vm-pfsense06.png)
Click `Save
`.
![09 update-vm-pfsense 07](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/09-update-vm-pfsense07.png)
#### Enable and configure the new network adapter on pfSense

Log in to the pfSense interface in https, with the public address (for example, **[https://198.51.100.1](https://198.51.100.1)**) in your pfSense administration interface, and follow these instructions:

Go to the `Interfaces
` menu and click `Assignments
`.
![10 addinterface-in-pfsense 01](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/10-addinterface-in-pfsense01.png)
Click `\+ Add
` to the right of **Available network ports:**
.
![10 addinterface-in-pfsense 02](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/10-addinterface-in-pfsense02.png)
Click `Save
`.
![10 addinterface-in-pfsense 03](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/10-addinterface-in-pfsense03.png)
In the `Interfaces
` menu, click `OPT1
`
![11 assign ip to new interface 01](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/11-assign-ip-to-new-interface01.png)
Check **Enable Interfaces** and modify these settings :

- **Description** : `VLAN2`
- **IPv4 Address** : `192.168.2.254/24`

Click `Save
`.
![11 assign ip to new interface 02](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/11-assign-ip-to-new-interface02.png)
Click `Apply Changes
`.
![11 assign ip to new interface 03](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/11-assign-ip-to-new-interface03.png)
Go to the `Firewall`
 menu and click `Rules
`.
![12 add rule for new card 01](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/12-add-rule-for-new-card01.png)
Go to the `VLAN2
` tab and click the `Add
` button on the left.
![12 add rule for new card 02](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/12-add-rule-for-new-card02.png)
Change these values :

- **Protocol** : `Any`
- **Source** : `VLAN2 net`
- **Destination** : `any`

Click `Save
`.
![12 add rule for new card 03](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/12-add-rule-for-new-card03.png)
Click `Apply Changes
`.
![12 add rule for new card 04](/images/hosted-private-cloud/nutanix-on-ovhcloud/30-software-gateway-replacement/12-add-rule-for-new-card04.png)
Your VLAN 2 is now connected to the Internet.

[](#)
## Go further

If you need training or technical assistance to implement our solutions, contact your sales representative or click on [this link](https://www.ovhcloud.com/pl/professional-services/) to get a quote and ask our Professional Services experts for assisting you on your specific use case of your project.

Join our [community of users](https://community.ovhcloud.com/).
