]>
git.ipfire.org Git - network.git/log
Michael Tremer [Sun, 24 Jun 2012 13:31:38 +0000 (13:31 +0000)]
pppoe-server: Update docs (--max-sessions=...).
Michael Tremer [Sun, 24 Jun 2012 13:20:40 +0000 (13:20 +0000)]
pppoe-server: Add option to limit sessions per MAC.
Michael Tremer [Sun, 24 Jun 2012 12:34:52 +0000 (12:34 +0000)]
bridge: Fix spacing in config list.
Michael Tremer [Sun, 24 Jun 2012 12:31:29 +0000 (12:31 +0000)]
pppoe-server: Add more information to status output.
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.
Michael Tremer [Sat, 23 Jun 2012 22:57:57 +0000 (22:57 +0000)]
pppoe-server: Add documentation.
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.
Michael Tremer [Sat, 23 Jun 2012 22:16:03 +0000 (22:16 +0000)]
Remove old comment.
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.
Michael Tremer [Sat, 23 Jun 2012 20:38:11 +0000 (20:38 +0000)]
pppoe-server: New (client) hook.
Michael Tremer [Sat, 23 Jun 2012 20:37:38 +0000 (20:37 +0000)]
logging: Fix logging to the debug console.
Michael Tremer [Sat, 23 Jun 2012 20:36:20 +0000 (20:36 +0000)]
ip: Remove an unusable log line.
Michael Tremer [Sat, 23 Jun 2012 20:35:50 +0000 (20:35 +0000)]
util: Reuse listmatch for isoneof.
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.
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.
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.
Michael Tremer [Fri, 22 Jun 2012 11:23:16 +0000 (11:23 +0000)]
ppp: Make sure that the routing tables are up to date.
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.
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.
Michael Tremer [Fri, 22 Jun 2012 10:11:48 +0000 (10:11 +0000)]
ipv4_get_netaddress: Allow passing a single IP address.
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.
Michael Tremer [Thu, 21 Jun 2012 23:06:58 +0000 (23:06 +0000)]
DNS: Generate resolv.conf when starting up the network.
Michael Tremer [Thu, 21 Jun 2012 23:05:09 +0000 (23:05 +0000)]
DNS: Add options to configure local DNS servers.
Michael Tremer [Thu, 21 Jun 2012 19:25:32 +0000 (19:25 +0000)]
pppoe: Fix syntax error.
Michael Tremer [Wed, 20 Jun 2012 23:19:34 +0000 (23:19 +0000)]
pppoe: Rework hook.
Michael Tremer [Mon, 18 Jun 2012 17:19:34 +0000 (17:19 +0000)]
Add PID number to log facility.
Michael Tremer [Sun, 17 Jun 2012 23:54:04 +0000 (23:54 +0000)]
Define a proper PATH variable.
Michael Tremer [Sun, 17 Jun 2012 23:42:01 +0000 (23:42 +0000)]
Create status output for ports.
Michael Tremer [Sun, 17 Jun 2012 22:52:30 +0000 (22:52 +0000)]
Remove option to disable coloured output.
Michael Tremer [Sun, 17 Jun 2012 22:48:05 +0000 (22:48 +0000)]
Tidy up coloured logging code.
Michael Tremer [Sun, 17 Jun 2012 22:38:25 +0000 (22:38 +0000)]
Update the output of some hooks.
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.
Michael Tremer [Sun, 17 Jun 2012 22:32:51 +0000 (22:32 +0000)]
routing: Fix creating of routing tables for uplinks.
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.
Michael Tremer [Sun, 10 Jun 2012 19:26:57 +0000 (19:26 +0000)]
dhcp-client: Fix routing configuration.
Michael Tremer [Sun, 10 Jun 2012 19:25:43 +0000 (19:25 +0000)]
Fix printing and saving global configuration parameters.
Michael Tremer [Sun, 10 Jun 2012 15:35:10 +0000 (15:35 +0000)]
Update port hooks according to the last changes.
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.
Michael Tremer [Sun, 10 Jun 2012 14:51:54 +0000 (14:51 +0000)]
Some work on making things faster.
No functional changes.
Michael Tremer [Sun, 10 Jun 2012 09:38:54 +0000 (09:38 +0000)]
Approach for better status output.
Michael Tremer [Fri, 8 Jun 2012 12:59:21 +0000 (12:59 +0000)]
doc: Confused STP standards.
Michael Tremer [Thu, 7 Jun 2012 21:41:22 +0000 (21:41 +0000)]
doc: Add man page for the bridge hook.
Michael Tremer [Thu, 7 Jun 2012 21:40:18 +0000 (21:40 +0000)]
Make the help command exit gracefully on zone hooks.
Michael Tremer [Thu, 7 Jun 2012 20:51:06 +0000 (20:51 +0000)]
Add CLI commands to view help for hooks.
Michael Tremer [Thu, 7 Jun 2012 13:31:58 +0000 (13:31 +0000)]
Fix "network device" command and document it.
Michael Tremer [Wed, 6 Jun 2012 16:09:11 +0000 (16:09 +0000)]
Move network specific command line code to network file.
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.
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.
Michael Tremer [Wed, 6 Jun 2012 15:04:29 +0000 (15:04 +0000)]
ipv6-static: Don't explode IPv6 addresses in conifguration files.
Michael Tremer [Tue, 5 Jun 2012 20:52:56 +0000 (20:52 +0000)]
Fix two missing CONFIG_DIR substitutions.
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.
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.
Michael Tremer [Tue, 5 Jun 2012 14:43:53 +0000 (14:43 +0000)]
Add "network zone list-hooks" command.
Michael Tremer [Tue, 5 Jun 2012 14:10:00 +0000 (14:10 +0000)]
Add header to functions file.
Michael Tremer [Thu, 31 May 2012 23:43:59 +0000 (23:43 +0000)]
Add documentation about the config options.
Michael Tremer [Thu, 31 May 2012 23:40:21 +0000 (23:40 +0000)]
Remove a line of debugging code.
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.
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.
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.
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.
Michael Tremer [Mon, 28 May 2012 13:24:42 +0000 (13:24 +0000)]
Move config functions into seperate file.
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.
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.
Michael Tremer [Sun, 27 May 2012 14:11:48 +0000 (14:11 +0000)]
Fix typo in listsort().
Michael Tremer [Sun, 27 May 2012 13:57:09 +0000 (13:57 +0000)]
Reduce startup time by letting systemd create our files in /run.
Michael Tremer [Sun, 27 May 2012 13:45:09 +0000 (13:45 +0000)]
Don't load 8021q module when we don't need it.
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.
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.
Michael Tremer [Sun, 27 May 2012 13:07:08 +0000 (13:07 +0000)]
Add functions to set bridge properties.
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.
Michael Tremer [Sun, 27 May 2012 12:23:55 +0000 (12:23 +0000)]
Add systemd unit files for networking.
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.
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.
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.
Michael Tremer [Sun, 27 May 2012 11:59:36 +0000 (11:59 +0000)]
Move all port patterns into functions.constants.
Michael Tremer [Sun, 27 May 2012 11:58:29 +0000 (11:58 +0000)]
Add detection for wireless devices.
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.
Michael Tremer [Fri, 25 May 2012 12:06:57 +0000 (12:06 +0000)]
bridge-stp: Update script to work with newer versions of mstpd.
Michael Tremer [Fri, 25 May 2012 09:24:54 +0000 (09:24 +0000)]
Remove a lot of 'devicify' calls to increase speed of code.
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.
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.
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.
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.
Michael Tremer [Thu, 17 May 2012 18:30:29 +0000 (18:30 +0000)]
Fix syntax error.
I sometimes hate merges.
Michael Tremer [Thu, 17 May 2012 15:30:26 +0000 (15:30 +0000)]
Merge remote-tracking branch 'ms/isdn'
Michael Tremer [Thu, 17 May 2012 15:28:27 +0000 (15:28 +0000)]
Merge remote-tracking branch 'stevee/UsrMove'
Michael Tremer [Thu, 17 May 2012 15:23:58 +0000 (15:23 +0000)]
Add basic support as a DHCP client.
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.
Michael Tremer [Tue, 1 May 2012 13:50:38 +0000 (13:50 +0000)]
Update paths to match a modern filesystem layout.
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.
Michael Tremer [Mon, 12 Dec 2011 12:56:17 +0000 (12:56 +0000)]
STP: Remove sed substitutions and get information directly from mstpctl.
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>
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.
Michael Tremer [Sat, 19 Nov 2011 20:23:01 +0000 (20:23 +0000)]
stp: Complete 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.
Michael Tremer [Fri, 18 Nov 2011 15:08:01 +0000 (15:08 +0000)]
bridge-stp: Use internal service functions for controlling mstpd.
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.
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
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.
Michael Tremer [Mon, 31 Oct 2011 21:47:31 +0000 (21:47 +0000)]
Fix reading DEBUG option from configuration file.