Proxmox4 enable ICMP

PaoloVIP

Active Member
Oct 8, 2015
27
0
41
This post was born from a my incorrect evaluation. See Proxmox4 and Knockd

How to enable ping to a specific vmbr ?

This is my /etc/network/interfaces

Code:
auto lo
iface lo inet loopback

auto vmbr0
iface vmbr0 inet static
    address 192.168.1.10
    netmask 255.255.255.0
    gateway 192.168.1.254
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0

auto vmbr1
iface vmbr1 inet static
    address xxx.11.2.1
    netmask 255.255.255.248
    bridge_ports eth1
    bridge_stp off
    bridge_fd 0

auto vmbr2
iface vmbr2 inet static
    address 192.168.0.254
    netmask 255.255.255.0
    bridge_ports eth2
    bridge_stp off
    bridge_fd 0
    post-up iptables -t nat -A POSTROUTING -o vmbr0 -j MASQUERADE
    post-up iptables -A FORWARD -i vmbr0 -o vmbr2 -m state --state RELATED,ESTABLISHED -j ACCEPT
    post-up iptables -A FORWARD -i vmbr2 -o vmbr0 -j ACCEPT

And this is my /etc/pve/firewall/cluster.fw

Code:
[OPTIONS]

enable: 1

[RULES]

IN ACCEPT -i vmbr1 -dest xxx.11.2.1 -p icmp

But seems doesn't work. Still ICMP in drop state, where I'm wrong, please?

Code:
iptables -L |grep icmp
ACCEPT     icmp --  anywhere             anywhere             icmp fragmentation-needed
ACCEPT     icmp --  anywhere             anywhere             icmp time-exceeded
RETURN     icmp --  anywhere             host1-2-static.11-xxx-x.xxx.xxx.xx
ACCEPT     icmp --  anywhere             anywhere             icmp fragmentation-needed
ACCEPT     icmp --  anywhere             anywhere             icmp time-exceeded
[B]DROP       icmp --  anywhere             anywhere  [/B]          
REJECT     udp  --  anywhere             anywhere             reject-with icmp-port-unreachable
REJECT     icmp --  anywhere             anywhere             reject-with icmp-host-unreachable
REJECT     all  --  anywhere             anywhere             reject-with icmp-host-prohibited
 
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!