Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customizable NAT device subnet #3615

Open
evilhamsterman opened this issue Aug 5, 2024 · 2 comments
Open

Customizable NAT device subnet #3615

evilhamsterman opened this issue Aug 5, 2024 · 2 comments

Comments

@evilhamsterman
Copy link

Is your feature request related to a problem? Please describe.
I'd like the ability to simulate multiple Internet sources. This can be useful for testing multihoming, multiple sites, etc.

Describe the solution you'd like
The ability to configure different subnets and DHCP services on NAT devices

Describe alternatives you've considered
Currently to replicate this if you just need to two it can be done using the Cloud and NAT devices, but sometimes you need more than two like multiple multi homed sites. In that case I've essentially created my own NAT devices using a router like VYOS but that's a lot of extra setup work.

Additional context

@grossmj
Copy link
Member

grossmj commented Aug 11, 2024

Good idea. We use libvirt to create NAT devices on Linux (by connecting to virbr0 interface by default).

As a workaround, you can edit the DHCP settings of that interface like this:

virsh net-destroy default
virsh net-edit default

Don't forget to restart it with virsh net-start default

@smart2128
Copy link

Is your feature request related to a problem? Please describe. I'd like the ability to simulate multiple Internet sources. This can be useful for testing multihoming, multiple sites, etc.

I often use this scenario in my labs and I decided to permanently add a couple of new libvirt NAT networks for ISP1 (192.168.123.0/24) and ISP2 (192.168.124.0/24)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants