requirement SDN

vesuvienne

Member
Jun 7, 2024
82
3
8
Hi teams !

Do SDN create bridge automatically ? can i use it for NAT bridge who's already existing ?
Ex: I want dhcp on my NAT bridge
creating my Subnets under VNETs should i put my NAT bridge IP
1717931420413.png
 
a vnet is a bridge.

as a vnet in a simple zone is internal only (not attached to a physical interface), you can reuse the same subnet present on another bridge.

But don't use same gateway/bridge ip than your other nat bridge, or it'll break the routing.
 
So if i create a VNets and Subnet with SNAT do proxmox create the iptables rules ? like i will normally do with iptables for a new NAT bridge?
Code:
auto vmbr1
iface vmbr1 inet static
        address 192.168.100.254/24
        bridge-ports none
        bridge-stp off
        bridge-fd 0

post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s 192.168.100.0/24 -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.100.0/24' -o vmbr0 -j MASQUERADE
post-up iptables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1
post-down iptables -t raw -D PREROUTING -i fwbr+ -j CT --zone 1

i'm a beginner with proxmox and i'm wondering what's the best practice to create network on single NIC behind a ISP router, i want two network (local network + private network for testing)
- OPNsense - bridge (vmbr1) - VLAN
or
- just add bridge NAT
 
Last edited:

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!