Guest User

Untitled

a guest
Aug 7th, 2018
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.96 KB | None | 0 0
  1. global_defs {
  2. notification_email {
  3. dev@null.com
  4. }
  5. notification_email_from lb1@mydomain.com
  6. smtp_server localhost
  7. smtp_connect_timeout 30
  8. }
  9.  
  10. vrrp_instance VI_1 {
  11. state MASTER
  12. interface eth0
  13. virtual_router_id 101
  14. priority 101
  15. advert_int 1
  16. authentication {
  17. auth_type PASS
  18. auth_pass 1111
  19. }
  20. virtual_ipaddress {
  21. 192.168.0.12
  22. }
  23. }
  24.  
  25. global_defs {
  26. notification_email {
  27. dev@null.com
  28. }
  29. notification_email_from lb2@mydomain.com
  30. smtp_server localhost
  31. smtp_connect_timeout 30
  32. }
  33.  
  34. vrrp_instance VI_1 {
  35. state MASTER
  36. interface eth0
  37. virtual_router_id 101
  38. priority 100
  39. advert_int 1
  40. authentication {
  41. auth_type PASS
  42. auth_pass 1111
  43. }
  44. virtual_ipaddress {
  45. 192.168.0.12
  46. }
  47. }
  48.  
  49. global_defs {
  50. notification_email {
  51. dev@null.com
  52. }
  53. notification_email_from lb1@mydomain.com
  54. smtp_server localhost
  55. smtp_connect_timeout 30
  56. }
  57.  
  58. vrrp_instance VI_1 {
  59. state MASTER
  60. interface eth0
  61. virtual_router_id 101
  62. priority 101
  63. advert_int 1
  64. authentication {
  65. auth_type PASS
  66. auth_pass 1111
  67. }
  68. virtual_ipaddress {
  69. 192.168.0.12
  70. }
  71. }
  72.  
  73. real_server 192.168.0.10 22 {
  74. weight 1
  75. TCP_CHECK {
  76. connect_timeout 3
  77. connect_port 22
  78. }
  79. }
  80.  
  81. real_server 192.168.0.11 22 {
  82. weight 1
  83. TCP_CHECK {
  84. connect_timeout 3
  85. connect_port 22
  86. }
  87. }
  88.  
  89. global_defs {
  90. notification_email {
  91. dev@null.com
  92. }
  93. notification_email_from lb2@mydomain.com
  94. smtp_server localhost
  95. smtp_connect_timeout 30
  96. }
  97.  
  98. vrrp_instance VI_1 {
  99. state MASTER
  100. interface eth0
  101. virtual_router_id 101
  102. priority 100
  103. advert_int 1
  104. authentication {
  105. auth_type PASS
  106. auth_pass 1111
  107. }
  108. virtual_ipaddress {
  109. 192.168.0.12
  110. }
  111. }
  112.  
  113. real_server 192.168.0.10 22 {
  114. weight 1
  115. TCP_CHECK {
  116. connect_timeout 3
  117. connect_port 22
  118. }
  119. }
  120.  
  121. real_server 192.168.0.11 22 {
  122. weight 1
  123. TCP_CHECK {
  124. connect_timeout 3
  125. connect_port 22
  126. }
  127. }
  128.  
  129. global_defs {
  130. notification_email {
  131. dev@null.com
  132. }
  133. notification_email_from lb1@mydomain.com
  134. smtp_server localhost
  135. smtp_connect_timeout 30
  136. }
  137.  
  138. vrrp_instance VI_1 {
  139. state MASTER
  140. interface eth0
  141. virtual_router_id 101
  142. priority 101
  143. advert_int 1
  144. authentication {
  145. auth_type PASS
  146. auth_pass 1111
  147. }
  148. virtual_ipaddress {
  149. 192.168.0.12
  150. }
  151.  
  152. }
  153.  
  154. virtual_server 192.168.1.11 22 {
  155. delay_loop 6
  156. lb_algo rr
  157. lb_kind NAT
  158. nat_mask 255.255.255.0
  159.  
  160. protocol TCP
  161.  
  162. real_server 192.168.0.10 22 {
  163. weight 1
  164. TCP_CHECK {
  165. connect_timeout 3
  166. connect_port 22
  167. }
  168. }
  169.  
  170. real_server 192.168.0.11 22 {
  171. weight 1
  172. TCP_CHECK {
  173. connect_timeout 3
  174. connect_port 22
  175. }
  176. }
  177. }
  178.  
  179. global_defs {
  180. notification_email {
  181. dev@null.com
  182. }
  183. notification_email_from lb2@mydomain.com
  184. smtp_server localhost
  185. smtp_connect_timeout 30
  186. }
  187.  
  188. vrrp_instance VI_1 {
  189. state MASTER
  190. interface eth0
  191. virtual_router_id 101
  192. priority 100
  193. advert_int 1
  194. authentication {
  195. auth_type PASS
  196. auth_pass 1111
  197. }
  198. virtual_ipaddress {
  199. 192.168.0.12
  200. }
  201.  
  202. }
  203.  
  204. virtual_server 192.168.1.11 22 {
  205. delay_loop 6
  206. lb_algo rr
  207. lb_kind NAT
  208. nat_mask 255.255.255.0
  209.  
  210. protocol TCP
  211.  
  212. real_server 192.168.0.10 22 {
  213. weight 1
  214. TCP_CHECK {
  215. connect_timeout 3
  216. connect_port 22
  217. }
  218. }
  219.  
  220. real_server 192.168.0.11 22 {
  221. weight 1
  222. TCP_CHECK {
  223. connect_timeout 3
  224. connect_port 22
  225. }
  226. }
  227. }
  228.  
  229. bastion01 Keepalived_healthcheckers[11613]: Check on service [192.168.0.10]:22 failed after 1 retry.
  230. bastion01 Keepalived_healthcheckers[11613]: Removing service [192.168.0.10]:22 from VS [192.168.1.11]:22
Add Comment
Please, Sign In to add comment