Score:0

Attaching Public IP address to VNIC in Oracle Cloud instance running Ubuntu 20.04 server

mx flag

I am running Ubuntu Server 20.04 on an oracle cloud instance. In Ubuntu, When I type ip a it returns the following (showing only my private Oracle IP attached to the VNIC):

2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 0X:0X:1X:1X:1X:9X brd ff:ff:ff:ff:ff:ff
    altname enp0s3
    inet 10.0.0.119/24 brd 10.0.0.255 scope global ens3
       valid_lft forever preferred_lft forever

The problem here, is that Oracle seems to assign the Oracle Private IP to the VNIC, and then NAT my Public Oracle IP address to the VNIC. The problem with this, is that I am using my Oracle Instance as a VPN Server, and need to enable port forwarding on it via /etc/ufw/before.rules. When adding the servers public IP address to the port forwarding rules, and forwarding the IP to the VPN Client, the client cannot traverse this built in Oracle NAT, and therefore, port forwarding doesn't work on the VPN Client.

Could someone please explain in detail (and possibly with screen shots), how exactly I can configure my oracle settings to attach my public IP address directly to my VNIC on my Oracle Instance, so that port forwarding can work with my vpn server?

DanRan avatar
mx flag
Is anyone out there that can help me with this? I still have not found a solution.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.