]> git.proxmox.com Git - pve-firewall.git/blame_incremental - example/100.fw
ifupdown.sh: correctly use ifup instead of ifconfig
[pve-firewall.git] / example / 100.fw
... / ...
CommitLineData
1# Example VM firewall configuration
2
3[OPTIONS] # VM specific firewall options
4
5# disable/enable the whole thing
6enable: 1
7
8# disable/enable MAC address filter
9macfilter: 0
10
11# default policy
12policy_in: DROP
13policy_out: REJECT
14
15# log dropped incoming connection
16log_level_in: info
17
18# disable log for outgoing connections
19log_level_out: nolog
20
21# filter SMURFS
22nosmurfs: 1
23
24# filter illegal combinations of TCP flags
25tcpflags: 1
26
27# enable DHCP
28dhcp: 1
29
30
31[RULES]
32
33#TYPE ACTION IFACE SOURCE DEST PROTO D-PORT S-PORT
34
35IN SSH(ACCEPT) net0
36IN SSH(ACCEPT) net0 # a comment
37IN SSH(ACCEPT) net0 192.168.2.192 # only allow SSH from 192.168.2.192
38|IN SSH(ACCEPT) net0 # disabled rule
39
40# add a security group
41GROUP group1 net0
42
43OUT DNS(ACCEPT) net0
44OUT Ping(ACCEPT) net0
45OUT SSH(ACCEPT)
46
47
48