]> git.ipfire.org Git - network.git/log
network.git
11 years agoBump version to 005. 005
Michael Tremer [Wed, 3 Oct 2012 17:41:33 +0000 (17:41 +0000)] 
Bump version to 005.

11 years agoiptables: Add some assertions and call external commands with cmd.
Michael Tremer [Wed, 3 Oct 2012 16:23:39 +0000 (16:23 +0000)] 
iptables: Add some assertions and call external commands with cmd.

11 years agofirewall: Create a basic layout of the firewall chains.
Michael Tremer [Wed, 3 Oct 2012 16:13:49 +0000 (16:13 +0000)] 
firewall: Create a basic layout of the firewall chains.

This patch adds code which creates a default set of chains.
No thing will be put into them which makes any sense, but
it's a start...

11 years agohostapd: Fix empty hw_mode variable.
Michael Tremer [Wed, 3 Oct 2012 16:07:25 +0000 (16:07 +0000)] 
hostapd: Fix empty hw_mode variable.

11 years agofirewall: Create CUSTOM* chains like in IPFire 2.
Michael Tremer [Wed, 3 Oct 2012 16:05:14 +0000 (16:05 +0000)] 
firewall: Create CUSTOM* chains like in IPFire 2.

11 years agoMake dumping all firewall rules a bit faster.
Michael Tremer [Wed, 3 Oct 2012 16:04:21 +0000 (16:04 +0000)] 
Make dumping all firewall rules a bit faster.

11 years agologging: Decrease runtime of the log function.
Michael Tremer [Sat, 29 Sep 2012 17:34:10 +0000 (17:34 +0000)] 
logging: Decrease runtime of the log function.

11 years agoutil: Add some helper functions: fread, fwrite, assign.
Michael Tremer [Sat, 29 Sep 2012 12:43:01 +0000 (12:43 +0000)] 
util: Add some helper functions: fread, fwrite, assign.

11 years agoiptables: Get rid of iptables_commit function.
Michael Tremer [Sat, 29 Sep 2012 12:41:35 +0000 (12:41 +0000)] 
iptables: Get rid of iptables_commit function.

It's not fun to make sure it was correctly called.

11 years agoiptables: Don't rely on /proc/net/ip(6)_tables_names.
Michael Tremer [Sat, 29 Sep 2012 12:40:11 +0000 (12:40 +0000)] 
iptables: Don't rely on /proc/net/ip(6)_tables_names.

Those files only return which tables have been loaded
into the kernel. So when compiled as modules, nothing
will show up.

11 years agowireless: Enhance hook to handle encrypted connections.
Michael Tremer [Wed, 26 Sep 2012 11:19:29 +0000 (11:19 +0000)] 
wireless: Enhance hook to handle encrypted connections.

This is still in a very unstable state and needs a lot
testing and enhancement.

11 years agoDon't strip "" from strings that contain spaces.
Michael Tremer [Wed, 26 Sep 2012 11:17:35 +0000 (11:17 +0000)] 
Don't strip "" from strings that contain spaces.

This confuses the shell because handling variables with spaces
in them is horrible.

11 years agohostapd: Remove unused functions.
Michael Tremer [Sun, 23 Sep 2012 20:16:30 +0000 (20:16 +0000)] 
hostapd: Remove unused functions.

11 years agoMove wpa_supplicant functions into their own file.
Michael Tremer [Sun, 23 Sep 2012 20:14:52 +0000 (20:14 +0000)] 
Move wpa_supplicant functions into their own file.

11 years agoMove hostapd functions into their own file.
Michael Tremer [Sun, 23 Sep 2012 20:12:41 +0000 (20:12 +0000)] 
Move hostapd functions into their own file.

11 years agoMove phy functions in their own file.
Michael Tremer [Sun, 23 Sep 2012 20:08:25 +0000 (20:08 +0000)] 
Move phy functions in their own file.

11 years agoCompletely remove old colour stuff.
Michael Tremer [Sun, 23 Sep 2012 19:54:30 +0000 (19:54 +0000)] 
Completely remove old colour stuff.

11 years agostp: Correctly set protocol version.
Michael Tremer [Sun, 23 Sep 2012 19:43:15 +0000 (19:43 +0000)] 
stp: Correctly set protocol version.

11 years agoRevert "stp: Remove function that switches protocols."
Michael Tremer [Sun, 23 Sep 2012 19:38:48 +0000 (19:38 +0000)] 
Revert "stp: Remove function that switches protocols."

This reverts commit 78570028ea72b1cb5ca28835f64057f3f030f02e.

11 years agoipv6-static: Make status output more beatiful.
Michael Tremer [Sun, 23 Sep 2012 19:28:55 +0000 (19:28 +0000)] 
ipv6-static: Make status output more beatiful.

11 years agodummy: Actually bring up the port.
Michael Tremer [Sun, 23 Sep 2012 19:22:46 +0000 (19:22 +0000)] 
dummy: Actually bring up the port.

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.