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