]> git.ipfire.org Git - people/stevee/network.git/log
people/stevee/network.git
9 years agoMajor rewrite of hotplug handling
Michael Tremer [Wed, 10 Dec 2014 02:02:53 +0000 (02:02 +0000)] 
Major rewrite of hotplug handling

9 years agoRemove support for ISDN
Michael Tremer [Sat, 6 Dec 2014 19:18:37 +0000 (20:18 +0100)] 
Remove support for ISDN

ISDN has never been deployed very much
in the world except Germany and some
other countries. Most of them went away
from ISDN to VoIP for telephony and
DSL or fibre for data connections.

The bandwidth is very small with only
64k per channel and this has only been
implemented for backup purposes if the
primary connection cut off. Nowadays
there is mobile connections with much
more bandwidth available for this.

Nobody is able (due to lack of ISDN)
and willing to support this any more.
Hence the entire support for ISDN
is removed.

9 years agoRemove support for Teredo
Michael Tremer [Sat, 6 Dec 2014 19:14:17 +0000 (20:14 +0100)] 
Remove support for Teredo

The protocol is not in much use any more
and it didn't work very well for our needs
as it just gave you a single address from
the IPv6 address space.

9 years agoImprove parsing configuration files
Michael Tremer [Sat, 6 Dec 2014 19:06:51 +0000 (20:06 +0100)] 
Improve parsing configuration files

9 years agoipv4-static: Update hook
Michael Tremer [Sun, 28 Sep 2014 21:18:52 +0000 (23:18 +0200)] 
ipv4-static: Update hook

Some minor cleanup without functional changes.

9 years agoRectify config creation
Michael Tremer [Sun, 28 Sep 2014 15:12:47 +0000 (17:12 +0200)] 
Rectify config creation

9 years agowireless-ap: Bring up hostapd, too when device is plugged in
Michael Tremer [Sat, 6 Sep 2014 20:15:17 +0000 (22:15 +0200)] 
wireless-ap: Bring up hostapd, too when device is plugged in

9 years agohotplug: Must not stop after first port has been hit
Michael Tremer [Sat, 6 Sep 2014 20:14:49 +0000 (22:14 +0200)] 
hotplug: Must not stop after first port has been hit

Some devices may create multiple interfaces that need
to be created.

9 years agowireless monitor: Use proper port name
Michael Tremer [Sat, 6 Sep 2014 19:44:13 +0000 (21:44 +0200)] 
wireless monitor: Use proper port name

9 years agozone: Don't handle hotplug events for zones
Michael Tremer [Sat, 6 Sep 2014 16:07:37 +0000 (18:07 +0200)] 
zone: Don't handle hotplug events for zones

9 years agozone: Send systemd updates on hotplug events
Michael Tremer [Sat, 6 Sep 2014 15:15:25 +0000 (17:15 +0200)] 
zone: Send systemd updates on hotplug events

9 years agosystemd: Fix network initialization on boot
Michael Tremer [Sat, 6 Sep 2014 15:14:59 +0000 (17:14 +0200)] 
systemd: Fix network initialization on boot

9 years agobonding: Improve robustness of the code
Michael Tremer [Sat, 6 Sep 2014 13:24:07 +0000 (15:24 +0200)] 
bonding: Improve robustness of the code

9 years agobonding: Rewrite the port hook and fix various errors
Michael Tremer [Sat, 6 Sep 2014 13:09:40 +0000 (15:09 +0200)] 
bonding: Rewrite the port hook and fix various errors

9 years agoutil: Silence fwrite on error
Michael Tremer [Sat, 6 Sep 2014 13:08:28 +0000 (15:08 +0200)] 
util: Silence fwrite on error

9 years agodevice: Fix check for bonded devices
Michael Tremer [Sat, 6 Sep 2014 13:08:09 +0000 (15:08 +0200)] 
device: Fix check for bonded devices

9 years agostp: Silence stp_bridge_set_forward_delay a bit
Michael Tremer [Sat, 6 Sep 2014 12:12:57 +0000 (14:12 +0200)] 
stp: Silence stp_bridge_set_forward_delay a bit

