0% found this document useful (0 votes)
185 views

Huong Dan Cau Hinh USB 3G Tren FortiGate

The document provides steps to configure a 3G modem on a FortiGate firewall using a ZTE MF190 USB modem on Mobifone as an example. The steps include: 1) connecting the ZTE modem to the FortiGate; 2) configuring the FortiGate to identify the modem; 3) enabling the 3G modem feature and setting connection parameters; 4) manually initiating the connection and verifying it was successful by viewing debug output showing IP address assignment.

Uploaded by

Duy Vu Ngoc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
185 views

Huong Dan Cau Hinh USB 3G Tren FortiGate

The document provides steps to configure a 3G modem on a FortiGate firewall using a ZTE MF190 USB modem on Mobifone as an example. The steps include: 1) connecting the ZTE modem to the FortiGate; 2) configuring the FortiGate to identify the modem; 3) enabling the 3G modem feature and setting connection parameters; 4) manually initiating the connection and verifying it was successful by viewing debug output showing IP address assignment.

Uploaded by

Duy Vu Ngoc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Bc 1.

Cm thit b 3G Mobifone Fast Connect (ZTE MF190) vo FortiGate.


Bc 2.
Bt ngun thit b FortiGate.
Bc 3.
Chy lnh sau ly thng tin USB device
fnsysctl cat /proc/bus/usb/devices

Sample output:
T:

Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=

B:

Alloc=

D:

Ver= 2.00 Cls=09(hub

P:

Vendor=0000 ProdID=0000 Rev= 2.04

S:

Manufacturer=Linux 2.4.37 ehci_hcd

S:

Product=Fortinet USB EHCI host controller

S:

SerialNumber=AHB BUS

0/800 us ( 0%), #Int=

1, #Iso=

1 Spd=480 MxCh= 1

) Sub=00 Prot=01 MxPS= 8 #Cfgs=

C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=

0mA

I:

If#= 0 Alt= 0 #EPs= 1 Cls=09(hub

) Sub=00 Prot=00 Driver=hub

E:

Ad=81(I) Atr=03(Int.) MxPS=

T:

Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=

D:

Ver= 2.00 Cls=09(hub

P:

Vendor=05e3 ProdID=0610 Rev=32.98

S:

Product=USB2.0 Hub

2 Ivl=256ms

2 Spd=480 MxCh= 4

) Sub=00 Prot=02 MxPS=64 #Cfgs=

C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA


I:

If#= 0 Alt= 0 #EPs= 1 Cls=09(hub

) Sub=00 Prot=01 Driver=hub

E:

Ad=81(I) Atr=03(Int.) MxPS=

I:

If#= 0 Alt= 1 #EPs= 1 Cls=09(hub

E:

Ad=81(I) Atr=03(Int.) MxPS=

T:

Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=

D:

Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=

1 Ivl=256ms
) Sub=00 Prot=02 Driver=hub

1 Ivl=256ms

3 Spd=480 MxCh= 0
1

P:

Vendor=19d2 ProdID=2003 Rev= 0.00

S:

Manufacturer=ZTE,Incorporated

S:

Product=ZTE WCDMA Technologies MSM

S:

SerialNumber=MF1900ZTED010000

C:* #Ifs= 5 Cfg#= 1 Atr=e0 MxPwr=500mA


I:

If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=serial

E:

Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

E:

Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms

I:

If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=serial

E:

Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

E:

Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms

I:

If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=serial

E:

Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

E:

Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms

I:

If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=serial

E:

Ad=84(I) Atr=03(Int.) MxPS=

E:

Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

E:

Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms

64 Ivl=2ms

I: If#= 4 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usbstorage


E:

Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

E:

Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

T:

Bus=01 Lev=02 Prnt=02 Port=03 Cnt=02 Dev#=

D:

Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=

P:

Vendor=13fe ProdID=3100 Rev= 1.00

S:

Manufacturer=FORTINET

S:

Product=FGT60C

S:

SerialNumber=1FC21800B4B25417

4 Spd=480 MxCh= 0
1

C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=300mA


I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usbstorage
E:

Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

E:

Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

Lu thng tin: Vendor=19d2 ProdID=2003 v Dev#=3, tc l ttyusb3


Bc 4.
Cu hnh nhn din modem 3G cho thit b FortiGate (FortiGate h tr ZTE MF190, nhng dng
ny c rt nhiu bin th, tc ProdID khc nhau).
config sys 3g-modem custom
edit 0
set vendor "ZTE"
set model "MF190_u"
set vendor-id 19d2
set product-id 2003
end
end

Bc 5.
Cu hnh bt tnh nng 3G-Modem.
config system modem
set status enable
set dial-on-demand enable
set redial 1
set wireless-port 4
set phone1 "*99#"
set username1 "mms"
set passwd1 mms
set extra-init1 "AT+CGDCONT=1,\"IP\",\"m-wap\""
set altmode disable
end

