]> git.ipfire.org Git - people/ms/network.git/log
people/ms/network.git
5 years agoipsec: security policies: system: Order by complexity
Michael Tremer [Sun, 23 Sep 2018 23:21:45 +0000 (01:21 +0200)] 
ipsec: security policies: system: Order by complexity

strongswan uses the cipher suites in the order as listed by first
match instead of complexity. This patch re-orders them so that
maximum complexity is tried first and everything else after.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoipsec: Set traffic selectors to all when using GRE/VTI devices
Michael Tremer [Sun, 23 Sep 2018 23:14:59 +0000 (01:14 +0200)] 
ipsec: Set traffic selectors to all when using GRE/VTI devices

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoport: ip-tunnel: Allow to set MAC address
Michael Tremer [Sun, 23 Sep 2018 22:28:40 +0000 (00:28 +0200)] 
port: ip-tunnel: Allow to set MAC address

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoports: Use default port pattern for all ports
Michael Tremer [Sun, 23 Sep 2018 20:22:20 +0000 (22:22 +0200)] 
ports: Use default port pattern for all ports

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoip-tunnel: New port hook
Michael Tremer [Sun, 23 Sep 2018 19:18:09 +0000 (21:18 +0200)] 
ip-tunnel: New port hook

This allows to create layer-2 tunnels using the GRETAP protocol

Fixes: #11608
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoip-tunnel: Add support for GRETAP tunnels
Michael Tremer [Sun, 23 Sep 2018 19:17:10 +0000 (21:17 +0200)] 
ip-tunnel: Add support for GRETAP tunnels

Fixes: 11608
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agohotplug: Do not attempt to rename any devices with an invalid MAC address
Michael Tremer [Sun, 23 Sep 2018 18:34:59 +0000 (20:34 +0200)] 
hotplug: Do not attempt to rename any devices with an invalid MAC address

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoDo not allow to create ethernet devices with an invalid MAC address
Michael Tremer [Sun, 23 Sep 2018 18:25:15 +0000 (20:25 +0200)] 
Do not allow to create ethernet devices with an invalid MAC address

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agonetwork-hotplug: Try to use fewer checks when deleting a device
Michael Tremer [Sun, 23 Sep 2018 18:06:42 +0000 (20:06 +0200)] 
network-hotplug: Try to use fewer checks when deleting a device

This code basically does the same but runs fewer checks to
find the right device type

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agohotplug: Handle special devices by name only
Michael Tremer [Sun, 23 Sep 2018 18:01:25 +0000 (20:01 +0200)] 
hotplug: Handle special devices by name only

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agohotplug: Do not attempt to remove the special ip6gre0 device
Michael Tremer [Sun, 23 Sep 2018 17:55:37 +0000 (19:55 +0200)] 
hotplug: Do not attempt to remove the special ip6gre0 device

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agohotplug: Do not attempt to remove special device ip_vti0
Michael Tremer [Sun, 23 Sep 2018 17:52:49 +0000 (19:52 +0200)] 
hotplug: Do not attempt to remove special device ip_vti0

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agohotplug: Don't try to remove gre0
Michael Tremer [Sun, 23 Sep 2018 17:51:26 +0000 (19:51 +0200)] 
hotplug: Don't try to remove gre0

This device cannot be removed

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoDrop unused function: device_is_ipsec
Michael Tremer [Sun, 23 Sep 2018 17:48:10 +0000 (19:48 +0200)] 
Drop unused function: device_is_ipsec

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agodevice: Refactor check for device type
Michael Tremer [Sun, 23 Sep 2018 17:47:27 +0000 (19:47 +0200)] 
device: Refactor check for device type

There is now one implementation for various types of devices

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoCleanup code that deletes ports/zones
Michael Tremer [Sun, 23 Sep 2018 17:30:11 +0000 (19:30 +0200)] 
Cleanup code that deletes ports/zones

This is used for network reset and it wasn't clear
before if the command were successful

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agohotplug: Ignore all PPP interfaces
Michael Tremer [Sun, 23 Sep 2018 16:13:07 +0000 (18:13 +0200)] 
hotplug: Ignore all PPP interfaces

Those will come up when a PPP session is being established
with the pppoe-server.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agolock: Accept names instead of paths
Michael Tremer [Sun, 23 Sep 2018 16:04:46 +0000 (18:04 +0200)] 
lock: Accept names instead of paths

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoutil: Parse command line correctly when running commands
Michael Tremer [Sun, 23 Sep 2018 15:53:46 +0000 (17:53 +0200)] 
util: Parse command line correctly when running commands

