Page 1 of 1

Connect eve-ng to the internet

Posted: Mon Dec 24, 2018 8:42 pm
by Rafael Machado
I have an instance of Ubuntu server on GCP with EVE-NG installed.

I would like to know how do I connect my router from lab to internet, I believe it would have to be on the same network as the server.

However the e0/0 interface is DHCP but does not get IP adrress.

Basically I did the following tutorial but I did not succeed:
https://www.petenetlive.com/KB/Article/0001432

Re: Connect eve-ng to the internet

Posted: Tue Dec 25, 2018 9:35 am
by ecze
Use 'NAT' network...

E.

Re: Connect eve-ng to the internet

Posted: Tue Dec 25, 2018 10:47 am
by Rafael Machado
ecze wrote:
Tue Dec 25, 2018 9:35 am
Use 'NAT' network...

E.


I do not have the NAT network in my lab.

Re: Connect eve-ng to the internet

Posted: Wed Dec 26, 2018 4:00 am
by ecze
OH sorry,

This option is only in PRO edition.

Community doesn't support NAT.

Regards,

E.

Re: Connect eve-ng to the internet

Posted: Wed Dec 26, 2018 8:12 pm
by Rafael Machado
Any other way to connect to the internet?

Re: Connect eve-ng to the internet

Posted: Fri Dec 28, 2018 10:42 am
by Uldis (UD)
only if you have another IP on cloud0 which you can assign for EVE node inside of lab. But if your EVE is on Google cloud, I assume that you have single IP only, therefore it is not possible

Re: Connect eve-ng to the internet

Posted: Thu Apr 02, 2020 10:21 am
by dstonogov
I configured DHCP and NAT (iptables) on my EVE-Community. Works ok
1. Install DHCP and configure it:
apt-get install isc-dhcp-server
2. Make a postrouting rule (example):
-A POSTROUTING -s 192.168.1.0/24 -o pnet1 -j SNAT --to-source xx.xx.xx.xx
3. Enjoy.

Re: Connect eve-ng to the internet

Posted: Thu May 14, 2020 11:25 pm
by iZezoh
Follow this guide to set up NAT and access the Internet
https://www.linkedin.com/pulse/build-yo ... -marnissi/