5
0
mirror of git://git.proxmox.com/git/pve-firewall.git synced 2025-01-10 05:18:03 +03:00
pve-firewall/README

38 lines
797 B
Plaintext
Raw Normal View History

2012-08-10 13:52:46 +04:00
Experimental software, only used for testing.
2012-08-10 14:14:33 +04:00
Note: you need to change values in /etc/sysctl.d/pve.conf to:
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-arptables = 1
net.bridge.bridge-nf-filter-vlan-tagged = 1
and reboot after that change.
2012-08-10 13:52:46 +04:00
VM firewall rules are read from /etc/pve/firewall/<VMID>.fw
You can find examples in the example/ dir
2012-08-10 14:14:33 +04:00
Note: All commands overwrites /etc/shorewall/, so don't use if you have
and existing shorewall config you want to keep.
2012-08-10 13:52:46 +04:00
Use the following command to generate shorewall configuration:
./pvefw compile
2012-08-10 14:14:33 +04:00
To compile and start the firewall:
./pvefw start
To compile and restart the firewall:
./pvefw restart
To stop the firewall:
./pvefw stop
To clear all iptable rules:
2012-08-10 13:52:46 +04:00
2012-08-10 14:14:33 +04:00
./pvefw clear