9 years agodevice: Rewrite device_set_address
Michael Tremer [Sat, 6 Sep 2014 12:08:44 +0000 (14:08 +0200)] 
device: Rewrite device_set_address

9 years agoservice: Don't start services if they are already running
Michael Tremer [Sat, 6 Sep 2014 12:01:58 +0000 (14:01 +0200)] 
service: Don't start services if they are already running

9 years agobridge: Simplify the hook and make it more robust against missing ports
Michael Tremer [Sat, 6 Sep 2014 11:51:10 +0000 (13:51 +0200)] 
bridge: Simplify the hook and make it more robust against missing ports

9 years agobatman-adv: Remove a now wrong assertion
Michael Tremer [Sat, 6 Sep 2014 11:24:02 +0000 (13:24 +0200)] 
batman-adv: Remove a now wrong assertion

9 years agodevice: Rewrite batman-adv-port detection
Michael Tremer [Sat, 6 Sep 2014 11:15:59 +0000 (13:15 +0200)] 
device: Rewrite batman-adv-port detection

When the batman-adv module is loaded, the batman_adv
subdirectory can be found in the sys tree of every network
device, so this check returned positive for every device.

The function has been rewritten to read the content of the
status file which will return the correct result.

9 years agonetwork-hotplug-rename: Improve log message when renaming a device
Michael Tremer [Sat, 6 Sep 2014 11:14:34 +0000 (13:14 +0200)] 
network-hotplug-rename: Improve log message when renaming a device

9 years agobatman-adv-port: Initialize PHY variable
Michael Tremer [Sat, 6 Sep 2014 09:55:51 +0000 (11:55 +0200)] 
batman-adv-port: Initialize PHY variable

9 years agobatman-adv: Disable hotplug hook
Michael Tremer [Sat, 6 Sep 2014 09:55:19 +0000 (11:55 +0200)] 
batman-adv: Disable hotplug hook

Doesn't work as expected right now and needs to
be rewritten later.

9 years agoLet hotplug handlers return a status code
Michael Tremer [Sat, 6 Sep 2014 09:54:04 +0000 (11:54 +0200)] 
Let hotplug handlers return a status code

After a port has been hotplugged, we will walk through all
port configuration files and check if the device matches.
The hooks must now return whether they have handled the event
so that we can stop searching or not.

9 years agoOnly enable auto-enabled zones on hotplug events
Michael Tremer [Sat, 6 Sep 2014 08:42:07 +0000 (10:42 +0200)] 
Only enable auto-enabled zones on hotplug events

9 years agoMakefile: Expand @helpersdir@
Michael Tremer [Thu, 4 Sep 2014 19:18:48 +0000 (21:18 +0200)] 
Makefile: Expand @helpersdir@

9 years agoaiccu: Fix syntax error
Michael Tremer [Thu, 4 Sep 2014 19:08:51 +0000 (21:08 +0200)] 
aiccu: Fix syntax error

9 years agonetwork status: Show if zones are enabled to start at boot
Michael Tremer [Thu, 4 Sep 2014 18:59:49 +0000 (20:59 +0200)] 
network status: Show if zones are enabled to start at boot

9 years agoUpdate documentation according to config -> settings change
Michael Tremer [Thu, 4 Sep 2014 18:26:06 +0000 (20:26 +0200)] 
Update documentation according to config -> settings change

9 years agostp: Change comparison operator
Michael Tremer [Thu, 4 Sep 2014 18:19:03 +0000 (20:19 +0200)] 
stp: Change comparison operator

bash shows an error message if one of the values is empty
as it is trying to do an integer comparison.

9 years agoRename all "config" to "settings"
Michael Tremer [Thu, 4 Sep 2014 18:13:15 +0000 (20:13 +0200)] 
Rename all "config" to "settings"

9 years agoMove config hooks into a separate directory
Michael Tremer [Sun, 31 Aug 2014 22:17:22 +0000 (00:17 +0200)] 
Move config hooks into a separate directory

