質問編集履歴
2
修正依頼の対応
title
CHANGED
File without changes
|
body
CHANGED
@@ -53,4 +53,27 @@
|
|
53
53
|
eth0:0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
|
54
54
|
inet addr:192.168.56.100 Bcast:192.168.56.255 Mask:255.255.255.0
|
55
55
|
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
|
56
|
+
```
|
57
|
+
|
58
|
+
○iptablesの設定(すみませんいろいろ設定してます)
|
59
|
+
```
|
60
|
+
$ vim /etc/sysconfig/iptables
|
61
|
+
# Generated by iptables-save v1.4.7 on Wed Nov 16 14:24:13 2016
|
62
|
+
*filter
|
63
|
+
:INPUT ACCEPT [0:0]
|
64
|
+
:FORWARD ACCEPT [0:0]
|
65
|
+
:OUTPUT ACCEPT [31:3364]
|
66
|
+
-A INPUT -p tcp -m tcp --dport 6379 --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
|
67
|
+
-A INPUT -p tcp -m tcp --dport 16379 --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
|
68
|
+
-A INPUT -p tcp -m tcp --dport 26379 --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
|
69
|
+
-A INPUT -p tcp -m tcp --dport 26380 --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
|
70
|
+
-A INPUT -p tcp -m tcp --dport 26381 --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
|
71
|
+
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
|
72
|
+
-A INPUT -p icmp -j ACCEPT
|
73
|
+
-A INPUT -i lo -j ACCEPT
|
74
|
+
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
|
75
|
+
-A INPUT -j REJECT --reject-with icmp-host-prohibited
|
76
|
+
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
|
77
|
+
COMMIT
|
78
|
+
# Completed on Wed Nov 16 14:24:13 2016
|
56
79
|
```
|
1
修正依頼の対応
title
CHANGED
File without changes
|
body
CHANGED
@@ -42,4 +42,15 @@
|
|
42
42
|
```
|
43
43
|
|
44
44
|
どうかおたすけください…
|
45
|
-
ご回答よろしくお願い致しますmm
|
45
|
+
ご回答よろしくお願い致しますmm
|
46
|
+
|
47
|
+
###追記事項
|
48
|
+
VIPの設定した際のコマンドです(ifconfig一部伏せてます)
|
49
|
+
```
|
50
|
+
$ sudo ip addr add 192.168.56.100/24 broadcast 192.168.56.255 dev eth0 label eth0:0
|
51
|
+
|
52
|
+
$ ifconfig
|
53
|
+
eth0:0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
|
54
|
+
inet addr:192.168.56.100 Bcast:192.168.56.255 Mask:255.255.255.0
|
55
|
+
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
|
56
|
+
```
|