iptables-restore on boot code

luison

Renowned Member
Feb 22, 2010
106
4
83
Spain
alsur.es
Hi. Our office server after latest reboot with kernel updates failed to boot network the first time. After some tweaking and an additional restart everything seems fine now but we've just noticed that the iptables file was not restored on boot and our firewall has been therefore down for a few days.

I am not sure if the issue was there before but the way we load the iptables file is like the one bellow on the network config... (etc/network/interfaces).

Is this correct?
Should it be done another way or on the vmbr0 interface instead of the eth0?

Many thanks.
Jose Luis


Code:
# network interface settings
auto lo
iface lo inet loopback

iface eth0 inet manual
        post-up iptables-restore < /etc/iptables.up.rules

iface eth1 inet manual

iface eth2 inet manual

auto vmbr0
iface vmbr0 inet static
        address  192.168.0.20
        netmask  255.255.255.0
        gateway  192.168.0.1
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0

iface vmbr1 inet manual
        bridge_ports none
        bridge_stp off
        bridge_fd 0
 

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!