Problem with LXC network interfaces containing `@` character

guff666

Active Member
Nov 6, 2021
37
1
28
73
I use `debops` (https://debops.org) to manage Debian-based VMs and LXCs. Generally I have no problems, but I've just hit one that I'm hoping somebody might be able to help me with.

debops uses `ferm` to manage the firewall. I need to add some rules to the `FORWARD` chain that specify the interface and outerface. Unfortunately, Proxmox LXCs have complex interface names of the form `enp0s25@if243` and ferm barfs on the `@` character in the name.

Is it possible to rename the interface name to avoid the `@` character?
 
The real interface name is enp0s25 and that's what should be used in the firewall rules - the @ only indicates that it is a sub-interface of if243
 
  • Like
Reactions: guff666