質問編集履歴

3

不要な情報(掲題と無関係・解決済)を削除

2016/09/28 05:39

投稿

poyopi
poyopi

スコア113

test CHANGED
File without changes
test CHANGED
@@ -133,15 +133,3 @@
133
133
  pkts bytes target prot opt in out source destination
134
134
 
135
135
  ```
136
-
137
-
138
-
139
- →SSHログインができなかったため(```Permission denied (publickey,gssapi-keyex,gssapi-with-mic).```)/var/log/secureを追いましたが、
140
-
141
- ```ここに言語を入力
142
-
143
- Sep 28 13:41:12 ホスト名 sshd[32171]: Connection closed by IPアドレス
144
-
145
- ```
146
-
147
- 以外の情報がありませんでした(該当ユーザの公開鍵設置などは[こちら](http://qiita.com/youcune/items/2f427979403771f2e03a)の記事の通り)。

2

補足2

2016/09/28 05:39

投稿

poyopi
poyopi

スコア113

test CHANGED
File without changes
test CHANGED
@@ -87,3 +87,61 @@
87
87
  - curlの10秒指定は根拠があるわけではなく、とりあえずの数字として入れていました。指定なしでteratailへcurlしましたが```curl: (7) couldn't connect to host```です→-xオプションでproxyを設定すると```curl: (5) Couldn't resolve proxy```
88
88
 
89
89
  - pingは通ります
90
+
91
+
92
+
93
+
94
+
95
+ ↓SSHポートは意図的に変えています。sshd_configで変更->sshd再起動済。
96
+
97
+ ```ここに言語を入力
98
+
99
+ # iptables -n -v -L
100
+
101
+ Chain INPUT (policy DROP 2645 packets, 136K bytes)
102
+
103
+ pkts bytes target prot opt in out source destination
104
+
105
+
106
+
107
+ 0 0 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
108
+
109
+
110
+
111
+ 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:10022
112
+
113
+ 887 48377 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:20
114
+
115
+ 948 48251 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:21
116
+
117
+ 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpts:60000:60010
118
+
119
+ 20 920 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
120
+
121
+ 10 440 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:443
122
+
123
+
124
+
125
+ Chain FORWARD (policy DROP 0 packets, 0 bytes)
126
+
127
+ pkts bytes target prot opt in out source destination
128
+
129
+
130
+
131
+ Chain OUTPUT (policy ACCEPT 2503 packets, 172K bytes)
132
+
133
+ pkts bytes target prot opt in out source destination
134
+
135
+ ```
136
+
137
+
138
+
139
+ →SSHログインができなかったため(```Permission denied (publickey,gssapi-keyex,gssapi-with-mic).```)/var/log/secureを追いましたが、
140
+
141
+ ```ここに言語を入力
142
+
143
+ Sep 28 13:41:12 ホスト名 sshd[32171]: Connection closed by IPアドレス
144
+
145
+ ```
146
+
147
+ 以外の情報がありませんでした(該当ユーザの公開鍵設置などは[こちら](http://qiita.com/youcune/items/2f427979403771f2e03a)の記事の通り)。

1

質問修正への対応

2016/09/28 04:52

投稿

poyopi
poyopi

スコア113

test CHANGED
@@ -1 +1 @@
1
- SSL(https)からのDLに失敗する(Connection timed out):wget, curl
1
+ wget, curlに失敗する(Connection timed out)
test CHANGED
@@ -44,8 +44,46 @@
44
44
 
45
45
 
46
46
 
47
- ```no-check-certificate```オプションを付与しても特に変わりありませんでした。
47
+ no-check-certificateオプションを付与しても特に変わりありませんでした。
48
48
 
49
49
  必要な設定などがわからないため、ご助言頂けますでしょうか。
50
50
 
51
51
  環境はCentOS6.8です。
52
+
53
+
54
+
55
+ ---
56
+
57
+ [補足]
58
+
59
+ SSLでもpythonのモジュールのwgetは可能でした:
60
+
61
+ ```
62
+
63
+ # wget https://www.python.org/ftp/python/3.5.0/Python-3.5.0.tgz
64
+
65
+ --2016-09-27 10:12:11-- https://www.python.org/ftp/python/3.5.0/Python-3.5.0.tgz
66
+
67
+ Resolving www.python.org... 2a04:4e42:11::223, 151.101.72.223
68
+
69
+ Connecting to www.python.org|2a04:4e42:11::223|:443... connected.
70
+
71
+ HTTP request sent, awaiting response... 200 OK
72
+
73
+ Length: 20053428 (19M) [application/octet-stream]
74
+
75
+ Saving to: `Python-3.5.0.tgz'
76
+
77
+ 100%[======================================>] 20,053,428 10.8M/s in 1.8s
78
+
79
+ 2016-09-27 10:12:26 (10.8 MB/s) - `Python-3.5.0.tgz' saved [20053428/20053428]
80
+
81
+ ```
82
+
83
+ - HTTPでもwgetがタイムアウトになります(試したもの:日経電子版、wired.jp、スラドなど)→SSLに限らなかったため掲題修正しました
84
+
85
+ - teratail(SSL)へのwgetもタイムアウトになります。
86
+
87
+ - curlの10秒指定は根拠があるわけではなく、とりあえずの数字として入れていました。指定なしでteratailへcurlしましたが```curl: (7) couldn't connect to host```です→-xオプションでproxyを設定すると```curl: (5) Couldn't resolve proxy```
88
+
89
+ - pingは通ります