]> git.ipfire.org Git - people/ms/network.git/log
people/ms/network.git
11 years agodoc: Add man page for the bridge hook.
Michael Tremer [Thu, 7 Jun 2012 21:41:22 +0000 (21:41 +0000)] 
doc: Add man page for the bridge hook.

11 years agoMake the help command exit gracefully on zone hooks.
Michael Tremer [Thu, 7 Jun 2012 21:40:18 +0000 (21:40 +0000)] 
Make the help command exit gracefully on zone hooks.

11 years agoAdd CLI commands to view help for hooks.
Michael Tremer [Thu, 7 Jun 2012 20:51:06 +0000 (20:51 +0000)] 
Add CLI commands to view help for hooks.

11 years agoFix "network device" command and document it.
Michael Tremer [Thu, 7 Jun 2012 13:31:58 +0000 (13:31 +0000)] 
Fix "network device" command and document it.

11 years agoMove network specific command line code to network file.
Michael Tremer [Wed, 6 Jun 2012 16:09:11 +0000 (16:09 +0000)] 
Move network specific command line code to network file.

11 years agoImprove yes/no decisions.
Michael Tremer [Wed, 6 Jun 2012 15:44:59 +0000 (15:44 +0000)] 
Improve yes/no decisions.

If the user types something wrong, the question will
be shown again until he answers yes or no.

11 years agoAdd 6to4 tunnel functionality.
Michael Tremer [Wed, 6 Jun 2012 15:38:55 +0000 (15:38 +0000)] 
Add 6to4 tunnel functionality.

Introduces a hook that can connect to 6to4 tunnelbrokers
like Hurricane Electric's tunnelbroker.net.

11 years agoipv6-static: Don't explode IPv6 addresses in conifguration files.
Michael Tremer [Wed, 6 Jun 2012 15:04:29 +0000 (15:04 +0000)] 
ipv6-static: Don't explode IPv6 addresses in conifguration files.

11 years agoFix two missing CONFIG_DIR substitutions.
Michael Tremer [Tue, 5 Jun 2012 20:52:56 +0000 (20:52 +0000)] 
Fix two missing CONFIG_DIR substitutions.

11 years agorouting: Fix check for Point-to-Point devices.
Michael Tremer [Tue, 5 Jun 2012 20:52:10 +0000 (20:52 +0000)] 
routing: Fix check for Point-to-Point devices.

However, what we wanted to check here is a ptp device
instead of ppp devices.

11 years agoMake detection of device features very much faster.
Michael Tremer [Tue, 5 Jun 2012 20:51:14 +0000 (20:51 +0000)] 
Make detection of device features very much faster.

Instead of calling the ip command and others, the flags
file is now read from sysfs to detect if a device has got
certain features.

11 years agoAdd "network zone list-hooks" command.
Michael Tremer [Tue, 5 Jun 2012 14:43:53 +0000 (14:43 +0000)] 
Add "network zone list-hooks" command.

11 years agoAdd header to functions file.
Michael Tremer [Tue, 5 Jun 2012 14:10:00 +0000 (14:10 +0000)] 
Add header to functions file.

11 years agoAdd documentation about the config options.
Michael Tremer [Thu, 31 May 2012 23:43:59 +0000 (23:43 +0000)] 
Add documentation about the config options.

11 years agoRemove a line of debugging code.
Michael Tremer [Thu, 31 May 2012 23:40:21 +0000 (23:40 +0000)] 
Remove a line of debugging code.

11 years agoMake a better removal of zones possible.
Michael Tremer [Thu, 31 May 2012 23:12:40 +0000 (23:12 +0000)] 
Make a better removal of zones possible.

Zones that are up are tagged to be removed later to have
the opportunity to reconfigure things without losing the
network connection.

11 years agoSwitch over to man page documentation.
Michael Tremer [Thu, 31 May 2012 22:50:46 +0000 (22:50 +0000)] 
Switch over to man page documentation.

There are two man pages for testing how this would
work and the old help texts within the shell code
have been removed.

