- FutureNet製品活用ガイド
- FutureNet NXR,VXRシリーズ
- REST-API編
FutureNet
NXR,VXRシリーズ
REST-API編
8. 各種サービス設定
8-28. リバースSSHトンネル設定(reverse-ssh)
処理概要
リバースSSHトンネル設定に関する処理を実行します。
URIおよびメソッド
機能 | Version | URI | メソッド | |||
POST | PUT | GET | DELETE | |||
Reverse SSH Tunnel |
v2 | /api/v2/reverse-ssh | - | - | - | - |
/api/v2/reverse-ssh/tunnel | 〇 | - | ● | - | ||
/api/v2/reverse-ssh/tunnel/{NUM} | - | 〇 | ● | 〇 |
凡例:
● : 読み取り専用ユーザも含めアクセス可
〇 : 読み取り専用ユーザはアクセス不可
- : 未対応
実行例
リバースSSHトンネル設定の作成
メソッド | URI |
POST | /api/v2/reverse-ssh/tunnel |
JSON
リクエスト
POST /api/v2/reverse-ssh/tunnel
Content-Type: application/json
{
"tunnel": {
"number": 1,
"server": {
"address": "192.168.10.100"
},
"connection": {
"local": {
"port": 22
},
"remote": {
"port": 5000
}
},
"account": {
"username": "test",
"password": {
"passphrase": "testpass"
}
}
}
}
レスポンス
201 Created
XML
リクエスト
POST /api/v2/reverse-ssh/tunnel
Content-Type: application/xml
<reverse-ssh>
<tunnel>
<number>1</number>
<server>
<address>192.168.10.100</address>
</server>
<connection>
<local>
<port>22</port>
</local>
<remote>
<port>5000</port>
</remote>
</connection>
<account>
<username>test</username>
<password>
<passphrase>testpass</passphrase>
</password>
</account>
</tunnel>
</reverse-ssh>
レスポンス
201 Created
全リバースSSHトンネル設定の取得
メソッド | URI |
GET | /api/v2/reverse-ssh/tunnel |
JSON
リクエスト
GET /api/v2/reverse-ssh/tunnel
Accept: application/json
レスポンス
200 OK
Content-Type: application/json
{
"tunnel": [
{
"number": 1,
"server": {
"address": "192.168.10.100"
},
"connection": {
"local": {
"port": 22
},
"remote": {
"port": 5000
}
},
"account": {
"username": "test",
"password": {
"passphrase": "testpass"
}
}
},
{
"number": 2,
"server": {
"address": "192.168.10.101"
},
"connection": {
"local": {
"port": 22
},
"remote": {
"port": 5001
}
},
"account": {
"username": "test2",
"password": {
"passphrase": "test2pass"
}
}
}
]
}
XML
リクエスト
GET /api/v2/reverse-ssh/tunnel
Accept: application/xml
レスポンス
200 OK
Content-Type: application/xml
<reverse-ssh>
<tunnel>
<number>1</number>
<server>
<address>192.168.10.100</address>
</server>
<connection>
<local>
<port>22</port>
</local>
<remote>
<port>5000</port>
</remote>
</connection>
<account>
<username>test</username>
<password>
<passphrase>testpass</passphrase>
</password>
</account>
</tunnel>
<tunnel>
<number>2</number>
<server>
<address>192.168.10.101</address>
</server>
<connection>
<local>
<port>22</port>
</local>
<remote>
<port>5001</port>
</remote>
</connection>
<account>
<username>test2</username>
<password>
<passphrase>test2pass</passphrase>
</password>
</account>
</tunnel>
</reverse-ssh>
TEXT/PLAIN
リクエスト
GET /api/v2/reverse-ssh/tunnel
Accept: text/plain
レスポンス
200 OK
Content-Type: text/plain
reverse-ssh
tunnel 1
server 192.168.10.100
account username test password testpass
local port 22 remote port 5000
exit-tunnel
tunnel 2
server 192.168.10.101
account username test2 password test2pass
local port 22 remote port 5001
exit-tunnel
exit
リバースSSHトンネル設定の更新
メソッド | URI |
PUT | /api/v2/reverse-ssh/tunnel/{NUM} |
JSON
リクエスト
PUT /api/v2/reverse-ssh/tunnel/1
Content-Type: application/json
{
"number": 1,
"server": {
"address": "192.168.10.100"
},
"connection": {
"local": {
"port": 22222
},
"remote": {
"port": 5000
}
},
"account": {
"username": "test",
"password": {
"passphrase": "testpass"
}
}
}
レスポンス
204 No content
XML
リクエスト
PUT /api/v2/reverse-ssh/tunnel/1
Content-Type: application/xml
<tunnel>
<number>1</number>
<server>
<address>192.168.10.100</address>
</server>
<connection>
<local>
<port>22222</port>
</local>
<remote>
<port>5000</port>
</remote>
</connection>
<account>
<username>test</username>
<password>
<passphrase>testpass</passphrase>
</password>
</account>
</tunnel>
レスポンス
204 No content
リバースSSHトンネル設定の取得
メソッド | URI |
GET | /api/v2/reverse-ssh/tunnel/{NUM} |
JSON
リクエスト
GET /api/v2/reverse-ssh/tunnel/1
Accept: application/json
レスポンス
200 OK
Content-Type: application/json
{
"number": 1,
"server": {
"address": "192.168.10.100"
},
"connection": {
"local": {
"port": 22
},
"remote": {
"port": 5000
}
},
"account": {
"username": "test",
"password": {
"passphrase": "testpass"
}
}
}
XML
リクエスト
GET /api/v2/reverse-ssh/tunnel/1
Accept: application/xml
レスポンス
200 OK
Content-Type: application/xml
<tunnel>
<number>1</number>
<server>
<address>192.168.10.100</address>
</server>
<connection>
<local>
<port>22</port>
</local>
<remote>
<port>5000</port>
</remote>
</connection>
<account>
<username>test</username>
<password>
<passphrase>testpass</passphrase>
</password>
</account>
</tunnel>
TEXT/PLAIN
リクエスト
GET /api/v2/reverse-ssh/tunnel/1
Accept: text/plain
レスポンス
200 OK
Content-Type: text/plain
reverse-ssh
tunnel 1
server 192.168.10.100
account username test password testpass
local port 22 remote port 5000
exit-tunnel
exit
リバースSSHトンネル設定の削除
メソッド | URI |
DELETE | /api/v2/reverse-ssh/tunnel/{NUM} |
リクエスト
DELETE /api/v2/reverse-ssh/tunnel/1
レスポンス
204 No content
パラメータ
指定可能なパラメータは下記の通りです。
なお、指定可能なパラメータは製品およびファームウェアのバージョンにより異なりますので、各パラメータの詳細については各製品のユーザーズガイド(CLI版)も合わせてご参照ください。
- パラメータ表の説明文中の記号について
< > … 括弧内の値の範囲から選択することを示しています。
[ ] … 括弧内の値のどれかを選択することを示しています。
数字,文字列 … 初期値 - パラメータ表の説明文中のデータタイプについて
A.B.C.D … IPv4アドレス
X:X::X:X … IPv6アドレス
パラメータおよびレベル | 説明 | ||||
---|---|---|---|---|---|
Lv.1 | Lv.2 | Lv.3 | Lv.4 | Lv.5 | |
reverse-ssh | tunnel | number | SSHトンネル番号 | ||
server | address | SSHサーバアドレス …
|
|||
port | ポート番号 … <1-65535(22)> | ||||
keepalive | interval | キープアライブ間隔 … <10-600(60)> | |||
count | キープアライブ回数 … <1-30(3)> | ||||
account | username | ユーザ名 | |||
password | hidden | 暗号化 … [ enable | disable ] | |||
passphrase | パスワード | ||||
connection | local | port | ローカル側SSHポート番号 … <1-65535> | ||
address | ローカル側SSHアドレス …
|
||||
remote | port | リモート側SSHポート番号 … <1-65535> | |||
address | リモート側SSHアドレス …
|
目次
- 1. REST-API機能の利用方法およびAuth-IDの発行
- 2. メンテナンス
- 3. インタフェース設定
- 4. ルーティング設定
- 5. アクセスリスト設定
- 6. NAT設定
- 7. VPN設定
- 8. 各種サービス設定
- 各種サービス設定一覧
- 8-1. IPv4DHCPサーバ設定(dhcp-server)
- 8-2. DNS設定(dns)
- 8-3. NTP設定(ntp)
- 8-4. SNMP設定(snmp)
- 8-5. シスログ設定(syslog)
- 8-6. UPnP設定(upnp)
- 8-7. スケジュール設定(scheduler)
- 8-8. WarpLink設定(warplink)
- 8-9. Web認証設定(web-auth)
- 8-10. ターミナルサーバ設定(terminal-server)
- 8-11. SSHサーバ設定(ssh)
- 8-12. TELNETサーバ設定(telnet)
- 8-13. HTTPサーバ設定(http)
- 8-14. CMSv2設定(cms)
- 8-15. DNSインターセプト設定(dns-intercept)
- 8-16. DDNS設定(ddns)
- 8-17. DHCPリレー設定(dhcp-relay)
- 8-18. DHCPv6クライアント設定(dhcp6-client)
- 8-19. DHCPv6サーバ設定(dhcp6-server)
- 8-20. メール設定(mail)
- 8-21. SSLトンネル設定(ssl)
- 8-22. モニタログ設定(monitor-log)
- 8-23. SIP-NAT設定(sip-nat)
- 8-24. NGN-SIP設定(ngn-sip)
- 8-25. Wake ON LAN設定(wol)
- 8-26. DIO設定(dio)
- 8-27. speed-test設定(speed-test)
- 8-28. リバースSSHトンネル設定(reverse-ssh)
- 8-29. QoS設定(qos)
- 9. ネットイベント設定
- 10. モバイル・WiFi設定
- 11. IPv4/IPv6設定
- 12. システム設定
更新情報
→ 一覧へカテゴリ
タグ
- CRG
- DDNS
- DHCP
- DNAT
- DNSインターセプト
- Ethernet
- IIJモバイル
- IKE Modeconfig
- IKEv2 Configuration Payload
- IPinIP
- IPoE
- IPv6
- KDDI
- L2TPv3
- MAP-E
- NGN
- NTTドコモ
- PBR
- Policy Based IPsec
- PPP
- PPPoE
- QoS
- RADIUS連携
- RAシリーズ
- Route Based IPsec
- SMS
- SNAT
- SoftBank
- UPnP
- URL転送
- VLAN
- VRRP
- Web認証
- WiMAX
- コンフィグロールバック
- ネットイベント
- フィルタ
- ブリッジ
- モニタログ
- ワイモバイル
- 仮想スイッチ
- 冗長化
- 無線LAN