menuimage

Description

Note

Options

Dependencies

License

Changelog

Download

Donation

My_Other_Sites

My_Programs

Comments

wifi-updown v0.2 [09 Nov 2018] by Dominic

Description

Brings up or drops a wifi network interface depending on whether there is a live wired network interface. For use under
GNU/Linux. Intended to be run at boot time (e.g. from /etc/rc.local) as a way to reduce the attack surface for a machine
which has both wired and wifi interfaces connecting to the same network.

wifi-updown.sh can be run by a non-root user to show the situation, but not to make changes.

Note

Taking down the wifi interface may leave the machine with no default route, so that DNS lookups fail - to check/fix
this, run routefix.sh after wifi-updown.sh.

Options

-h show this help and exit
-l show changelog and exit
-q be quieter (i.e. no header)

Dependencies

ip if{up|down} logger

License

Copyright © 2018 Dominic Raferd. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
express or implied. See the License for the specific language governing permissions and limitations under the License.

Changelog

0.2 [09 Nov 2018] - first public release
0.1 [05 Nov 2018] - first version with help/changelog

Download wifi-updown.sh

Donation

I have provided this software free gratis and for nothing. If you would like to thank me with a contribution, please let me know and I will send you a link. Thank you!

My Other Sites

My Programs

Here is a selection of some (other) programs I have written, most of which run from the command line (CLI), are freely available and can be obtained by clicking on the links. Dependencies are shown and while in most cases written for a conventional Linux server, they should run even on a Raspberry Pi, and many can run under Windows using Cygwin. Email me if you have problems or questions, or if you think I could help with a programming requirement.

Backup Utilities

Debian/Ubuntu kernel and LVM Utilities

Dellmont / Three / Giffgaff / Vodafone - VoIP and Mobile Phone Account Utilities

Miscellaneous Programs

Comments

No comments yet
*Name:
Email:
Hide my email
*Text:
 
Powered by Scriptsmill Comments Script