11 years agoDon't log reading configuration files.
Michael Tremer [Thu, 31 May 2012 14:12:08 +0000 (14:12 +0000)] 
Don't log reading configuration files.

The debug log gets too messy.

11 years agoAdd support for teredo (miredo).
Michael Tremer [Thu, 31 May 2012 13:39:56 +0000 (13:39 +0000)] 
Add support for teredo (miredo).

Teredo is a tunneling protocol for IPv6 tunnels which
are able to traverse NAT easily.

11 years agoMove config functions into seperate file.
Michael Tremer [Mon, 28 May 2012 13:24:42 +0000 (13:24 +0000)] 
Move config functions into seperate file.

11 years agoInitial import of a lot of firewall code.
Michael Tremer [Mon, 28 May 2012 07:55:21 +0000 (07:55 +0000)] 
Initial import of a lot of firewall code.

This creates a basic firewall for IPv4.

11 years agoDon't test if RUN_DIR exists.
Michael Tremer [Sun, 27 May 2012 16:43:51 +0000 (16:43 +0000)] 
Don't test if RUN_DIR exists.

This directory will be created by systemd.

11 years agoFix typo in listsort().
Michael Tremer [Sun, 27 May 2012 14:11:48 +0000 (14:11 +0000)] 
Fix typo in listsort().

11 years agoReduce startup time by letting systemd create our files in /run.
Michael Tremer [Sun, 27 May 2012 13:57:09 +0000 (13:57 +0000)] 
Reduce startup time by letting systemd create our files in /run.

11 years agoDon't load 8021q module when we don't need it.
Michael Tremer [Sun, 27 May 2012 13:45:09 +0000 (13:45 +0000)] 
Don't load 8021q module when we don't need it.

11 years agoDon't load bonding driver by default.
Michael Tremer [Sun, 27 May 2012 13:42:42 +0000 (13:42 +0000)] 
Don't load bonding driver by default.

The kernel module will be initialized when the first
bonding device is created.

11 years agobridge: Show NO-CARRIER for ports instead of STP state.
Michael Tremer [Sun, 27 May 2012 13:35:09 +0000 (13:35 +0000)] 
bridge: Show NO-CARRIER for ports instead of STP state.

However, it is not very clear why a certain port has got
that status. NO-CARRIER implies that the device is unplugged
or the link is just down.

11 years agoAdd functions to set bridge properties.
Michael Tremer [Sun, 27 May 2012 13:07:08 +0000 (13:07 +0000)] 
Add functions to set bridge properties.

11 years agoRemove sorting algorithm implemented in shell code.
Michael Tremer [Sun, 27 May 2012 12:31:56 +0000 (12:31 +0000)] 
Remove sorting algorithm implemented in shell code.

Because of the recently remove feature of having an extra
/usr partition, we could not use /usr/bin/sort.

11 years agoAdd systemd unit files for networking.
Michael Tremer [Sun, 27 May 2012 12:23:55 +0000 (12:23 +0000)] 
Add systemd unit files for networking.

11 years agowireless-ap: Add hotplug support.
Michael Tremer [Sun, 27 May 2012 12:12:53 +0000 (12:12 +0000)] 
wireless-ap: Add hotplug support.

This patch will help wireless APs to automatically
start up when an USB wireless device is plugged in.

11 years agoAdd hotplug handling for wireless devices and unplugging.
Michael Tremer [Sun, 27 May 2012 12:11:35 +0000 (12:11 +0000)] 
Add hotplug handling for wireless devices and unplugging.

Ports should now be properly shut down when the device is
unplugged. This is very important for wireless devices
which need to stop services like hostapd.

11 years agoMove all of the device renaming code to network-hotplug-rename.
Michael Tremer [Sun, 27 May 2012 12:07:06 +0000 (12:07 +0000)] 
Move all of the device renaming code to network-hotplug-rename.

The port hooks get an additional method called _hotplug() which
handles the actual hotplugging stuff.
To rename devices, there is now the _hotplug_rename() function
which returns either EXIT_TRUE or EXIT_FALSE.