Before, empty arguments where just dropped

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agopppoe-server: Remove line to enable kernel mode
Michael Tremer [Sun, 23 Sep 2018 15:31:23 +0000 (17:31 +0200)] 
pppoe-server: Remove line to enable kernel mode

This is enabled anyways since it is the only mode
we are supporting right now.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agopppoe-server: Refactor pppoe_server_poolfile
Michael Tremer [Sun, 23 Sep 2018 15:30:29 +0000 (17:30 +0200)] 
pppoe-server: Refactor pppoe_server_poolfile

Due to output of other functions changed, this function
needed to be slightly rewritten.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoipv4: Fix ipv4_range_explicit function
Michael Tremer [Sun, 23 Sep 2018 15:29:41 +0000 (17:29 +0200)] 
ipv4: Fix ipv4_range_explicit function

Inputs where not converted correctly and therefore
the function returned an invalid output.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoRemove debugging line
Michael Tremer [Sun, 23 Sep 2018 14:31:39 +0000 (16:31 +0200)] 
Remove debugging line

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agowireless: Try to automatically enable HT40+/- on devices that support it
Michael Tremer [Sun, 23 Sep 2018 14:30:29 +0000 (16:30 +0200)] 
wireless: Try to automatically enable HT40+/- on devices that support it

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agocopy: Automatically create target directory when copying files
Michael Tremer [Sun, 23 Sep 2018 13:27:41 +0000 (15:27 +0200)] 
copy: Automatically create target directory when copying files

Fixes: #11663
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agolibnetwork: Add function to check if a PHY supports a specific channel
Michael Tremer [Sun, 23 Sep 2018 00:44:37 +0000 (02:44 +0200)] 
libnetwork: Add function to check if a PHY supports a specific channel

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoShow driver name in device status
Michael Tremer [Sat, 22 Sep 2018 15:33:20 +0000 (16:33 +0100)] 
Show driver name in device status

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agocolors: Fix length of LISTENING label
Michael Tremer [Sat, 22 Sep 2018 14:24:23 +0000 (15:24 +0100)] 
colors: Fix length of LISTENING label

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agohotplug: Let bridges create their ports in hotplug event
Michael Tremer [Sat, 22 Sep 2018 12:47:44 +0000 (13:47 +0100)] 
hotplug: Let bridges create their ports in hotplug event

This patch changes that all ports are being created in the
hotplug event and allows us to start bridges at any time
with ports existing or being added later.

Fixes: #11360
Signed-off-by: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoboot: Fix bringing up zones when system is booting
Michael Tremer [Sat, 22 Sep 2018 12:05:46 +0000 (13:05 +0100)] 
boot: Fix bringing up zones when system is booting

An incorrect target was required and no zone was brought
up during boot.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoutil: Fail silently when directory already exists
Michael Tremer [Sat, 22 Sep 2018 12:05:06 +0000 (13:05 +0100)] 
util: Fail silently when directory already exists

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agocolors: Remove extra space character in BLOCKING msg
Michael Tremer [Sat, 22 Sep 2018 11:55:10 +0000 (12:55 +0100)] 
colors: Remove extra space character in BLOCKING msg

This message was not properly aligned

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoMove creating port configurations into network-hotplug-rename
Michael Tremer [Fri, 21 Sep 2018 21:58:01 +0000 (22:58 +0100)] 
Move creating port configurations into network-hotplug-rename

This script is now actually creating a new configuration while
it is holding the lock.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoRefactor network-hotplug-rename
Michael Tremer [Fri, 21 Sep 2018 21:47:17 +0000 (22:47 +0100)] 
Refactor network-hotplug-rename

This is now using a new locking mechanism that is working
faster and more reliable then looping for forever.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoport: ethernet: Correctly create new configurations
Michael Tremer [Fri, 21 Sep 2018 15:00:24 +0000 (17:00 +0200)] 
port: ethernet: Correctly create new configurations

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoports: Fix saving HOOK name
Michael Tremer [Fri, 21 Sep 2018 14:31:12 +0000 (16:31 +0200)] 
ports: Fix saving HOOK name

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoRefactor hotplug script
Michael Tremer [Fri, 21 Sep 2018 14:27:58 +0000 (16:27 +0200)] 
Refactor hotplug script

This script is doing the same as before, but has been refactored
to be cleaner and faster.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agohotplug: Continue running through script for ipsec devices
Michael Tremer [Fri, 21 Sep 2018 13:44:44 +0000 (15:44 +0200)] 
hotplug: Continue running through script for ipsec devices

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agozones: Drop unused commands
Michael Tremer [Fri, 21 Sep 2018 13:43:46 +0000 (15:43 +0200)] 
zones: Drop unused commands

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoExtend "network status"
Michael Tremer [Fri, 21 Sep 2018 13:19:58 +0000 (15:19 +0200)] 
Extend "network status"

