NAT Cloud in EVE-NG
I want to share with you how to create a NAT cloud in the EVE-NG community edition. Essentially, this is a virtual network with a DHCP server, which will allow NAT connections over the management interface of the EVE-NG VM for Internet access.
Interface, DHCP Server and NAT
First of all, we need to create a network which can be used in the topology. I’ll be using the predefined pnet9 interface (Cloud 9 network) for this, but any other interface will do.
This will assign an IP address to the device, enable IP forwarding in the kernel and establish an iptables rule to NAT the traffic to the pnet0 interface, which has the management IP address assigned. Technically, the pnet devices are bridges, but for the sake of this note this does not matter.
DHCP Server
We need an DHCP server on this interface lest we have to configure all the IP addressing for the Internet connection manually.
Next, we need to modify the DHCP server configs to look as follows:
Finally, start the DHCP server and enable it to start during boot
Thats about it. Whenever you use the Cloud 9 interface, there is a DHCP server running which allows Internet access.
Comments
Post a Comment