11 years agoMove all port patterns into functions.constants.
Michael Tremer [Sun, 27 May 2012 11:59:36 +0000 (11:59 +0000)] 
Move all port patterns into functions.constants.

11 years agoAdd detection for wireless devices.
Michael Tremer [Sun, 27 May 2012 11:58:29 +0000 (11:58 +0000)] 
Add detection for wireless devices.

11 years agoCLI: Disable debugging for status commands.
Michael Tremer [Fri, 25 May 2012 12:07:41 +0000 (12:07 +0000)] 
CLI: Disable debugging for status commands.

When the debugging mode was enabled, the status
screen was cluttered with a lot of unneeded log lines.
The result was not readable at all.

This patch termporarily disables the output of log
messages to the console.

11 years agobridge-stp: Update script to work with newer versions of mstpd.
Michael Tremer [Fri, 25 May 2012 12:06:57 +0000 (12:06 +0000)] 
bridge-stp: Update script to work with newer versions of mstpd.

11 years agoRemove a lot of 'devicify' calls to increase speed of code.
Michael Tremer [Fri, 25 May 2012 09:24:54 +0000 (09:24 +0000)] 
Remove a lot of 'devicify' calls to increase speed of code.

11 years agoRemove port initialization on init event.
Michael Tremer [Fri, 25 May 2012 09:18:09 +0000 (09:18 +0000)] 
Remove port initialization on init event.

When the system boots up, udev is in charge to
properly detect devices and create configurations.

11 years agohotplugging: Check if the device has vanished in the meantime.
Michael Tremer [Fri, 25 May 2012 09:16:54 +0000 (09:16 +0000)] 
hotplugging: Check if the device has vanished in the meantime.

However, sometimes the rename script gets called
and shortly after that the device vanishes.

11 years agoFix hotplugging with udev.
Michael Tremer [Fri, 25 May 2012 09:02:08 +0000 (09:02 +0000)] 
Fix hotplugging with udev.

New devices will now be correctly named
and brought up after plugging them in.

11 years agoThrow the old GREEN/RED/ORANGE schema over board.
Michael Tremer [Thu, 17 May 2012 19:36:35 +0000 (19:36 +0000)] 
Throw the old GREEN/RED/ORANGE schema over board.

However, this is not a very good idea at this
level anymore. The colours may confuse and the
difference between them is not very huge at all.

So from now on, there will be lanN and uplN
which represent local networks and uplinks respectively.

11 years agoFix syntax error.
Michael Tremer [Thu, 17 May 2012 18:30:29 +0000 (18:30 +0000)] 
Fix syntax error.

I sometimes hate merges.

11 years agoMerge remote-tracking branch 'ms/isdn'
Michael Tremer [Thu, 17 May 2012 15:30:26 +0000 (15:30 +0000)] 
Merge remote-tracking branch 'ms/isdn'

11 years agoMerge remote-tracking branch 'stevee/UsrMove'
Michael Tremer [Thu, 17 May 2012 15:28:27 +0000 (15:28 +0000)] 
Merge remote-tracking branch 'stevee/UsrMove'

11 years agoAdd basic support as a DHCP client.
Michael Tremer [Thu, 17 May 2012 15:23:58 +0000 (15:23 +0000)] 
Add basic support as a DHCP client.

12 years agoRemove all hardcoded path now use switches for it - also perform UsrMove.
Stefan Schantl [Thu, 3 May 2012 19:11:43 +0000 (21:11 +0200)] 
Remove all hardcoded path now use switches for it - also perform UsrMove.

12 years agoUpdate paths to match a modern filesystem layout.
Michael Tremer [Tue, 1 May 2012 13:50:38 +0000 (13:50 +0000)] 
Update paths to match a modern filesystem layout.

12 years agoCreate a basic version of an ISDN dial-in server. isdn
Michael Tremer [Fri, 16 Dec 2011 23:48:39 +0000 (23:48 +0000)] 
Create a basic version of an ISDN dial-in server.

There is more work needed on the error checking and
the feature did not get very much testing, yet.

12 years agoSTP: Remove sed substitutions and get information directly from mstpctl.
Michael Tremer [Mon, 12 Dec 2011 12:56:17 +0000 (12:56 +0000)] 
STP: Remove sed substitutions and get information directly from mstpctl.

