- Fortigate 60D with firmware 5.0 patch 9
- Huawei E398
Here are the steps which has worked for me to successfully setup the USB 4G modem.
Now the first thing to do, is to enable the modem.
FGT60D # config system modemNow a good thing to do is to check if the modem is detected successfully. To check is I used the following commands:
FGT60D (modem) # set status enable
FGT60D (modem) # end
FGT60D # diagnose sys modem detect
modem is attached.
dialtone is detected.
FGT60D # diagnose sys modem external-modem
External modem vendor: Huawei
External modem vendor id: 12d1
External modem model : E392/E397/E398/E353/E3276
External modem product id: 1506
In some cases, I noticed that no modem was detected. I removed the modem from the USB port and insert it back again. After that the modem was detected. In some cases I needed to reboot the Fortigate unit to get it activated again :-(. I don't know for sure what the reason for this is, but I decided to let it go for now...
As you can see, the modem is detected successfully, but it's still inactive. Now let's activate it. You need to enter some commands to get this done. Some parameters are specific to the mobile provider you have. In this case, the settings (APN) are from the dutch provider KPN Mobile. In my case, I want to use the 4G connection when my primary WAN connection goes down.
config system modemYou need to enter the correct APN for portalmmm.nl. If everything goed well, you can check the 4G connection with the following commands.
set status enable
set pin-init "AT+CPIN=****"
set mode redundant
set interface "wan1"
set phone1 "*99#"
set extra-init1 "at+cgdcont=1,\"ip\",\"portalmmm.nl\""
FGT60D # diagnose sys modem queryNow all should work! You can check if the modem interface comes UP and gets it's Connected state:
USB status: Connected
manufacturer: Huawei Technologies Co., Ltd.
model: E398
IMEI number: ******
SIM state: Valid
service status: Valid Service
signal level: 4/4
network name: KPN
network type: UTRAN
location area code:
active profile(AT&V):
<<output omitted>>
Don't forget to configure a policy rule with NAT to allow traffic to the internet through the modem interface.
That's all folks!