9 years agopppoe: Allow assigning ports to pppoe zones
Michael Tremer [Sun, 31 Aug 2014 21:55:11 +0000 (23:55 +0200)] 
pppoe: Allow assigning ports to pppoe zones

9 years agobridge-stp: Fix wrong variable name
Michael Tremer [Sun, 31 Aug 2014 15:50:38 +0000 (17:50 +0200)] 
bridge-stp: Fix wrong variable name

9 years agobridge: Apply configured cost settings for each port
Michael Tremer [Sun, 31 Aug 2014 15:50:21 +0000 (17:50 +0200)] 
bridge: Apply configured cost settings for each port

9 years agoFix installation of bridge-stp helper
Michael Tremer [Sun, 31 Aug 2014 15:38:05 +0000 (17:38 +0200)] 
Fix installation of bridge-stp helper

When make install was executed multiple times, the install hook
created a recursive symlink. Now the old link gets removed and
the correct symlink will be created.

9 years agoRemove port hooks as subhooks for zones.
Michael Tremer [Sun, 31 Aug 2014 15:04:38 +0000 (17:04 +0200)] 
Remove port hooks as subhooks for zones.

All port hooks handle ethernet-like devices which doesn't
make it necessary to duplicate them over and over again.

9 years agoRemove support for openvswitch (switch zone hook)
Michael Tremer [Wed, 27 Aug 2014 10:15:18 +0000 (12:15 +0200)] 
Remove support for openvswitch (switch zone hook)

It doesn't work very well any ways and I don't want to
maintain it as it does not give us any real advantage
at the moment.

9 years agoRemove batman-adv zones
Michael Tremer [Wed, 27 Aug 2014 10:12:13 +0000 (12:12 +0200)] 
Remove batman-adv zones

BATMAN networks are usually switched and not routed so this
hook is not necessary any more. If you want to route them any
way you can simply create a zone with only one batman-adv port.

9 years agonetwork-hotplug-rename: Read network configuration, too
Michael Tremer [Wed, 27 Aug 2014 10:02:31 +0000 (12:02 +0200)] 
network-hotplug-rename: Read network configuration, too

9 years agoIntroduce "network device ap0 monitor" command
Michael Tremer [Tue, 26 Aug 2014 17:51:53 +0000 (19:51 +0200)] 
Introduce "network device ap0 monitor" command

This enables the user to monitor all 802.11 frames
that traverse the wireless interface.

9 years agoConfigure wireless reg domain when wireless hardware is plugged in
Michael Tremer [Tue, 26 Aug 2014 17:51:24 +0000 (19:51 +0200)] 
Configure wireless reg domain when wireless hardware is plugged in

9 years agoMake searching for the corresponding phy of a wireless device faster
Michael Tremer [Tue, 26 Aug 2014 17:36:43 +0000 (19:36 +0200)] 
Make searching for the corresponding phy of a wireless device faster

9 years agoMake the wireless regulatory domain a global configuration option
Michael Tremer [Tue, 26 Aug 2014 13:22:30 +0000 (15:22 +0200)] 
Make the wireless regulatory domain a global configuration option

It does not make any sense to make this configurable per device
as the kernel does not support this.

9 years agonetwork-hotplug: Read network configuration
Michael Tremer [Tue, 26 Aug 2014 10:18:59 +0000 (12:18 +0200)] 
network-hotplug: Read network configuration

The udev hotplug handler did not load the network configuration
file so that enabling the debugging mode had no effect here.

9 years agobatman-adv-port: Fix wrong function call
Michael Tremer [Tue, 26 Aug 2014 09:23:48 +0000 (11:23 +0200)] 
batman-adv-port: Fix wrong function call

9 years agobatman-adv-port: Increase MTU to 1560 as suggested by the batman guys
Michael Tremer [Tue, 26 Aug 2014 09:22:52 +0000 (11:22 +0200)] 
batman-adv-port: Increase MTU to 1560 as suggested by the batman guys

