All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Proxmox VM no internet #kimsufi
Hello
I'm unable to use internet on my proxmox VM who is hosted on a kimsufi server.
Everything was working well, then I installed and configured fail2ban (on node and VM), all was working after many tests.
After a forced reboot, there is no more internet on my VM. I checked iptables rules (iptables -S) but there was no ban rules (on the node and on the VM).
First test was to disabled fail2ban with systemctl (systemctl disable fail2ban) then rebooting the node, but there was still the internet issue...
So actually I can ssh into the VM using the node as entry, then forwarded to the VM ip
I cannot ping a domain or even a IP on the VM.
Here is network interfaces of node
`auto lo
iface lo inet loopback
iface enp1s0 inet manual
iface enp2s0 inet manual
auto vmbr0
iface vmbr0 inet static
address ...
netmask 255.255.255.0
gateway ...
bridge-ports enp1s0
bridge-stp off
bridge-fd 0
auto vmbr1
iface vmbr1 inet static
address 10.0.0.1
netmask 255.255.255.0
bridge-ports vmbr0
bridge-stp off
bridge-fd 0
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 2222 -j DNAT --to 10.0.0.2:22
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 2222 -j DNAT --to 10.0.0.2:22
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 45000 -j DNAT --to 10.0.0.2:45000
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 45000 -j DNAT --to 10.0.0.2:45000
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 10501 -j DNAT --to 10.0.0.2:10501
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 10501 -j DNAT --to 10.0.0.2:10501
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 32400 -j DNAT --to 10.0.0.2:32400
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 32400 -j DNAT --to 10.0.0.2:32400`
network interfaces from VM
`# The loopback network interface
auto lo
iface lo inet loopback
The primary network interface
allow-hotplug ens18
iface ens18 inet static
address 10.0.0.2/24
gateway 10.0.0.1`
I would appreciate some help on that
Comments
http://lmgtfy.com/?q=proxmox+kimsufi
https://pve.proxmox.com/wiki/Network_Configuration#_masquerading_nat_with_tt_span_class_monospaced_iptables_span_tt
https://pve.proxmox.com/wiki/Network_Configuration
Have you created the virtual MAC within the KSurf IP manager?
Thanks for the explication; sorry I was sure its was something harder -_-
sysctl settings/iptables rules you entered during initial setup might not be permanent during reboot. hence you are most likely missing ipv4_forward and masquerade.
also bridge ports to vmbr0 is not needed. modify the nat bridge part before your port forwarding rules like so:
auto vmbr1
iface vmbr1 inet static
address 10.0.0.1
netmask 255.255.255.0
bridge-ports
vmbr0nonebridge-stp off
bridge-fd 0
Use the Proxmox template, using the Debian template on OVH results into issues when installing Proxmox afterwards.
I'm not sure but doesn't kimsufi also require a virtual mac address added to your VM like OVH and SYS?
edit: Sorry I see it was working before.