]> git.ipfire.org Git - people/ms/network.git/log
people/ms/network.git
11 years agovlan: Rewrite VLAN stuff.
Michael Tremer [Sun, 23 Sep 2012 19:18:47 +0000 (19:18 +0000)] 
vlan: Rewrite VLAN stuff.

Got rid of vconfig and clean up a lot of stuff.

11 years agobridge-stp: Move to helpers directory.
Michael Tremer [Sun, 23 Sep 2012 18:13:41 +0000 (18:13 +0000)] 
bridge-stp: Move to helpers directory.

11 years agoSTP: Rewrite most of the functions to get rid of brctl.
Michael Tremer [Sun, 23 Sep 2012 18:00:05 +0000 (18:00 +0000)] 
STP: Rewrite most of the functions to get rid of brctl.

Also support kernel STP again.

11 years agostp: Remove function that switches protocols.
Michael Tremer [Sun, 23 Sep 2012 15:16:03 +0000 (15:16 +0000)] 
stp: Remove function that switches protocols.

This is not needed anymore and was unsafe because
it did not check if mstpd was running and was aware of
the bridge.

11 years agobridge: Make enable/disable STP independent from brctl.
Michael Tremer [Sun, 23 Sep 2012 15:13:23 +0000 (15:13 +0000)] 
bridge: Make enable/disable STP independent from brctl.

11 years agoFix printing of headlines.
Michael Tremer [Sun, 23 Sep 2012 14:36:08 +0000 (14:36 +0000)] 
Fix printing of headlines.

11 years agoAdd hook for dummy ports.
Michael Tremer [Sun, 23 Sep 2012 14:21:17 +0000 (14:21 +0000)] 
Add hook for dummy ports.

11 years agoRemove the event system which is not needed.
Michael Tremer [Sun, 23 Sep 2012 14:18:20 +0000 (14:18 +0000)] 
Remove the event system which is not needed.

11 years agoFix blank lines on terminals with black background.
Michael Tremer [Sun, 23 Sep 2012 14:13:59 +0000 (14:13 +0000)] 
Fix blank lines on terminals with black background.

11 years agobridge: Fix typo.
Michael Tremer [Sun, 23 Sep 2012 12:30:35 +0000 (12:30 +0000)] 
bridge: Fix typo.

11 years agoAdd macvlan port hook.
Michael Tremer [Sun, 23 Sep 2012 12:30:14 +0000 (12:30 +0000)] 
Add macvlan port hook.

11 years agobridge: Replace brctl by ip.
Michael Tremer [Sun, 23 Sep 2012 11:18:42 +0000 (11:18 +0000)] 
bridge: Replace brctl by ip.

11 years agologging: Log calling function and hooks of messages.
Michael Tremer [Sun, 23 Sep 2012 10:57:36 +0000 (10:57 +0000)] 
logging: Log calling function and hooks of messages.

This helps to debug things more easily and
keeps stdout cleaner.

11 years agowireless-ap: Add support for 802.11a and 802.11n APs.
Michael Tremer [Sun, 16 Sep 2012 18:07:15 +0000 (18:07 +0000)] 
wireless-ap: Add support for 802.11a and 802.11n APs.

11 years agorouting: Fix construction of invalid ip command.
Michael Tremer [Sat, 15 Sep 2012 18:43:16 +0000 (18:43 +0000)] 
routing: Fix construction of invalid ip command.

11 years agodhcpd: Add basic DHCP server functionality for IPv6 and IPv4.
Michael Tremer [Sat, 15 Sep 2012 18:39:18 +0000 (18:39 +0000)] 
dhcpd: Add basic DHCP server functionality for IPv6 and IPv4.

11 years agoipv{6,4}: Simplify some functions and introduce new ones.
Michael Tremer [Sat, 15 Sep 2012 18:38:44 +0000 (18:38 +0000)] 
ipv{6,4}: Simplify some functions and introduce new ones.

Too much stuff to break down...

11 years agoip: Remove log message when IP protocol could not be detected.
Michael Tremer [Sat, 15 Sep 2012 13:22:57 +0000 (13:22 +0000)] 
ip: Remove log message when IP protocol could not be detected.

11 years agocli: Shrink indentation to 2 spaces.
Michael Tremer [Sat, 15 Sep 2012 13:21:27 +0000 (13:21 +0000)] 
cli: Shrink indentation to 2 spaces.