"The MTU of interface batp0 is too small (1528) to handle the transport
of batman-adv packets. Packets going over this interface will be
fragmented on layer2 which could impact the performance.
Setting the MTU to 1560 would solve the problem."

9 years agoImport missing BATMAN zone hook
Michael Tremer [Sun, 24 Aug 2014 19:48:10 +0000 (21:48 +0200)] 
Import missing BATMAN zone hook

10 years agohe: Update URL for changing tunnel endpoint address.
Michael Tremer [Sun, 5 Jan 2014 21:58:05 +0000 (22:58 +0100)] 
he: Update URL for changing tunnel endpoint address.

https://www.tunnelbroker.net/forums/index.php?topic=1994.0

10 years agoAdd COPYING file.
Michael Tremer [Fri, 6 Sep 2013 13:22:26 +0000 (15:22 +0200)] 
Add COPYING file.

10 years agoRemove executable permissions from source files.
Michael Tremer [Fri, 6 Sep 2013 13:19:22 +0000 (15:19 +0200)] 
Remove executable permissions from source files.

10 years agoUse autotools.
Michael Tremer [Fri, 6 Sep 2013 13:03:43 +0000 (15:03 +0200)] 
Use autotools.

10 years agohostapd: Enable WMM by default.
Michael Tremer [Fri, 23 Aug 2013 15:38:33 +0000 (17:38 +0200)] 
hostapd: Enable WMM by default.

10 years agohostapd_config_write: Reorder arguments in alphabetical order.
Michael Tremer [Fri, 23 Aug 2013 15:22:26 +0000 (17:22 +0200)] 
hostapd_config_write: Reorder arguments in alphabetical order.

10 years agohostapd: Enable 802.11d by default for all APs.
Michael Tremer [Fri, 23 Aug 2013 12:54:16 +0000 (14:54 +0200)] 
hostapd: Enable 802.11d by default for all APs.

10 years agowireless: Add function to find DFS channels.
Michael Tremer [Fri, 23 Aug 2013 12:53:48 +0000 (14:53 +0200)] 
wireless: Add function to find DFS channels.

10 years agoMerge remote-tracking branch 'stevee/systemd-network'
Michael Tremer [Tue, 21 May 2013 20:27:55 +0000 (22:27 +0200)] 
Merge remote-tracking branch 'stevee/systemd-network'

10 years agoAdd functionality to send USSD commands.
Michael Tremer [Mon, 20 May 2013 20:00:07 +0000 (22:00 +0200)] 
Add functionality to send USSD commands.

10 years agomodem: Don't log empty lines.
Michael Tremer [Sun, 19 May 2013 18:30:31 +0000 (20:30 +0200)] 
modem: Don't log empty lines.

10 years agomodem: Wait a moment after initializing.
Michael Tremer [Sun, 19 May 2013 17:50:44 +0000 (19:50 +0200)] 
modem: Wait a moment after initializing.

Some UMTS modems need some extra seconds to initialize
themselves after reset, so we wait a short moment...

10 years agoAdd whitelist of serial USB devices.
Michael Tremer [Sun, 19 May 2013 17:33:33 +0000 (19:33 +0200)] 
Add whitelist of serial USB devices.

If you connect a USB serial adapter to the system, it
will automatically be checked if it is a modem.
We do that by sending AT commands to them and wait for a
response. Some devices that are not a modem may get confused
by that, so we whitelist them here.

10 years agoIntroduce enable/disable option for network zones. systemd-network
Stefan Schantl [Sun, 19 May 2013 14:18:40 +0000 (16:18 +0200)] 
Introduce enable/disable option for network zones.

In the past all network zones have been started during the boot processs of the system,
even if they cannot be started because for example the required device is missing.

From now it will be possible to enable or disable network zones for startup. We use the systemd
network.target to set which zones should be started.

10 years agomodem: Save IMSI (optionally).
Michael Tremer [Sun, 19 May 2013 08:59:43 +0000 (10:59 +0200)] 
modem: Save IMSI (optionally).

