Exit network 192.168.2.1 for 10.10.x.x

Dhealer

New Member
Aug 13, 2023
2
0
1
Hi,

I want a Truenas server, but I want to address it 10.10.x.x. It doesn't work and I don't know what to add in /etc/network/interfaces as routing. Do you have any idea how to route it from the 192.168.2.1 network to 10.10.x.x?

thanks
 
Hi, what you want can be achieved by adding an additional VM as a router to route packets from one subnet to another. I do this in many of my lab setups for isolation and testing purposes. Something like the below might help

1 - ProxMox Server - 192.168.2.1 (LAN1) 10.10.0.200 (LAN2)
2 - TrueNAS vnic-1 10.10.0.100 (LAN2)
3 - pfSense/OPNsense
vnic-1 - 192.xxx.xx.xx (WAN)
vnic-2 192.168.2.xx (LAN1)
vnic-3 10.10.0.1 (LAN2)

Router Firewall Rules:
WAN (Can be enabled or disabled and connected to the internal LAN that can access external resources)
LAN 1 allow source network (LAN1) ports required to destination (LAN2)
LAN 2 allow source network (LAN2) ports required to destination (LAN1)

If your Proxmox server has a secondary Ethernet port you can create a bridge and from there create additional networks for use or VLANs. Have a look at this tutorial that I just found for a quick overview. https://www.youtube.com/watch?v=ljq6wlzn4qo

Best of luck!
 
Wow, you confirm what I've just read and that it works. I need to use a firewall basically. But you summarize even better!

Thanks
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!