11 years agoconfig: Fix reading in empty values.
Michael Tremer [Thu, 13 Sep 2012 15:00:49 +0000 (15:00 +0000)] 
config: Fix reading in empty values.

11 years agoutil: Create an assertion test for IP addresses.
Michael Tremer [Mon, 10 Sep 2012 08:33:55 +0000 (08:33 +0000)] 
util: Create an assertion test for IP addresses.

11 years agolist: Add function to join a list.
Michael Tremer [Mon, 10 Sep 2012 08:33:13 +0000 (08:33 +0000)] 
list: Add function to join a list.

11 years agocli: Check for correct arguments in cli_ident.
Michael Tremer [Mon, 10 Sep 2012 08:32:20 +0000 (08:32 +0000)] 
cli: Check for correct arguments in cli_ident.

11 years agoservice: Require complete name of systemd unit file.
Michael Tremer [Sat, 8 Sep 2012 14:46:07 +0000 (14:46 +0000)] 
service: Require complete name of systemd unit file.

11 years agoconfig: Read all configuration variables into an array.
Michael Tremer [Sat, 8 Sep 2012 09:35:06 +0000 (09:35 +0000)] 
config: Read all configuration variables into an array.

11 years agobridge: Don't throw an assertion error when a device does not exist.
Michael Tremer [Thu, 6 Sep 2012 20:05:22 +0000 (20:05 +0000)] 
bridge: Don't throw an assertion error when a device does not exist.

If a device was supposed to be in a bridge did not exist,
the bridge method threw an assertion error.

11 years agoParse configuration files in a secure way.
Michael Tremer [Thu, 6 Sep 2012 20:04:21 +0000 (20:04 +0000)] 
Parse configuration files in a secure way.

Don't use the source function anymore which is unsecure.

11 years agowireless-ap: Add WPA/WPA2 encryption.
Michael Tremer [Sun, 2 Sep 2012 15:03:31 +0000 (15:03 +0000)] 
wireless-ap: Add WPA/WPA2 encryption.

11 years agoroute: Create a log message, when (re)loading static routes.
Michael Tremer [Sat, 11 Aug 2012 14:53:57 +0000 (14:53 +0000)] 
route: Create a log message, when (re)loading static routes.

11 years agoroute: Add documentation.
Michael Tremer [Sat, 11 Aug 2012 14:49:02 +0000 (14:49 +0000)] 
route: Add documentation.

11 years agoroute: Add prohibit and blackhole routes.
Michael Tremer [Sat, 11 Aug 2012 13:02:52 +0000 (13:02 +0000)] 
route: Add prohibit and blackhole routes.

11 years agoroute: Add code to apply static route configuration.
Michael Tremer [Sat, 11 Aug 2012 12:27:07 +0000 (12:27 +0000)] 
route: Add code to apply static route configuration.

11 years agoAdd commands to manage static routes.
Michael Tremer [Fri, 10 Aug 2012 13:27:23 +0000 (13:27 +0000)] 
Add commands to manage static routes.

11 years agolist: Avoid space in front of the first argument.
Michael Tremer [Fri, 10 Aug 2012 09:32:29 +0000 (09:32 +0000)] 
list: Avoid space in front of the first argument.

When the first argument was added to an empty list, there
was a leading space character which looks ugly.

11 years agocli: Fix cli_get_val function to split at the first occurence of '='.
Michael Tremer [Fri, 10 Aug 2012 09:31:26 +0000 (09:31 +0000)] 
cli: Fix cli_get_val function to split at the first occurence of '='.

11 years agoAdd functions to handle lists very easily.
Michael Tremer [Wed, 8 Aug 2012 13:50:53 +0000 (13:50 +0000)] 
Add functions to handle lists very easily.

11 years agoIntroduce concept of firewall zones.
Michael Tremer [Wed, 8 Aug 2012 12:55:33 +0000 (12:55 +0000)] 
Introduce concept of firewall zones.

11 years agoImport some experimental Open vSwitch code.
Michael Tremer [Wed, 8 Aug 2012 10:16:33 +0000 (10:16 +0000)] 
Import some experimental Open vSwitch code.

11 years agovlan: Check if the kernel has got VLAN support.
Michael Tremer [Fri, 3 Aug 2012 10:28:16 +0000 (10:28 +0000)] 
vlan: Check if the kernel has got VLAN support.