10 years agopppd-angel: Enhance logging.
Michael Tremer [Sun, 19 May 2013 08:57:21 +0000 (10:57 +0200)] 
pppd-angel: Enhance logging.

10 years agopppd-angel: Use a default holdoff time of 10 seconds.
Michael Tremer [Sun, 19 May 2013 08:52:20 +0000 (10:52 +0200)] 
pppd-angel: Use a default holdoff time of 10 seconds.

10 years agoHandle hotplugging of serial devices.
Michael Tremer [Sun, 19 May 2013 08:56:32 +0000 (10:56 +0200)] 
Handle hotplugging of serial devices.

10 years agomodem: Fix getting provider information.
Michael Tremer [Sat, 18 May 2013 12:14:22 +0000 (14:14 +0200)] 
modem: Fix getting provider information.

If there were spaces in the output string, the string has not
been correctly parsed.

10 years agoEnhance backtrace with called binary.
Michael Tremer [Sat, 18 May 2013 10:34:41 +0000 (12:34 +0200)] 
Enhance backtrace with called binary.

So it is easier to find out which command has been
executed.

10 years agoRework ppp network functionality and introduce the pppd-angel.
Michael Tremer [Sun, 12 May 2013 20:01:18 +0000 (22:01 +0200)] 
Rework ppp network functionality and introduce the pppd-angel.

10 years agoMerge remote-tracking branch 'stevee/man-pages'
Michael Tremer [Thu, 16 May 2013 21:09:24 +0000 (23:09 +0200)] 
Merge remote-tracking branch 'stevee/man-pages'

10 years agoMerge remote-tracking branch 'stevee/fixes'
Michael Tremer [Thu, 16 May 2013 21:09:05 +0000 (23:09 +0200)] 
Merge remote-tracking branch 'stevee/fixes'

10 years agopptp: Add documentation. pptp
Stefan Schantl [Thu, 16 May 2013 17:35:27 +0000 (19:35 +0200)] 
pptp: Add documentation.

10 years agoheaders: Add missing function and rename existing ones. fixes
Stefan Schantl [Sun, 12 May 2013 17:06:16 +0000 (17:06 +0000)] 
headers: Add missing function and rename existing ones.

Add a missing function for hook_add and rename the existing one
to fit the new hook functions layout.

10 years agorouting: Switch routes priority between ptp and ethernet devices.
Stefan Schantl [Sun, 12 May 2013 17:04:26 +0000 (17:04 +0000)] 
routing: Switch routes priority between ptp and ethernet devices.

10 years agoAdd missing hook_add to the commands_zone list.
Stefan Schantl [Sun, 12 May 2013 17:02:05 +0000 (17:02 +0000)] 
Add missing hook_add to the commands_zone list.

10 years agofunctions.config: Fix call for check function.
Stefan Schantl [Sun, 12 May 2013 17:00:04 +0000 (17:00 +0000)] 
functions.config: Fix call for check function.

If a check function is not available don't crash with an error.

10 years agoAdd support for pptp dialin.
Stefan Schantl [Sun, 26 Aug 2012 12:20:55 +0000 (14:20 +0200)] 
Add support for pptp dialin.

10 years ago6rd and 6to4: Replace the three dots in the manpages. man-pages
Stefan Schantl [Sat, 11 May 2013 11:39:33 +0000 (11:39 +0000)] 
6rd and 6to4: Replace the three dots in the manpages.

10 years agoMerge remote-tracking branch 'stevee/error-if-check-fails'
Michael Tremer [Sat, 11 May 2013 10:54:09 +0000 (12:54 +0200)] 
Merge remote-tracking branch 'stevee/error-if-check-fails'

10 years ago6rd: Add documentation.
Stefan Schantl [Sat, 11 May 2013 18:48:08 +0000 (18:48 +0000)] 
6rd: Add documentation.

10 years ago6rd: Change cmdline option to public-ipv4-address.
Stefan Schantl [Sat, 11 May 2013 18:29:53 +0000 (18:29 +0000)] 
6rd: Change cmdline option to public-ipv4-address.

I change the command line option for the public IPv4 address from "--public-address" to
"--public-ipv4-address" to clarify the required input data.

