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