This now takes ports, devices and PHYs and prints the appropriate
status.

This is very handy and just a shortcut.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoSpeed up device_list() by removing the alphabetical sort
Michael Tremer [Fri, 21 Sep 2018 13:06:53 +0000 (15:06 +0200)] 
Speed up device_list() by removing the alphabetical sort

We are now returning all devices, then all PHYs, then all
serial devices.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoFix generating device_list()
Michael Tremer [Fri, 21 Sep 2018 13:05:21 +0000 (15:05 +0200)] 
Fix generating device_list()

It was returning values like bonding_masters which are not
an actual device.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoValidate input for --offloading flag and throw an error when empty
Michael Tremer [Fri, 21 Sep 2018 13:00:44 +0000 (15:00 +0200)] 
Validate input for --offloading flag and throw an error when empty

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoports: ethernet+bonding: Allow to disable all offloading
Michael Tremer [Fri, 21 Sep 2018 12:58:39 +0000 (14:58 +0200)] 
ports: ethernet+bonding: Allow to disable all offloading

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoMove offloading code into an own file
Michael Tremer [Fri, 21 Sep 2018 12:50:12 +0000 (14:50 +0200)] 
Move offloading code into an own file

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoAdd support for hardware offloading
Michael Tremer [Fri, 21 Sep 2018 12:22:39 +0000 (14:22 +0200)] 
Add support for hardware offloading

Hardware offloading will now be enabled on physical
and bonding devices automatically.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoMove DEFAULT_MTU to constants
Michael Tremer [Fri, 21 Sep 2018 11:35:30 +0000 (13:35 +0200)] 
Move DEFAULT_MTU to constants

This is where it belongs

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoipsec: Rewrite adding routes script
Michael Tremer [Fri, 21 Sep 2018 11:33:33 +0000 (13:33 +0200)] 
ipsec: Rewrite adding routes script

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoconstants: Remove unused BATMAN variable
Michael Tremer [Thu, 20 Sep 2018 12:51:36 +0000 (14:51 +0200)] 
constants: Remove unused BATMAN variable

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoport: ethernet: Use combined setting for advertised link speeds
Michael Tremer [Thu, 20 Sep 2018 23:18:45 +0000 (00:18 +0100)] 
port: ethernet: Use combined setting for advertised link speeds

This patch removes the speed and duplex settings and replaces them
with a configuration option that allows to change advertised link
speeds to a certain speed.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoport: ethernet: Allow setting duplex mode
Michael Tremer [Thu, 20 Sep 2018 22:26:45 +0000 (23:26 +0100)] 
port: ethernet: Allow setting duplex mode

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoport: ethernet: Allow setting link speed
Michael Tremer [Thu, 20 Sep 2018 22:19:02 +0000 (23:19 +0100)] 
port: ethernet: Allow setting link speed

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoport: ethernet: Bring back accidentially dropped hook_create function
Michael Tremer [Thu, 20 Sep 2018 22:18:04 +0000 (23:18 +0100)] 
port: ethernet: Bring back accidentially dropped hook_create function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoport: ethernet: Return OK only to rename ports
Michael Tremer [Thu, 20 Sep 2018 22:05:00 +0000 (23:05 +0100)] 
port: ethernet: Return OK only to rename ports

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoport: ethernet: Use default hook_new() function
Michael Tremer [Thu, 20 Sep 2018 22:04:44 +0000 (23:04 +0100)] 
port: ethernet: Use default hook_new() function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoheader-port: Start with empty set of settings
Michael Tremer [Thu, 20 Sep 2018 22:04:21 +0000 (23:04 +0100)] 
header-port: Start with empty set of settings

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoport: ethernet: Allow setting the MTU
Michael Tremer [Thu, 20 Sep 2018 22:01:42 +0000 (23:01 +0100)] 
port: ethernet: Allow setting the MTU

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoRestart ports after edit to apply settings
Michael Tremer [Thu, 20 Sep 2018 21:42:54 +0000 (22:42 +0100)] 
Restart ports after edit to apply settings

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoheader-port: Print errors if config could not be read/written
Michael Tremer [Thu, 20 Sep 2018 21:35:58 +0000 (22:35 +0100)] 
header-port: Print errors if config could not be read/written

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoports: ethernet: Allow changing MAC address
Michael Tremer [Thu, 20 Sep 2018 21:33:07 +0000 (22:33 +0100)] 
ports: ethernet: Allow changing MAC address

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoAdd support for LEDs
Michael Tremer [Thu, 20 Sep 2018 21:16:00 +0000 (22:16 +0100)] 
Add support for LEDs

