]> git.ipfire.org Git - people/ms/network.git/log
people/ms/network.git
11 years agoBump version to 004. 004
Michael Tremer [Sun, 24 Jun 2012 23:18:10 +0000 (23:18 +0000)] 
Bump version to 004.

11 years agopppoe: Fix wrong variable name (auth methods).
Michael Tremer [Sun, 24 Jun 2012 13:58:12 +0000 (13:58 +0000)] 
pppoe: Fix wrong variable name (auth methods).

11 years agopppoe-server: Update docs (--max-sessions=...).
Michael Tremer [Sun, 24 Jun 2012 13:31:38 +0000 (13:31 +0000)] 
pppoe-server: Update docs (--max-sessions=...).

11 years agopppoe-server: Add option to limit sessions per MAC.
Michael Tremer [Sun, 24 Jun 2012 13:20:40 +0000 (13:20 +0000)] 
pppoe-server: Add option to limit sessions per MAC.

11 years agobridge: Fix spacing in config list.
Michael Tremer [Sun, 24 Jun 2012 12:34:52 +0000 (12:34 +0000)] 
bridge: Fix spacing in config list.

11 years agopppoe-server: Add more information to status output.
Michael Tremer [Sun, 24 Jun 2012 12:31:29 +0000 (12:31 +0000)] 
pppoe-server: Add more information to status output.

11 years agodns: Don't update resolv.conf when showing the list of DNS servers.
Michael Tremer [Sat, 23 Jun 2012 23:18:21 +0000 (23:18 +0000)] 
dns: Don't update resolv.conf when showing the list of DNS servers.

11 years agopppoe-server: Add documentation.
Michael Tremer [Sat, 23 Jun 2012 22:57:57 +0000 (22:57 +0000)] 
pppoe-server: Add documentation.

11 years agopppoe-server: Remove -k flag.
Michael Tremer [Sat, 23 Jun 2012 22:32:25 +0000 (22:32 +0000)] 
pppoe-server: Remove -k flag.

Our version of rp-pppoe's pppoe-server does not support
the userspace implementation. Therefore, kernel-mode
PPPoE is enabled by default and the -k option is not
present anymore.

11 years agoRemove old comment.
Michael Tremer [Sat, 23 Jun 2012 22:16:03 +0000 (22:16 +0000)] 
Remove old comment.

11 years agoutil: Remove touch replacement.
Michael Tremer [Sat, 23 Jun 2012 22:13:55 +0000 (22:13 +0000)] 
util: Remove touch replacement.

The removed function removed all content from the file which
is inconvenient. Touch is not called too often though.

11 years agopppoe-server: New (client) hook.
Michael Tremer [Sat, 23 Jun 2012 20:38:11 +0000 (20:38 +0000)] 
pppoe-server: New (client) hook.

11 years agologging: Fix logging to the debug console.
Michael Tremer [Sat, 23 Jun 2012 20:37:38 +0000 (20:37 +0000)] 
logging: Fix logging to the debug console.

11 years agoip: Remove an unusable log line.
Michael Tremer [Sat, 23 Jun 2012 20:36:20 +0000 (20:36 +0000)] 
ip: Remove an unusable log line.

11 years agoutil: Reuse listmatch for isoneof.
Michael Tremer [Sat, 23 Jun 2012 20:35:50 +0000 (20:35 +0000)] 
util: Reuse listmatch for isoneof.

11 years agoconfig: Don't change the HOOK variable when sourcing a configuration file.
Michael Tremer [Sat, 23 Jun 2012 15:54:32 +0000 (15:54 +0000)] 
config: Don't change the HOOK variable when sourcing a configuration file.

11 years agoppp: Make up/down scripts usable for other things.
Michael Tremer [Sat, 23 Jun 2012 10:29:07 +0000 (10:29 +0000)] 
ppp: Make up/down scripts usable for other things.

If there is no such zone, we don't do anything.

11 years agoppp: Add some advanced settings.
Michael Tremer [Fri, 22 Jun 2012 12:34:05 +0000 (12:34 +0000)] 
ppp: Add some advanced settings.

LCP echo failure and interval as well as the default-asyncmap option.

11 years agoppp: Make sure that the routing tables are up to date.
Michael Tremer [Fri, 22 Jun 2012 11:23:16 +0000 (11:23 +0000)] 
ppp: Make sure that the routing tables are up to date.

11 years agopppd: Start the daemon and wait for an established connection.
Michael Tremer [Fri, 22 Jun 2012 11:08:23 +0000 (11:08 +0000)] 
pppd: Start the daemon and wait for an established connection.

Thanks to Lennart Poettering for advice how to solve this problem.

pppd now will be started by systemd and try to establish the connection.
systemctl start ... will block until the connection was established
(i.e. pppd forked into the background) or pppd exited.

The exit code will then be retrieved by systemctl show for
further processing.