Lu : thit lp trn l cho Mobiphone. Viettel v Vinaphone s c cc thit lp phone1,


username1, passwd1 v APN ( trong v d trn l m-wap) khc.
Bc 6.
Xc nhn cc thit lp
FWF60C3G11013580 # diagnose sys modem detect
modem is attached.

dialtone is detected.

FWF60C3G11013580 # diagnose sys modem external-modem


External modem vendor: ZTE
External modem model : MF190_u

Bc 7.
Thc hin kt ni.
-

Bng dng lnh (debug). V d di y l ang thit lp manual dial. Thc t c th chn cu
hnh auto-dial.
FWF60C3G11013580 # diagnose debug enable
FWF60C3G11013580 # diagnose debug application ppp 255
FWF60C3G11013580 # diagnose debug app modemd 255
FWF60C3G11013580 # execute modem dial
FWF60C3G11013580 # redails:0 isp:0 dev:/dev/ttyusb3 tel:*99#
mode=0, dial=2, autodial=0
modem state changed: 6(stopped) -> 0(uninit)
modem state changed: 0(uninit) -> 1(inactive)
modem: Launch modem due to manual dial.
modem: Begin dialing: redials left = 1
modem state changed: 1(inactive) -> 2(dialing)
id=37637 msg="pppd is started"
chat: abort on (BUSY)
chat: abort on (NO DIAL TONE)
chat: abort on (NO DIALTONE)
chat: abort on (NO CARRIER)
chat: abort on (NO ANSWER)
chat: abort on (ERROR)
chat: send (atz^M)
chat: expect (OK)
chat: atz^M^M
chat: OK
chat: -- got it
chat:
chat:
chat:
chat:
chat:
chat:

send (ath0^M)
expect (OK)
^M
ath0^M^M
OK
-- got it

chat:
chat:
chat:
chat:
chat:
chat:

send (ats7=90^M)
timeout set to 90 seconds
expect (OK)
^M
ats7=90^M^M
OK

chat:

-- got it

chat: send (AT+CGDCONT=1,"IP","m-wap"^M)


scan_usb_dev():597
chat: expect (OK)
chat: ^M
chat: AT+CGDCONT=1,"IP","m-wap"^M^M
chat: OK
chat: -- got it
chat:
chat:
chat:
chat:
chat:
chat:

send (atdt*99#^M)
expect (CONNECT)
^M
atdt*99#^M^M
CONNECT
-- got it

chat: send (^M)


Serial connection established.
using channel 1
Using interface modem
Connect: modem <--> /dev/ttyusb3
Parent: modemd
PPP send: LCP Configure_Request id(1) len(10) [Magic_Number FBC66DF8]
PPP recv: LCP Configure_Request id(0) len(25)
[Asnync_Control_Character_Map 00 00 00 00] [Authentication_Protocol
CHAP algorithm=MD5] [Magic_Number 02C4C3F3]
[Protocol_Field_Compression] [Address-and-Control-Field-Compression]
PPP send: LCP Configure_Reject id(0) len(14)
[Asnync_Control_Character_Map 00 00 00 00] [Protocol_Field_Compression]
[Address-and-Control-Field-Compression]
PPP recv: LCP Configure_Ack id(1) len(10) [Magic_Number FBC66DF8]
PPP recv: LCP Configure_Request id(1) len(15) [Authentication_Protocol
CHAP algorithm=MD5] [Magic_Number 02C4C3F3]
PPP send: LCP Configure_Ack id(1) len(15) [Authentication_Protocol CHAP
algorithm=MD5] [Magic_Number 02C4C3F3]
PPP send: LCP Echo_Request id(0) len(8) [Magic_Number fbc66df8]
PPP recv: LCP Discard_Request id(2) len(8)
PPP recv: CHAP Challenge id(1)
PPP send: CHAP Response id(1)
PPP recv: LCP Echo_Reply id(0) len(12) [Magic_Number 02c4c3f3]
PPP recv: CHAP Success id(1)
PPP send: IPCP Configure_Request id(1) [IP_Address 0.0.0.0]
[Primary_DNS_IP_Address 0.0.0.0] [Seconday_DNS_IP_Address 0.0.0.0]
PPP recv: IPCP Configure_Nak id(1) [Primary_DNS_IP_Address 10.11.12.13]
[Seconday_DNS_IP_Address 10.11.12.14] [Primary_WINS_IP_Address
10.11.12.13] [Seconday_WINS_IP_Address 10.11.12.14]
PPP send: IPCP Configure_Request id(2) [IP_Address 0.0.0.0]
[Primary_DNS_IP_Address 10.11.12.13] [Seconday_DNS_IP_Address
10.11.12.14]

PPP recv: IPCP Configure_Nak id(2) [Primary_DNS_IP_Address 10.11.12.13]


[Seconday_DNS_IP_Address 10.11.12.14] [Primary_WINS_IP_Address
10.11.12.13] [Seconday_WINS_IP_Address 10.11.12.14]
PPP send: IPCP Configure_Request id(3) [IP_Address 0.0.0.0]
[Primary_DNS_IP_Address 10.11.12.13] [Seconday_DNS_IP_Address
10.11.12.14]
PPP recv: IPCP Configure_Nak id(3) [Primary_DNS_IP_Address 10.11.12.13]
[Seconday_DNS_IP_Address 10.11.12.14] [Primary_WINS_IP_Address
10.11.12.13] [Seconday_WINS_IP_Address 10.11.12.14]
PPP send: IPCP Configure_Request id(4) [IP_Address 0.0.0.0]
[Primary_DNS_IP_Address 10.11.12.13] [Seconday_DNS_IP_Address
10.11.12.14]
scan_usb_dev():597
PPP recv: IPCP Configure_Request id(0)
PPP send: IPCP Configure_Nak id(0) [IP_Address 0.0.0.0]
PPP recv: IPCP Configure_Nak id(4) [IP_Address 10.175.91.254]
[Primary_DNS_IP_Address 8.8.8.8] [Seconday_DNS_IP_Address
10.19.195.212]
PPP send: IPCP Configure_Request id(5) [IP_Address 10.175.91.254]
[Primary_DNS_IP_Address 8.8.8.8] [Seconday_DNS_IP_Address
10.19.195.212]
PPP recv: IPCP Configure_Request id(1)
PPP send: IPCP Configure_Ack id(1)
PPP recv: IPCP Configure_Ack id(5) [IP_Address 10.175.91.254]
[Primary_DNS_IP_Address 8.8.8.8] [Seconday_DNS_IP_Address
10.19.195.212]
Could not determine remote IP address: defaulting to 10.64.64.64
id=37637 gateway_ip=10.64.64.64 assigned_ip=10.175.91.254 mtu=1500
msg="PPPoE status report"
modem: PPP is connected.
modem state changed: 2(dialing) -> 3(connected)
redails:0 isp:0 dev:/dev/ttyusb3 tel:*99#
local IP address 10.175.91.254
remote IP address 10.64.64.64
primary
DNS address 8.8.8.8
secondary DNS address 10.19.195.212
scan_usb_dev():597
scan_usb_dev():597
scan_usb_dev():597
PPP send: LCP Echo_Request id(1) len(8) [Magic_Number fbc66df8]
PPP recv: LCP Echo_Reply id(1) len(12) [Magic_Number 02c4c3f3]
scan_usb_dev():597
scan_usb_dev():597
scan_usb_dev():597
scan_usb_dev():597
PPP send: LCP Echo_Request id(2) len(8) [Magic_Number fbc66df8]
PPP recv: LCP Echo_Reply id(2) len(12) [Magic_Number 02c4c3f3]
scan_usb_dev():597
scan_usb_dev():597
-----Some output was skipped

-----scan_usb_dev():597
scan_usb_dev():597
PPP send: LCP Echo_Request id(26) len(8) [Magic_Number fbc66df8]
PPP recv: LCP Echo_Reply id(26) len(12) [Magic_Number 02c4c3f3]
scan_usb_dev():597
scan_usb_dev():597
scan_usb_dev():597
scan_usb_dev():597
PPP send: LCP Echo_Request id(27) len(8) [Magic_Number fbc66df8]
PPP recv: LCP Echo_Reply id(27) len(12) [Magic_Number 02c4c3f3]
scan_usb_dev():597
modem: Dial-on-demand idle period expired... disconnect.
modem state changed: 3(connected) -> 4(hangingup)
Terminating on signal 3.
PPP send: LCP Termiate_Request id(2) len(16)
PPP recv: LCP Terminate_Ack id(2) len(4)
Connection terminated.
Connect time 9.2 minutes.
Sent 1172 bytes, received 1208 bytes.
chat: abort on (BUSY)
chat: abort on (NO DIAL TONE)
chat: abort on (NO CARRIER)
chat: abort on (NO ANSWER)
chat: abort on (ERROR)
chat: send (ath^M)
chat: expect (OK)
scan_usb_dev():597
modem: PPP has disconnected (143).
modem state changed: 4(hangingup) -> 0(uninit)
modem state changed: 0(uninit) -> 1(inactive)
chat: ^M
chat: NO CARRIER
chat: -- failed
chat: Failed (NO CARRIER)

Bng WEB GUI: nhn vo Dial Now.

Bc 8.
Xc nhn kt ni thnh cng

You might also like