This patch configures LEDs on some Wireless PHYs to flash
on activity. This makes debugging easier.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agohostapd: Add support for 802.11ac
Michael Tremer [Wed, 19 Sep 2018 16:45:32 +0000 (17:45 +0100)] 
hostapd: Add support for 802.11ac

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agohostapd: Always enable 802.11d
Michael Tremer [Wed, 19 Sep 2018 15:01:34 +0000 (16:01 +0100)] 
hostapd: Always enable 802.11d

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agohostapd: Write VHT capabilities to configuration
Michael Tremer [Wed, 19 Sep 2018 14:59:53 +0000 (15:59 +0100)] 
hostapd: Write VHT capabilities to configuration

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agolibnetwork: Actually store index
Michael Tremer [Wed, 19 Sep 2018 14:56:33 +0000 (15:56 +0100)] 
libnetwork: Actually store index

Index was always zero and therefore only the first PHY could
be queried only.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agolibnetwork: Remove debug output
Michael Tremer [Wed, 19 Sep 2018 14:46:21 +0000 (15:46 +0100)] 
libnetwork: Remove debug output

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agolibnetwork: Fix typo in RX-LDPC HT capability
Michael Tremer [Wed, 19 Sep 2018 14:42:20 +0000 (15:42 +0100)] 
libnetwork: Fix typo in RX-LDPC HT capability

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agolibnetwork: Fix looping though HT capabilities
Michael Tremer [Wed, 19 Sep 2018 14:41:16 +0000 (15:41 +0100)] 
libnetwork: Fix looping though HT capabilities

The last capability was never looped through

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoibnetwork: Add command to show available VHT capabilities of phys
Michael Tremer [Wed, 19 Sep 2018 14:39:48 +0000 (15:39 +0100)] 
ibnetwork: Add command to show available VHT capabilities of phys

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agohostapd: Always enable all HT caps
Michael Tremer [Wed, 19 Sep 2018 13:02:09 +0000 (14:02 +0100)] 
hostapd: Always enable all HT caps

Signed-off-by: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoip-tunnel: Make --peer optional
Michael Tremer [Wed, 19 Sep 2018 12:10:41 +0000 (14:10 +0200)] 
ip-tunnel: Make --peer optional

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoipsec: VTI keys are static now and don't need to be updated
Michael Tremer [Wed, 19 Sep 2018 11:46:53 +0000 (13:46 +0200)] 
ipsec: VTI keys are static now and don't need to be updated

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoipsec: GRE/VTI connections are now possible as on-demand
Michael Tremer [Wed, 19 Sep 2018 11:43:58 +0000 (13:43 +0200)] 
ipsec: GRE/VTI connections are now possible as on-demand

This change implements using zones as GRE/VTI devices so that
we can use IPsec connections in on-demand mode, too.

The device will be created first (as a zone) and might trigger
an IPsec connection. If that happens, the settings of the device
will be updated automatically.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoip-tunnel: Add support for VTI interfaces
Michael Tremer [Tue, 18 Sep 2018 12:01:12 +0000 (14:01 +0200)] 
ip-tunnel: Add support for VTI interfaces

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoipsec: Show ZONE setting when configuration is being dumped
Michael Tremer [Tue, 18 Sep 2018 11:33:30 +0000 (13:33 +0200)] 
ipsec: Show ZONE setting when configuration is being dumped

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoipsec: Change mode to transport/tunnel only
Michael Tremer [Tue, 18 Sep 2018 11:30:17 +0000 (13:30 +0200)] 
ipsec: Change mode to transport/tunnel only

VTI is being removed and will be possible via the new
zone command.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoipsec: Allow adding a zone to a VPN connection
Michael Tremer [Tue, 18 Sep 2018 11:21:19 +0000 (13:21 +0200)] 
ipsec: Allow adding a zone to a VPN connection

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoipsec: security policies: Fix typos in plural variables
Michael Tremer [Tue, 18 Sep 2018 10:16:02 +0000 (12:16 +0200)] 
ipsec: security policies: Fix typos in plural variables

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agonitsi: Add tests for ip-tunnels in GRE mode
Michael Tremer [Mon, 17 Sep 2018 15:23:44 +0000 (16:23 +0100)] 
nitsi: Add tests for ip-tunnels in GRE mode

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoMakefile: Forgot to remove 6to4-tunnel hook
Michael Tremer [Mon, 17 Sep 2018 14:54:45 +0000 (16:54 +0200)] 
Makefile: Forgot to remove 6to4-tunnel hook

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoMerge remote-tracking branch 'jschlag/master'
Michael Tremer [Mon, 17 Sep 2018 14:46:16 +0000 (15:46 +0100)] 
Merge remote-tracking branch 'jschlag/master'

