Hello,
It is possible to disable default route in the Network -> interfaces -> Interface settings -> Advanced settings. There should be a slider to use the interface for a default route. However, this option is not present in the mobile interface settings. As an alternative, you can modify the network configuration file directly from the command line using a text editor like vi. Execute the following command to start editing the file (press 'i' to edit):
Inside the network configuration file, locate the configuration for the mobile interface (e.g., mob1s1a1). Add the following option to disable the default route:
After adding the option, press the ESC key, type ':wq', and press Enter to save the changes and exit the editor.
Then, restart network service:
- /etc/init.d/network restart
Now, the default route via mobile interface will not be added to the routing table.
However, considering your purpose, it may be more appropriate to explore other options such as using VLANs, Firewall traffic rules, or the Hotspot feature for managing users. These options can provide more control and better align with your requirements. The choice will depend on your needs. I would recommend investigating those alternatives.
Kind Regards,
Andzej