File tree Expand file tree Collapse file tree 5 files changed +871
-0
lines changed
conf/saltstack/centos_rhel/salt Expand file tree Collapse file tree 5 files changed +871
-0
lines changed Original file line number Diff line number Diff line change
1
+ qemu-kvm :
2
+ pkg.installed
3
+
4
+ libvirt:
5
+ pkg.installed
6
+
7
+ /etc/libvirt/libvirtd.conf :
8
+ file.managed :
9
+ - user: root
10
+ - group: root
11
+ - mode: 644
12
+ - source: salt://libvirt/libvirtd.conf
13
+ - require:
14
+ - pkg: libvirt
15
+
16
+ /etc/libvirt/qemu.conf :
17
+ file.managed :
18
+ - user: root
19
+ - group: root
20
+ - mode: 644
21
+ - source: salt://libvirt/qemu.conf
22
+ - require:
23
+ - pkg: qemu-kvm
24
+
25
+ /etc/sysconfig/iptables :
26
+ file.managed :
27
+ - user: root
28
+ - group: root
29
+ - mode: 644
30
+ - source: salt://libvirt/iptables
31
+
32
+ iptables:
33
+ service:
34
+ - dead
35
+ - running
36
+
37
+ libvirtd:
38
+ service:
39
+ - running
40
+ - enable: True
41
+
42
+ ksm:
43
+ service:
44
+ - running
45
+ - enable: True
46
+
47
+ ksmtuned:
48
+ service:
49
+ - running
50
+ - enable: True
Original file line number Diff line number Diff line change
1
+ *nat
2
+ :PREROUTING ACCEPT [0:0]
3
+ :POSTROUTING ACCEPT [0:0]
4
+ :OUTPUT ACCEPT [0:0]
5
+ COMMIT
6
+ *filter
7
+ :INPUT ACCEPT [0:0]
8
+ :FORWARD ACCEPT [0:0]
9
+ :OUTPUT ACCEPT [0:0]
10
+ -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
11
+ -A INPUT -p icmp -j ACCEPT
12
+ -A INPUT -i lo -j ACCEPT
13
+ -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
14
+ -A INPUT -m state --state NEW -m tcp -p tcp --dport 5900:5930 -j ACCEPT
15
+ #-A INPUT -m state --state NEW -m tcp -p tcp --dport 6800 -j ACCEPT
16
+ -A INPUT -m state --state NEW -m tcp -p tcp --dport 16509 -j ACCEPT
17
+ -A INPUT -j REJECT --reject-with icmp-host-prohibited
18
+ -A FORWARD -i br0 -o br0 -j ACCEPT
19
+ -A FORWARD -j REJECT --reject-with icmp-host-prohibited
20
+ COMMIT
You can’t perform that action at this time.
0 commit comments