5 years agoDrop 6to4-tunnel hook which is (partly) replaced by ip-tunnel
Michael Tremer [Mon, 17 Sep 2018 14:30:17 +0000 (16:30 +0200)] 
Drop 6to4-tunnel hook which is (partly) replaced by ip-tunnel

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoman: Add documentation for IP tunnel hook
Michael Tremer [Mon, 17 Sep 2018 14:06:38 +0000 (16:06 +0200)] 
man: Add documentation for IP tunnel hook

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoAdd generic IP tunnel zone hook
Michael Tremer [Mon, 17 Sep 2018 13:30:00 +0000 (15:30 +0200)] 
Add generic IP tunnel zone hook

This is useful to create GRE connections and can easily
be extended to do more later.

Fixes: #11607
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoip-tunnel: Create a function that determines if all IP addresses match
Michael Tremer [Mon, 17 Sep 2018 13:29:32 +0000 (15:29 +0200)] 
ip-tunnel: Create a function that determines if all IP addresses match

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoip-tunnel: Fix protocol detection when local address is empty
Michael Tremer [Mon, 17 Sep 2018 13:25:55 +0000 (15:25 +0200)] 
ip-tunnel: Fix protocol detection when local address is empty

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoipsec: security policies: Add documentation for pseudo-random-functions command
Michael Tremer [Mon, 17 Sep 2018 11:49:24 +0000 (13:49 +0200)] 
ipsec: security policies: Add documentation for pseudo-random-functions command

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoCLI: Fix destroying zones
Michael Tremer [Mon, 17 Sep 2018 11:45:49 +0000 (13:45 +0200)] 
CLI: Fix destroying zones

The old delayed removal process doesn't exist any more

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoMerge remote-tracking branch 'upstream/master'
Jonatan Schlag [Sun, 16 Sep 2018 14:16:43 +0000 (16:16 +0200)] 
Merge remote-tracking branch 'upstream/master'

5 years agoipsec: security policies: Make integrity command plural
Michael Tremer [Sun, 16 Sep 2018 14:15:53 +0000 (15:15 +0100)] 
ipsec: security policies: Make integrity command plural

References: #11446

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoMerge remote-tracking branch 'upstream/master'
Jonatan Schlag [Sun, 16 Sep 2018 14:15:52 +0000 (16:15 +0200)] 
Merge remote-tracking branch 'upstream/master'

5 years agoMove vpn tests into an own directory structure
Jonatan Schlag [Sun, 16 Sep 2018 14:13:56 +0000 (16:13 +0200)] 
Move vpn tests into an own directory structure

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoipsec: security policies: Make group type command plural
Michael Tremer [Sun, 16 Sep 2018 14:11:36 +0000 (15:11 +0100)] 
ipsec: security policies: Make group type command plural

References: #11446

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoAdjust include paths because of the new include path feature
Jonatan Schlag [Sun, 16 Sep 2018 14:00:00 +0000 (16:00 +0200)] 
Adjust include paths because of the new include path feature

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoipsec: security policies: Show PRFs when dumping SecPol conf
Michael Tremer [Sun, 16 Sep 2018 14:00:42 +0000 (16:00 +0200)] 
ipsec: security policies: Show PRFs when dumping SecPol conf

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoipsec: security polices: Make cipher command plural
Michael Tremer [Sun, 16 Sep 2018 13:57:31 +0000 (15:57 +0200)] 
ipsec: security polices: Make cipher command plural

References: #11446

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoUse new include path feature of nitsi
Jonatan Schlag [Sun, 16 Sep 2018 13:54:04 +0000 (15:54 +0200)] 
Use new include path feature of nitsi

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoipsec: security-policies: Make PRF command plural
Michael Tremer [Sun, 16 Sep 2018 13:51:31 +0000 (15:51 +0200)] 
ipsec: security-policies: Make PRF command plural

References: #11446

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoipsec: security-policies: Add CLI to modify PRFs
Michael Tremer [Sun, 16 Sep 2018 13:45:45 +0000 (15:45 +0200)] 
ipsec: security-policies: Add CLI to modify PRFs

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoipsec: Generate IKE proposals with PRFs
Michael Tremer [Sun, 16 Sep 2018 13:19:55 +0000 (15:19 +0200)] 
ipsec: Generate IKE proposals with PRFs

This is now a requirement for AEAD ciphers and strongswan
refuses to start.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>