OPNsense Forum

Archive => 15.7 Legacy Series => Topic started by: hoseinTB on January 13, 2016, 04:13:12 pm

Title: WAN Gateway Become offline after restarting 4G internet Modem
Post by: hoseinTB on January 13, 2016, 04:13:12 pm
hi

I have OPNsense on device with two ethernet interface
WAN: 192.168.1.1
LAN: 192.168.2.1

and WAN Gateway (4G Modem) IP address is : 192.168.1.2

Each time, after i restart (turn the power off and on) the 4G Modem, the Gateway Status become : Offline

Code: [Select]
Offline
Last check:
Wed, 13 Jan 2016 15:01:32 +0100

Gateway log file:
Code: [Select]
Jan 13 15:01:32 apinger: ALARM: WANGW(192.168.1.2) *** down ***
Of course in this state, internet is not connected for LAN network.
after that i repeatedly check the Gateway status and Gateway Log.
Nothing happen till the below log is appeared:

Code: [Select]
Jan 13 15:11:07 apinger: alarm canceled: WANGW(192.168.1.2) *** down ***
as you can see, it takes OPNsense about 10 min to reconnect the internet for LAN network.

and after repeating this situation, every time i get a different period of time:

Code: [Select]
Jan 13 15:01:03 apinger: alarm canceled: WANGW(192.168.1.2) *** down ***
Jan 13 15:00:44 apinger: ALARM: WANGW(192.168.1.2) *** down ***

Code: [Select]
Jan 13 14:59:36 apinger: alarm canceled: WANGW(192.168.1.2) *** down ***
Jan 13 14:53:05 apinger: ALARM: WANGW(192.168.1.2) *** down ***

Code: [Select]
Jan 13 14:27:05 apinger: alarm canceled: WANGW(192.168.1.2) *** down ***
Jan 13 14:22:01 apinger: ALARM: WANGW(192.168.1.2) *** down ***


Any Idea why this change of status take that long ?


Title: Re: WAN Gateway Become offline after restarting 4G internet Modem
Post by: 8191 on January 13, 2016, 04:19:05 pm
Hi,
do you use a static IP configuration on the WAN port or DHCP?

If you use DHCP: you can tune the timeout and retry intervals in the Interfaces setting page.
If you use a static IP: how's the behavior if you connect a different device than OPNsense? Maybe the 4G modem needs some time to start up?
Title: Re: WAN Gateway Become offline after restarting 4G internet Modem
Post by: hoseinTB on January 13, 2016, 04:25:13 pm
thanks for reply

i am using static IP for WAN

4G modem starting up really fast, and the internet connection is okey when i directly connect to modem.

internet connection is down behind firewall.