1 # Example VM firewall configuration
3 # VM specific firewall options
6 # disable/enable the whole thing
9 # disable/enable MAC address filter
16 # log dropped incoming connection
19 # disable log for outgoing connections
28 # specify nfqueue queues (optionnal)
35 #TYPE ACTION [OPTIONS]
40 # -dport <DESTINATION_PORT>
41 # -sport <SOURCE_PORT>
43 IN SSH(ACCEPT) -i net0
44 IN SSH(ACCEPT) -i net0 # a comment
45 IN SSH(ACCEPT) -i net0 -source 192.168.2.192 # only allow SSH from 192.168.2.192
46 IN SSH(ACCEPT) -i net0 -source 10.0.0.1-10.0.0.10 #accept SSH for ip in range 10.0.0.1 to 10.0.0.10
47 IN SSH(ACCEPT) -i net0 -source 10.0.0.1,10.0.0.2,10.0.0.3 #accept ssh for 10.0.0.1 or 10.0.0.2 or 10.0.0.3
48 IN SSH(ACCEPT) -i net0 -source +mynetgroup #accept ssh for netgroup mynetgroup
49 IN SSH(ACCEPT) -i net0 -source myserveralias #accept ssh for alias myserveralias
51 |IN SSH(ACCEPT) -i net0 # disabled rule
53 # add a security group
56 OUT DNS(ACCEPT) -i net0
57 OUT Ping(ACCEPT) -i net0