1
22.1 Legacy Series / Public Ip-address to VLAN and vice versa
« on: July 30, 2022, 04:55:12 pm »
Hi,
I'm new to Opnsense, not new to general networking, but haven't dived deep into it until now
I'm the co-administrator of internet and networking in an apartment block with 23 apartments.
We've just gotten fiber installed and the ISP is delivering a block of IP-addresses xx.xx.xx.xx/27
We've set up a mini-PC with Opnsense to be the edgerouter, behind it we have an HP layer 2 VLAN capable switch (hp 2530-24g).
I would like to put every apartment on it's own VLAN, not capable to talk to any other VLAN.
Each apartment have their own consumer grade router, of which I have no control.
Every apartment should have their own external IP-address.
I would also like to apply traffic shaping to share the connection evenly.
How would you go about doing that with OpnSense and the VLAN capable switch?
Should I use 1:1 NAT? But how do you do public IP address <-> VLAN?
Should VLANs be all on OpnSense, all on the switch or should it be a combination?
Thanks in advance!
I'm new to Opnsense, not new to general networking, but haven't dived deep into it until now
I'm the co-administrator of internet and networking in an apartment block with 23 apartments.
We've just gotten fiber installed and the ISP is delivering a block of IP-addresses xx.xx.xx.xx/27
We've set up a mini-PC with Opnsense to be the edgerouter, behind it we have an HP layer 2 VLAN capable switch (hp 2530-24g).
I would like to put every apartment on it's own VLAN, not capable to talk to any other VLAN.
Each apartment have their own consumer grade router, of which I have no control.
Every apartment should have their own external IP-address.
I would also like to apply traffic shaping to share the connection evenly.
How would you go about doing that with OpnSense and the VLAN capable switch?
Should I use 1:1 NAT? But how do you do public IP address <-> VLAN?
Should VLANs be all on OpnSense, all on the switch or should it be a combination?
Thanks in advance!