Using Curl To Add A Firewall Dnat Rule; Using Curl To Add A Firewall Filter Rule - Multitech MultiConnect rCell MTR-H5 Developer's Manual

Multiconnect rcell api cellular router
Hide thumbs Also See for MultiConnect rCell MTR-H5:
Table of Contents

Advertisement

6.3.3
Using Curl to add a firewall DNAT rule
1
curl -- sslv3 -k -X POST -H " Content - Type
2
" description "
:
3
" direction "
:
" INGRESS "
4
" enabled "
:
true
5
" guid "
:
" FTP - SERVER - DNAT "
6
" lanIp "
:
" 19 2.168.2 .103"
7
" lanPortEnd "
:
21
8
" lanPortStart "
:
9
" name "
:
" FTP - SERVER "
10
" protocol "
:
" TCP "
11
" type "
:
" DNAT "
,
12
" wanIp "
:
" ANY "
,
13
" wanMask "
:
32
,
14
" wanPortEnd "
:
"21"
15
" wanPortStart "
:
16
' https
:
// 192.168.2.1/ api / nat ? token =2442 C B 0 C B 6 0 B 2 E E 9 F 5 A 3 5 D F 5 E D 8 C 3 3
Curl result:
1
" code "
:
200
,
2
3
" status "
:
" success "
4
6.3.4
Using Curl to add a firewall filter rule
1
curl -- sslv3 -k -X POST -H " Content - Type
2
" action "
:
" ACCEPT "
3
" description "
:
4
" direction "
:
" INGRESS "
5
" dstIp "
:
" 19 2.168.2 .103"
6
" dstMask "
:
32
,
7
" dstNetwork "
:
""
8
" dstPortEnd "
:
21
9
" dstPortStart "
:
10
" enabled "
:
true
,
11
" name "
:
" FTP - SERVER "
12
" protocol "
:
" TCP "
" srcIp "
:
" ANY "
,
13
14
" srcMask "
:
32
,
15
" srcMac "
:
""
,
16
" srcNetwork "
:
""
17
" srcPortEnd "
:
" ANY "
18
" srcPortStart "
:
19
' https
:
// 192.168.2.1/ api / filters ? token =2442 C B 0 C B 6 0 B 2 E E 9 F 5 A 3 5 D F 5 E D 8 C 3 3
Curl result:
1
2
" code "
:
200
,
3
" status "
:
" success "
4
36
""
,
,
,
,
,
,
20
,
,
,
,
"20"
,
""
,
,
,
,
,
20
,
,
,
,
,
" ANY "
:
application / json " -d '
:
application / json " -d '
Multi-Tech Systems, Inc. MultiConnect
6
APPENDIX
R
rCell API Developer Guide

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MultiConnect rCell MTR-H5 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Multiconnect rcell mtr-h6Multiconnect rcell mtr-g3Multiconnect rcell mtr-ev3Multiconnect rcell mtr-c2Multiconnect rcell mtr-h6Multiconnect rcell mtr-g3 ... Show all

Table of Contents