質問編集履歴

2

修正依頼の対応

2017/01/13 03:32

投稿

momosan
momosan

スコア176

test CHANGED
File without changes
test CHANGED
@@ -109,3 +109,49 @@
109
109
  UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
110
110
 
111
111
  ```
112
+
113
+
114
+
115
+ ○iptablesの設定(すみませんいろいろ設定してます)
116
+
117
+ ```
118
+
119
+ $ vim /etc/sysconfig/iptables
120
+
121
+ # Generated by iptables-save v1.4.7 on Wed Nov 16 14:24:13 2016
122
+
123
+ *filter
124
+
125
+ :INPUT ACCEPT [0:0]
126
+
127
+ :FORWARD ACCEPT [0:0]
128
+
129
+ :OUTPUT ACCEPT [31:3364]
130
+
131
+ -A INPUT -p tcp -m tcp --dport 6379 --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
132
+
133
+ -A INPUT -p tcp -m tcp --dport 16379 --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
134
+
135
+ -A INPUT -p tcp -m tcp --dport 26379 --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
136
+
137
+ -A INPUT -p tcp -m tcp --dport 26380 --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
138
+
139
+ -A INPUT -p tcp -m tcp --dport 26381 --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
140
+
141
+ -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
142
+
143
+ -A INPUT -p icmp -j ACCEPT
144
+
145
+ -A INPUT -i lo -j ACCEPT
146
+
147
+ -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
148
+
149
+ -A INPUT -j REJECT --reject-with icmp-host-prohibited
150
+
151
+ -A FORWARD -j REJECT --reject-with icmp-host-prohibited
152
+
153
+ COMMIT
154
+
155
+ # Completed on Wed Nov 16 14:24:13 2016
156
+
157
+ ```

1

修正依頼の対応

2017/01/13 03:32

投稿

momosan
momosan

スコア176

test CHANGED
File without changes
test CHANGED
@@ -87,3 +87,25 @@
87
87
  どうかおたすけください…
88
88
 
89
89
  ご回答よろしくお願い致しますmm
90
+
91
+
92
+
93
+ ###追記事項
94
+
95
+ VIPの設定した際のコマンドです(ifconfig一部伏せてます)
96
+
97
+ ```
98
+
99
+ $ sudo ip addr add 192.168.56.100/24 broadcast 192.168.56.255 dev eth0 label eth0:0
100
+
101
+
102
+
103
+ $ ifconfig
104
+
105
+ eth0:0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
106
+
107
+ inet addr:192.168.56.100 Bcast:192.168.56.255 Mask:255.255.255.0
108
+
109
+ UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
110
+
111
+ ```