11 years agopppoe: Bring up/down the port before/after pppd is started/stopped.
Michael Tremer [Fri, 22 Jun 2012 11:06:56 +0000 (11:06 +0000)] 
pppoe: Bring up/down the port before/after pppd is started/stopped.

11 years agoipv4_get_netaddress: Allow passing a single IP address.
Michael Tremer [Fri, 22 Jun 2012 10:11:48 +0000 (10:11 +0000)] 
ipv4_get_netaddress: Allow passing a single IP address.

11 years agoReword the automatic configuration file header.
Michael Tremer [Thu, 21 Jun 2012 23:08:56 +0000 (23:08 +0000)] 
Reword the automatic configuration file header.

The wording was not quite good and this should be
much better when reading fast.

11 years agoDNS: Generate resolv.conf when starting up the network.
Michael Tremer [Thu, 21 Jun 2012 23:06:58 +0000 (23:06 +0000)] 
DNS: Generate resolv.conf when starting up the network.

11 years agoDNS: Add options to configure local DNS servers.
Michael Tremer [Thu, 21 Jun 2012 23:05:09 +0000 (23:05 +0000)] 
DNS: Add options to configure local DNS servers.

11 years agopppoe: Fix syntax error.
Michael Tremer [Thu, 21 Jun 2012 19:25:32 +0000 (19:25 +0000)] 
pppoe: Fix syntax error.

11 years agopppoe: Rework hook.
Michael Tremer [Wed, 20 Jun 2012 23:19:34 +0000 (23:19 +0000)] 
pppoe: Rework hook.

11 years agoAdd PID number to log facility.
Michael Tremer [Mon, 18 Jun 2012 17:19:34 +0000 (17:19 +0000)] 
Add PID number to log facility.

11 years agoDefine a proper PATH variable.
Michael Tremer [Sun, 17 Jun 2012 23:54:04 +0000 (23:54 +0000)] 
Define a proper PATH variable.

11 years agoCreate status output for ports.
Michael Tremer [Sun, 17 Jun 2012 23:42:01 +0000 (23:42 +0000)] 
Create status output for ports.

11 years agoRemove option to disable coloured output.
Michael Tremer [Sun, 17 Jun 2012 22:52:30 +0000 (22:52 +0000)] 
Remove option to disable coloured output.

11 years agoTidy up coloured logging code.
Michael Tremer [Sun, 17 Jun 2012 22:48:05 +0000 (22:48 +0000)] 
Tidy up coloured logging code.

11 years agoUpdate the output of some hooks.
Michael Tremer [Sun, 17 Jun 2012 22:38:25 +0000 (22:38 +0000)] 
Update the output of some hooks.

11 years agoRework colours.
Michael Tremer [Sun, 17 Jun 2012 22:33:20 +0000 (22:33 +0000)] 
Rework colours.

It is terrible to create coloured output without writing too
many lines of code. So these new variables are named a bit shorter
and there is also the possibility to colour the background and stuff.

There are now some predefined lines which will be handy and used
very often.

11 years agorouting: Fix creating of routing tables for uplinks.
Michael Tremer [Sun, 17 Jun 2012 22:32:51 +0000 (22:32 +0000)] 
routing: Fix creating of routing tables for uplinks.

11 years agobridge-stp: Fix executing mstpctl.
Michael Tremer [Sun, 10 Jun 2012 19:27:15 +0000 (19:27 +0000)] 
bridge-stp: Fix executing mstpctl.

Also show an error message when there has been an error.

11 years agodhcp-client: Fix routing configuration.
Michael Tremer [Sun, 10 Jun 2012 19:26:57 +0000 (19:26 +0000)] 
dhcp-client: Fix routing configuration.

11 years agoFix printing and saving global configuration parameters.
Michael Tremer [Sun, 10 Jun 2012 19:25:43 +0000 (19:25 +0000)] 
Fix printing and saving global configuration parameters.

11 years agoUpdate port hooks according to the last changes.
Michael Tremer [Sun, 10 Jun 2012 15:35:10 +0000 (15:35 +0000)] 
Update port hooks according to the last changes.

11 years agoExecute hooks faster by sourcing them.
Michael Tremer [Sun, 10 Jun 2012 14:53:01 +0000 (14:53 +0000)] 
Execute hooks faster by sourcing them.

Also most of the hook_* functions were partly rewritten
for performance.

11 years agoSome work on making things faster.
Michael Tremer [Sun, 10 Jun 2012 14:51:54 +0000 (14:51 +0000)] 
Some work on making things faster.

No functional changes.

11 years agoApproach for better status output.
Michael Tremer [Sun, 10 Jun 2012 09:38:54 +0000 (09:38 +0000)] 
Approach for better status output.

11 years agodoc: Confused STP standards.
Michael Tremer [Fri, 8 Jun 2012 12:59:21 +0000 (12:59 +0000)] 
doc: Confused STP standards.

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.

11 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.

11 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