11 years agonetwork: Don't show link speed when device is not up.
Michael Tremer [Fri, 3 Aug 2012 10:26:46 +0000 (10:26 +0000)] 
network: Don't show link speed when device is not up.

11 years agoAdd some minor input validation for configuration settings.
Michael Tremer [Wed, 1 Aug 2012 18:33:25 +0000 (18:33 +0000)] 
Add some minor input validation for configuration settings.

11 years agoFix typo introduced in the last commit.
Michael Tremer [Wed, 1 Aug 2012 18:29:19 +0000 (18:29 +0000)] 
Fix typo introduced in the last commit.

11 years agoMove firewall default configuration to an extra file.
Michael Tremer [Wed, 1 Aug 2012 18:25:55 +0000 (18:25 +0000)] 
Move firewall default configuration to an extra file.

11 years agofirewall: Make clamp PMTU configurable.
Michael Tremer [Wed, 1 Aug 2012 18:02:21 +0000 (18:02 +0000)] 
firewall: Make clamp PMTU configurable.

11 years agofirewall: Add rule to clamp PMTU.
Michael Tremer [Sun, 29 Jul 2012 16:52:40 +0000 (16:52 +0000)] 
firewall: Add rule to clamp PMTU.

11 years agofirewall: Add basic IPv6 ruleset generation and macros.
Michael Tremer [Sun, 29 Jul 2012 14:30:48 +0000 (14:30 +0000)] 
firewall: Add basic IPv6 ruleset generation and macros.

11 years agoutil: Make a shortcut for "which".
Michael Tremer [Sun, 29 Jul 2012 12:22:42 +0000 (12:22 +0000)] 
util: Make a shortcut for "which".

11 years agoFix some syntax errors.
Michael Tremer [Sat, 28 Jul 2012 09:05:05 +0000 (09:05 +0000)] 
Fix some syntax errors.

11 years agoMake the print function print strings that start with a dash.
Michael Tremer [Sat, 28 Jul 2012 09:03:11 +0000 (09:03 +0000)] 
Make the print function print strings that start with a dash.

11 years agofirewall: Enable connection tracking accounting.
Michael Tremer [Wed, 18 Jul 2012 12:12:12 +0000 (12:12 +0000)] 
firewall: Enable connection tracking accounting.

11 years agoEnhanced modem support.
Michael Tremer [Sun, 1 Jul 2012 15:42:31 +0000 (15:42 +0000)] 
Enhanced modem support.

This patch adds a very advanced solution for dialup
connection with serial modems (56k, UMTS, LTE and more).

11 years agoDNS: Add RDNSS functionality.
Michael Tremer [Sat, 30 Jun 2012 13:12:57 +0000 (13:12 +0000)] 
DNS: Add RDNSS functionality.

The radv daemon is now able to announce DNS servers.
There have also been bugfixes for minor problems.

11 years agoFix printing the down message.
Michael Tremer [Sat, 30 Jun 2012 13:02:05 +0000 (13:02 +0000)] 
Fix printing the down message.

The background color has not been reset.

11 years agologging: Fix output on different consoles.
Michael Tremer [Sat, 30 Jun 2012 09:53:21 +0000 (09:53 +0000)] 
logging: Fix output on different consoles.

11 years agoIntroduce exit code for unknown boolean values.
Michael Tremer [Sat, 30 Jun 2012 09:52:46 +0000 (09:52 +0000)] 
Introduce exit code for unknown boolean values.

11 years agoChange assertion exit code.
Michael Tremer [Sat, 30 Jun 2012 09:50:52 +0000 (09:50 +0000)] 
Change assertion exit code.

11 years agoassert_check_retval: New function.
Michael Tremer [Sat, 30 Jun 2012 09:48:41 +0000 (09:48 +0000)] 
assert_check_retval: New function.

This function takes one argument which is an exit code
of a previously called function.
If the exit code equals the assertion exit code, the
script stops immediately.

11 years agoassert: Let assert exit with the right exit code.
Michael Tremer [Sat, 30 Jun 2012 09:48:07 +0000 (09:48 +0000)] 
assert: Let assert exit with the right exit code.

11 years agobacktrace: Show something in backtrace when a function was called on a shell.
Michael Tremer [Sat, 30 Jun 2012 09:46:35 +0000 (09:46 +0000)] 
backtrace: Show something in backtrace when a function was called on a shell.

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.