12 years agobridge-stp: Make sure kernel knows about the STP state.
Vitalii Demianets [Sun, 27 Nov 2011 11:08:25 +0000 (12:08 +0100)] 
bridge-stp: Make sure kernel knows about the STP state.

From email:
  Yes, but it have issues:
  1) After log ERROR script should return failure (!=0) - after all, user-space
     stp was not setup correctly and kernel should know it. So "exit 1" should be
     inserted in two places:
      after log ERROR "mstpd is not running. STP might not work."
     and
      after log ERROR "Unknown action given: ${action}."
  2) If zone does not exist script also should return failure (!=0). Kernel
     should know that user-space stp was not started.
  3) I assume your "assert " function returns failure(non-zero) too ;)
  4) mstpctl MUST be run through exec call.
  5) thanks to above "assert" in the start case can be omitted - execution flow
     will never go that far.
  6) The final "exit 0" is superfluous.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
12 years agobridge-stp: Tell mstpd that STP was enabled for a device.
Michael Tremer [Fri, 25 Nov 2011 11:18:29 +0000 (11:18 +0000)] 
bridge-stp: Tell mstpd that STP was enabled for a device.

mstpd needs to be told about wheather STP was enabled or
disabled for a bridge.
To stay with the old command "brctl stp red0 on/off", this
is done by the bridge-stp script that is called by the kernel.

12 years agostp: Complete transition to mstpd.
Michael Tremer [Sat, 19 Nov 2011 20:23:01 +0000 (20:23 +0000)] 
stp: Complete transition to mstpd.

12 years agostp: Transition to mstpd.
Michael Tremer [Fri, 18 Nov 2011 15:32:10 +0000 (15:32 +0000)] 
stp: Transition to mstpd.

This is the first commit of changing the STP code, that will
fully rely on mstpd for STP.

In this commit, we tell mstpd about the settings, the user did.

12 years agobridge-stp: Use internal service functions for controlling mstpd.
Michael Tremer [Fri, 18 Nov 2011 15:08:01 +0000 (15:08 +0000)] 
bridge-stp: Use internal service functions for controlling mstpd.

12 years agostp: Bring own /sbin/bridge-stp.
Michael Tremer [Mon, 14 Nov 2011 14:09:04 +0000 (15:09 +0100)] 
stp: Bring own /sbin/bridge-stp.

This is doing everything we want for now.

12 years agoMerge branch 'master' of ssh://git.ipfire.org/pub/git/network
Michael Tremer [Mon, 14 Nov 2011 13:55:03 +0000 (14:55 +0100)] 
Merge branch 'master' of ssh://git.ipfire.org/pub/git/network

Conflicts:
Makefile

12 years agoisdn: Initial commit of ISDN code.
Michael Tremer [Sat, 12 Nov 2011 16:04:37 +0000 (16:04 +0000)] 
isdn: Initial commit of ISDN code.

This may be quite non-function but gives a limited way
to create an ISDN dialup connection.

It's to be decided if we will support that in future.

12 years agoFix reading DEBUG option from configuration file.
Michael Tremer [Mon, 31 Oct 2011 21:47:31 +0000 (21:47 +0000)] 
Fix reading DEBUG option from configuration file.

12 years agoBump version to 003. 003
Michael Tremer [Mon, 31 Oct 2011 19:41:49 +0000 (19:41 +0000)] 
Bump version to 003.

12 years agoFix setting local routes on zone's routing tables.
Michael Tremer [Mon, 31 Oct 2011 19:40:29 +0000 (19:40 +0000)] 
Fix setting local routes on zone's routing tables.

12 years agoFix setting the default route when there are zones without a gateway setting.
Michael Tremer [Mon, 31 Oct 2011 19:39:30 +0000 (19:39 +0000)] 
Fix setting the default route when there are zones without a gateway setting.

12 years agobonding: Fix setting mode.
Michael Tremer [Mon, 31 Oct 2011 19:34:09 +0000 (19:34 +0000)] 
bonding: Fix setting mode.

