Guest User

Untitled

a guest
Jul 11th, 2019
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.50 KB | None | 0 0
  1. HOST CONFIGURATION
  2.  
  3. /etc/network/interfaces
  4.  
  5. auto lo
  6. iface lo inet loopback
  7.  
  8. auto eth0
  9. iface eth0 inet manual
  10.  
  11. auto eth0.2
  12. iface eth0.2 inet manual
  13.  
  14. auto eth0.3
  15. iface eth0.3 inet manual
  16.  
  17. auto eth0.999
  18. iface eth0.999 inet manual
  19.  
  20. auto bridge-0-1
  21. iface bridge-0-1 inet static
  22. address 192.168.151.248
  23. netmask 255.255.255.0
  24. gateway 192.168.151.254
  25. bridge_ports eth0
  26. bridge_stp off
  27. bridge_fd 0
  28.  
  29. auto bridge-0-2
  30. iface bridge-0-2 inet manual
  31. bridge_ports eth0.2
  32. bridge_stp off
  33. bridge_fd 0
  34.  
  35. auto bridge-0-3
  36. iface bridge-0-3 inet manual
  37. bridge_ports eth0.3
  38. bridge_stp off
  39. bridge_fd 0
  40.  
  41. auto bridge-0-999
  42. iface bridge-0-999 inet manual
  43. bridge_ports eth0.999
  44. bridge_stp off
  45. bridge_fd 0
  46.  
  47. # ---------------------------------------------------
  48.  
  49. /etc/ssh/sshd_config
  50.  
  51. Port 22
  52. Protocol 2
  53. HostKey /etc/ssh/ssh_host_rsa_key
  54. UsePrivilegeSeparation yes
  55. SyslogFacility AUTH
  56. LogLevel INFO
  57. LoginGraceTime 120
  58. PermitRootLogin yes
  59. PasswordAuthentication yes
  60. PermitEmptyPasswords no
  61. StrictModes yes
  62. PubkeyAuthentication yes
  63. IgnoreRhosts yes
  64. HostbasedAuthentication no
  65. ChallengeResponseAuthentication no
  66. X11Forwarding yes
  67. X11DisplayOffset 10
  68. PrintMotd no
  69. PrintLastLog yes
  70. TCPKeepAlive yes
  71. AcceptEnv LANG LC_*
  72. Subsystem sftp /usr/lib/openssh/sftp-server
  73. UseDNS no
  74. # UsePAM yes
  75. UsePAM no
  76.  
  77.  
  78. GUEST CONFIGURATION
  79.  
  80. <domain type='kvm'>
  81. <name>intranet</name>
  82. <uuid>f19fd0f2-3a49-b1e1-2d7d-64342663f8ba</uuid>
  83. <memory unit='KiB'>2097152</memory>
  84. <currentMemory unit='KiB'>2097152</currentMemory>
  85. <vcpu placement='static'>1</vcpu>
  86. <os>
  87. <type arch='x86_64' machine='pc-0.12'>hvm</type>
  88. <boot dev='hd'/>
  89. <bootmenu enable='no'/>
  90. </os>
  91. <features>
  92. <acpi/>
  93. <apic/>
  94. <pae/>
  95. </features>
  96. <clock offset='utc'/>
  97. <on_poweroff>destroy</on_poweroff>
  98. <on_reboot>restart</on_reboot>
  99. <on_crash>restart</on_crash>
  100. <devices>
  101. <emulator>/usr/bin/kvm</emulator>
  102. <disk type='file' device='disk'>
  103. <driver name='qemu' type='qcow2' cache='none' io='native'/>
  104. <source file='/home/vm/intranet.qcow2'/>
  105. <target dev='vda' bus='virtio'/>
  106. <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
  107. </disk>
  108. <disk type='file' device='cdrom'>
  109. <driver name='qemu' type='raw'/>
  110. <target dev='hdc' bus='ide'/>
  111. <readonly/>
  112. <address type='drive' controller='0' bus='1' target='0' unit='0'/>
  113. </disk>
  114. <controller type='ide' index='0'>
  115. <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
  116. </controller>
  117. <controller type='usb' index='0' model='piix3-uhci'>
  118. <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
  119. </controller>
  120. <controller type='pci' index='0' model='pci-root'/>
  121. <interface type='bridge'>
  122. <mac address='00:16:36:4a:a4:81'/>
  123. <source bridge='bridge-0-1'/>
  124. <model type='virtio'/>
  125. <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
  126. </interface>
  127. <interface type='bridge'>
  128. <mac address='00:16:36:3b:d4:01'/>
  129. <source bridge='bridge-0-2'/>
  130. <model type='virtio'/>
  131. <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
  132. </interface>
  133. <interface type='bridge'>
  134. <mac address='00:16:36:51:de:e9'/>
  135. <source bridge='bridge-0-3'/>
  136. <model type='virtio'/>
  137. <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
  138. </interface>
  139. <serial type='pty'>
  140. <target port='0'/>
  141. </serial>
  142. <console type='pty'>
  143. <target type='serial' port='0'/>
  144. </console>
  145. <input type='tablet' bus='usb'>
  146. <address type='usb' bus='0' port='1'/>
  147. </input>
  148. <input type='mouse' bus='ps2'/>
  149. <input type='keyboard' bus='ps2'/>
  150. <graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0' keymap='fr'>
  151. <listen type='address' address='0.0.0.0'/>
  152. </graphics>
  153. <video>
  154. <model type='cirrus' vram='16384' heads='1' primary='yes'/>
  155. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
  156. </video>
  157. <memballoon model='virtio'>
  158. <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
  159. </memballoon>
  160. </devices>
  161. </domain>
  162.  
  163. # ---------------------------------------------------
  164.  
  165. /etc/network/interfaces
  166.  
  167. auto lo
  168. iface lo inet loopback
  169.  
  170. auto eth0
  171. iface eth0 inet static
  172. address 192.168.151.242
  173. netmask 255.255.255.0
  174. network 192.168.151.0
  175. broadcast 192.168.151.255
  176. gateway 192.168.151.254
  177.  
  178. auto eth1
  179. iface eth1 inet static
  180. address 192.168.39.242
  181. netmask 255.255.255.0
  182. network 192.168.39.0
  183. broadcast 192.168.39.255
  184.  
  185. auto eth2
  186. iface eth2 inet static
  187. address 192.168.152.242
  188. netmask 255.255.255.0
  189. network 192.168.152.0
  190. broadcast 192.168.152.255
  191.  
  192. # ---------------------------------------------------
  193.  
  194. Port 22
  195. Protocol 2
  196. HostKey /etc/ssh/ssh_host_rsa_key
  197. UsePrivilegeSeparation yes
  198. SyslogFacility AUTH
  199. LogLevel INFO
  200. LoginGraceTime 120
  201. PermitRootLogin yes
  202. PasswordAuthentication yes
  203. PermitEmptyPasswords no
  204. StrictModes yes
  205. PubkeyAuthentication yes
  206. IgnoreRhosts yes
  207. HostbasedAuthentication no
  208. ChallengeResponseAuthentication no
  209. X11Forwarding yes
  210. X11DisplayOffset 10
  211. PrintMotd no
  212. PrintLastLog yes
  213. TCPKeepAlive yes
  214. AcceptEnv LANG LC_*
  215. Subsystem sftp /usr/lib/openssh/sftp-server
  216. UseDNS no
  217. # UsePAM yes
  218. UsePAM no
Advertisement
Add Comment
Please, Sign In to add comment