DrayTek UK Users' Community Forum
Help, Advice and Solutions from DrayTek Users
Disable WiFi once WAN failover to 4G connection
- tomtomtom
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
04 Jul 2023 11:48 #102618
by tomtomtom
Disable WiFi once WAN failover to 4G connection was created by tomtomtom
Is there any way to disable WiFi if the Internet connection failover to 4G connection?
I do not want to let users to use 4G Data and run out of the credit if primary connection is off for some reason.
I do not want to let users to use 4G Data and run out of the credit if primary connection is off for some reason.
Please Log in or Create an account to join the conversation.
- rolandrat
- Offline
- Member
Less
More
- Posts: 200
- Thank you received: 0
04 Jul 2023 18:44 #102621
by rolandrat
Replied by rolandrat on topic Re: Disable WiFi once WAN failover to 4G connection
Does your router have the "Applications"/"Smart Action" option as you should be able to use that to set a firewall rule or route policy when the WAN connection disconnects, then put it back when it reconnects.
Please Log in or Create an account to join the conversation.
- natterjack
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
04 Jul 2023 21:25 #102623
by natterjack
Replied by natterjack on topic Re: Disable WiFi once WAN failover to 4G connection
For example, product AP912C has a feature "WiFi auto on/off"
The configuration is to define an IP address that is 'pinged' and if the address doesn't respond, then the WiFi switches off.
It may be possible to use the ISP's WAN gateway IP to identify failover and hence to disable WiFi.
I don't know how widely "WiFi auto on/off" is implemented across products.
The configuration is to define an IP address that is 'pinged' and if the address doesn't respond, then the WiFi switches off.
It may be possible to use the ISP's WAN gateway IP to identify failover and hence to disable WiFi.
I don't know how widely "WiFi auto on/off" is implemented across products.
Please Log in or Create an account to join the conversation.
- tomtomtom
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
05 Jul 2023 15:51 #102628
by tomtomtom
Replied by tomtomtom on topic Re: Disable WiFi once WAN failover to 4G connection
I do not have any of these.
I created a filter in Firewall:
Firewall>Filter Setup> Set1:
In the "Direction" I removed all of the interfaces and left only WAN5 (4G USB) so when WAN5 is working the whole traffic is completely blocked.
But I need to exclude ssh. Is there any way to do it?
I created a filter in Firewall:
Firewall>Filter Setup> Set1:
In the "Direction" I removed all of the interfaces and left only WAN5 (4G USB) so when WAN5 is working the whole traffic is completely blocked.
But I need to exclude ssh. Is there any way to do it?
Please Log in or Create an account to join the conversation.
- HodgesanDY
- Offline
- Member
Less
More
- Posts: 208
- Thank you received: 17
05 Jul 2023 19:44 #102629
by HodgesanDY
Replied by HodgesanDY on topic Re: Disable WiFi once WAN failover to 4G connection
Yes.
Have the “BLOCK ALL” rule lower down in your list of rules in that set, they work in order so put that “BLOCK ALL” rule last; at least lower down than the rule you’re about to create.
Now create a new rule above that allows the SSH ‘Service Type’ to ‘Pass Immediately’.
Because the rules work in order, if you block all first, the traffic will never reach the “Pass Immediately” rule it’ll simply get dropped, so place it before the block all.
Everything else that isn’t an SSH service type will be blocked; unless you add another rule before the block all again, or as many as your router will allow.
(Note: If you start expanding into another “Set#” don’t forget to choose that next set# in the lower right corner of the set page, otherwise it will never progress into the following set.)
Have the “BLOCK ALL” rule lower down in your list of rules in that set, they work in order so put that “BLOCK ALL” rule last; at least lower down than the rule you’re about to create.
Now create a new rule above that allows the SSH ‘Service Type’ to ‘Pass Immediately’.
Because the rules work in order, if you block all first, the traffic will never reach the “Pass Immediately” rule it’ll simply get dropped, so place it before the block all.
Everything else that isn’t an SSH service type will be blocked; unless you add another rule before the block all again, or as many as your router will allow.
(Note: If you start expanding into another “Set#” don’t forget to choose that next set# in the lower right corner of the set page, otherwise it will never progress into the following set.)
Please Log in or Create an account to join the conversation.
Moderators: Chris, Sami
Copyright © 2024 DrayTek