The mode cannot be changed after the device is set up.
So we set the mode prior to bringing the device up.

12 years agoChange funtion to detect ppp devices.
Michael Tremer [Mon, 31 Oct 2011 19:29:03 +0000 (19:29 +0000)] 
Change funtion to detect ppp devices.

Calling ip is not very fast.

12 years agoInstall sysctl files in /lib/sysctl.d.
Michael Tremer [Sun, 7 Aug 2011 08:55:11 +0000 (08:55 +0000)] 
Install sysctl files in /lib/sysctl.d.

12 years agoAdd script to create radvd configuration file on the fly.
Michael Tremer [Sun, 7 Aug 2011 08:53:55 +0000 (08:53 +0000)] 
Add script to create radvd configuration file on the fly.

12 years agoProperly install /etc/network/{ports,zones}.
Michael Tremer [Sat, 6 Aug 2011 08:25:09 +0000 (10:25 +0200)] 
Properly install /etc/network/{ports,zones}.

12 years agoBump version to 002. 002
Michael Tremer [Wed, 3 Aug 2011 17:18:10 +0000 (17:18 +0000)] 
Bump version to 002.

12 years agoAdd hotplugging for ethernet devices.
Michael Tremer [Wed, 3 Aug 2011 17:17:24 +0000 (17:17 +0000)] 
Add hotplugging for ethernet devices.

12 years agoManually set PATH.
Michael Tremer [Wed, 3 Aug 2011 17:16:34 +0000 (17:16 +0000)] 
Manually set PATH.

In scripts that are called by udev and stuff, there might be another
PATH.

12 years agoAdd automatic renaming of hotplugged devices.
Michael Tremer [Wed, 3 Aug 2011 14:52:58 +0000 (14:52 +0000)] 
Add automatic renaming of hotplugged devices.

Fixes #183.

12 years agowireless-ap: Fix saving channel.
Michael Tremer [Wed, 3 Aug 2011 14:49:26 +0000 (14:49 +0000)] 
wireless-ap: Fix saving channel.

12 years agoMerge remote branch 'origin/hotplug'
root [Wed, 3 Aug 2011 13:28:39 +0000 (13:28 +0000)] 
Merge remote branch 'origin/hotplug'

12 years agoIntroduce new versioning schema. 001
Michael Tremer [Fri, 29 Jul 2011 17:49:54 +0000 (17:49 +0000)] 
Introduce new versioning schema.

Create a version information file in the system.

12 years agoMerge branch 'master' of git://git.ipfire.org/network
Michael Tremer [Fri, 29 Jul 2011 17:39:02 +0000 (17:39 +0000)] 
Merge branch 'master' of git://git.ipfire.org/network

12 years agoFix setting of default routes.
Michael Tremer [Fri, 29 Jul 2011 17:38:46 +0000 (17:38 +0000)] 
Fix setting of default routes.

12 years agobridge: Fix reading of zone configuration.
Michael Tremer [Sun, 24 Jul 2011 22:22:08 +0000 (22:22 +0000)] 
bridge: Fix reading of zone configuration.

12 years agohostapd should be monitored by systemd.
Stefan Schantl [Sun, 17 Jul 2011 12:51:50 +0000 (14:51 +0200)] 
hostapd should be monitored by systemd.

12 years agoReplace ipv?_is_valid by ipcalc command.
Michael Tremer [Sat, 11 Jun 2011 15:15:39 +0000 (15:15 +0000)] 
Replace ipv?_is_valid by ipcalc command.

The ipcalc command is much faster and safer than
the shell code.

12 years agoAdd support for automatic configuration of radvd.
Michael Tremer [Sat, 11 Jun 2011 14:43:44 +0000 (14:43 +0000)] 
Add support for automatic configuration of radvd.

12 years agoEnable IPv6 packet forwarding.
Michael Tremer [Thu, 9 Jun 2011 22:17:39 +0000 (22:17 +0000)] 
Enable IPv6 packet forwarding.

