Hi,
I try to do the following that was perfectly working in openvz.
I have multiple /27 ip bound to a dedicated server, this server host a proxmox node.
I want each VM (container lxc) to have her own public ip.
My provider cannot handle more than 64 mac address per server, so I have to manage the redirect from within proxmox (which was done directly by openvz before by just adding :
File: /etc/vz/vz.conf : NEIGHBOUR_DEVS=detect par NEIGHBOUR_DEVS=eth0)
I tried by editing : /etc/ufw/before.rules
and adding :
# NAT table rules
*nat
REROUTING ACCEPT [0:0]
OSTROUTING ACCEPT [0:0]
#YYY.XXX.62.0/24
-A PREROUTING -o vmbr0 -d YYY.XXX.62.0/24 -j DNAT --to-destination 192.168.62.0/24
-A POSTROUTING -o vmbr1 -s 192.168.62.0/24 -j SNAT --to-destination YYY.XXX.62.0/24
# don't delete the 'COMMIT' line or these rules won't be processed
COMMIT
or by editing the /etc/network/interface and manually adding the /27 class
but none of this worked ....
the old way was GREAT, no need to add any lines anywhere, I didn't need to edit a file each time I added a class of ip .... I am missing openvz ...
please HELP ...
Stéphane
I try to do the following that was perfectly working in openvz.
I have multiple /27 ip bound to a dedicated server, this server host a proxmox node.
I want each VM (container lxc) to have her own public ip.
My provider cannot handle more than 64 mac address per server, so I have to manage the redirect from within proxmox (which was done directly by openvz before by just adding :
File: /etc/vz/vz.conf : NEIGHBOUR_DEVS=detect par NEIGHBOUR_DEVS=eth0)
I tried by editing : /etc/ufw/before.rules
and adding :
# NAT table rules
*nat
REROUTING ACCEPT [0:0]
OSTROUTING ACCEPT [0:0]
#YYY.XXX.62.0/24
-A PREROUTING -o vmbr0 -d YYY.XXX.62.0/24 -j DNAT --to-destination 192.168.62.0/24
-A POSTROUTING -o vmbr1 -s 192.168.62.0/24 -j SNAT --to-destination YYY.XXX.62.0/24
# don't delete the 'COMMIT' line or these rules won't be processed
COMMIT
or by editing the /etc/network/interface and manually adding the /27 class
but none of this worked ....
the old way was GREAT, no need to add any lines anywhere, I didn't need to edit a file each time I added a class of ip .... I am missing openvz ...
please HELP ...
Stéphane