10 years ago6rd: Rename hook functions to match the latest function naming scheme.
Stefan Schantl [Thu, 9 May 2013 17:25:22 +0000 (17:25 +0000)] 
6rd: Rename hook functions to match the latest function naming scheme.

10 years agoMerge branch 'master' into 6rd-new
Stefan Schantl [Thu, 9 May 2013 04:33:46 +0000 (04:33 +0000)] 
Merge branch 'master' into 6rd-new

10 years agoExit if the check functionality of a hook fails.
Stefan Schantl [Thu, 9 May 2013 04:30:49 +0000 (04:30 +0000)] 
Exit if the check functionality of a hook fails.

Introduce the exit with a critical error if the check function of a hook fails.

10 years agoAdd 6rd tunnel functionality.
Stefan Schantl [Thu, 9 May 2013 04:26:51 +0000 (04:26 +0000)] 
Add 6rd tunnel functionality.

Introduces a hook that can connect to 6rd border relay servers.

10 years agoRenew hook function naming scheme.
Michael Tremer [Wed, 8 May 2013 19:18:56 +0000 (21:18 +0200)] 
Renew hook function naming scheme.

10 years agodhcp+pppoe: Make prefix delegation configurable.
Michael Tremer [Mon, 6 May 2013 11:08:57 +0000 (13:08 +0200)] 
dhcp+pppoe: Make prefix delegation configurable.

10 years agopppoe: Make IPv6 configurable.
Michael Tremer [Mon, 6 May 2013 10:31:09 +0000 (12:31 +0200)] 
pppoe: Make IPv6 configurable.

10 years agoconfig: Better formatting for configuration dump.
Michael Tremer [Sun, 5 May 2013 21:03:40 +0000 (23:03 +0200)] 
config: Better formatting for configuration dump.

10 years agoiptables: Automatically convert icmp to icmpv6 for IPv6.
Michael Tremer [Sun, 5 May 2013 21:01:21 +0000 (23:01 +0200)] 
iptables: Automatically convert icmp to icmpv6 for IPv6.

10 years agofirewall: Enhance filtering for INVALID packets.
Michael Tremer [Sun, 5 May 2013 20:45:00 +0000 (22:45 +0200)] 
firewall: Enhance filtering for INVALID packets.

10 years agoipv6: Replace configuration with new sysctl commands.
Michael Tremer [Sun, 5 May 2013 18:26:59 +0000 (20:26 +0200)] 
ipv6: Replace configuration with new sysctl commands.

10 years agofirewall: Re-unity firewall6/4 configuration again.
Michael Tremer [Sun, 5 May 2013 16:47:29 +0000 (18:47 +0200)] 
firewall: Re-unity firewall6/4 configuration again.

10 years agofirewall: Add kernel initialization.
Michael Tremer [Sun, 5 May 2013 16:13:57 +0000 (18:13 +0200)] 
firewall: Add kernel initialization.

When the network/firewall is started, prior to that the
firewall-kernel-init script is started that loads our
configuration into the kernel.

The static sysctl configuration files are removed to
be able to configure some of the options.

10 years agofirewall: Add global ICMP filter table.
Michael Tremer [Sun, 5 May 2013 09:27:51 +0000 (11:27 +0200)] 
firewall: Add global ICMP filter table.

10 years agofirewall: ipv6: Discard all packets with rounting header of type zero.
Michael Tremer [Tue, 30 Apr 2013 17:06:43 +0000 (19:06 +0200)] 
firewall: ipv6: Discard all packets with rounting header of type zero.

RFC 5095

10 years agoDon't use connection tracking for loopback traffic.
Michael Tremer [Sun, 28 Apr 2013 11:26:27 +0000 (13:26 +0200)] 
Don't use connection tracking for loopback traffic.

10 years agosystemd: Create two separate unit files for either protocol.
Michael Tremer [Sat, 27 Apr 2013 13:41:45 +0000 (15:41 +0200)] 
systemd: Create two separate unit files for either protocol.