12 years agoFix routing for ipv6-static hook.
Michael Tremer [Thu, 9 Jun 2011 21:42:27 +0000 (21:42 +0000)] 
Fix routing for ipv6-static hook.

12 years agoAdd sysctl files to configure the kernel for network.
Michael Tremer [Sat, 4 Jun 2011 19:37:15 +0000 (19:37 +0000)] 
Add sysctl files to configure the kernel for network.

12 years agoAdd IPv6 support for pppoe.
Michael Tremer [Sat, 4 Jun 2011 15:05:40 +0000 (15:05 +0000)] 
Add IPv6 support for pppoe.

12 years agoFixed some issues with pppoe dial-in.
Michael Tremer [Fri, 3 Jun 2011 20:55:14 +0000 (20:55 +0000)] 
Fixed some issues with pppoe dial-in.

No major stuff. Just some fixes for invalid input.

12 years agoRemove red_db_* functions.
Michael Tremer [Fri, 3 Jun 2011 19:54:41 +0000 (19:54 +0000)] 
Remove red_db_* functions.

12 years agoSome fixes when STP is disabled.
Michael Tremer [Thu, 26 May 2011 15:52:50 +0000 (15:52 +0000)] 
Some fixes when STP is disabled.

12 years agoRemove redundant logging.
Michael Tremer [Thu, 26 May 2011 15:48:32 +0000 (15:48 +0000)] 
Remove redundant logging.

12 years agohotplug: Return port name for a device.
Michael Tremer [Wed, 25 May 2011 15:11:22 +0000 (15:11 +0000)] 
hotplug: Return port name for a device.

12 years agorouting: Create routing database and set routes for ipv4.
Michael Tremer [Wed, 25 May 2011 14:13:04 +0000 (14:13 +0000)] 
routing: Create routing database and set routes for ipv4.

12 years agoEnhance logging with colors and output to stderr.
Michael Tremer [Sun, 22 May 2011 12:38:44 +0000 (12:38 +0000)] 
Enhance logging with colors and output to stderr.

13 years agoAdd support to set the hostname.
Michael Tremer [Sat, 30 Apr 2011 12:20:16 +0000 (12:20 +0000)] 
Add support to set the hostname.

Compatible with systemd.

13 years agoRemove dependency to upstart.
Michael Tremer [Fri, 8 Apr 2011 18:08:13 +0000 (20:08 +0200)] 
Remove dependency to upstart.

13 years agoInitial support for modems (PPP).
Arne Fitzenreiter [Sun, 3 Apr 2011 19:00:08 +0000 (19:00 +0000)] 
Initial support for modems (PPP).

Works for 3G/UMTS/CDMA and serial modems.

13 years agoInitial support for encrypted wireless networks.
Arne Fitzenreiter [Sun, 3 Apr 2011 14:04:22 +0000 (14:04 +0000)] 
Initial support for encrypted wireless networks.

Done at the developer meeting at Erkrath.

13 years agoFix weird device CLI command.
Michael Tremer [Sat, 12 Mar 2011 11:07:32 +0000 (11:07 +0000)] 
Fix weird device CLI command.

For now, discover and show are supported.

42 years agoipv[46]-static: Sum up some functions.
Michael Tremer [Mon, 14 Sep 1981 17:56:44 +0000 (17:56 +0000)] 
ipv[46]-static: Sum up some functions.

I packed some functions together that were kinda redundant
for both protocols. Plus a lot of bug fixing.

42 years agoMake versioning of IP protocols more modular.
Michael Tremer [Mon, 14 Sep 1981 16:12:37 +0000 (16:12 +0000)] 
Make versioning of IP protocols more modular.

42 years agobridge: Automatically enable promisc mode.
Michael Tremer [Mon, 14 Sep 1981 02:13:37 +0000 (02:13 +0000)] 
bridge: Automatically enable promisc mode.

There is (maybe) a bug in the linux kernel that
we need to set every bridge into promisc mode to
get traffic out through the bridges.

13 years agoFix error in Makefile.
Michael Tremer [Sat, 9 Oct 2010 22:02:07 +0000 (00:02 +0200)] 
Fix error in Makefile.