2018-02-18 01:53 CET

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001882openmediavaultFeaturepublic2018-01-27 21:10
Reporterdiego 
Assigned Tovotdev 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusresolvedResolutionfixed 
Product VersionErasmus (3.x) 
Target VersionFixed in VersionArrakis (4.x) 
Summary0001882: Add 'source-directory interfaces.d' to /etc/network/interfaces
DescriptionSome background:

I'm running an 6in4 tunnel provided by he.net in order to have IPv6 connectivity over a brain-damaged ISP IPv4-only connection.

I had my tunnel interface set up in /etc/network/interfaces file, as I was unable to set it up using OMV GUI. (although that would be fine for the wishlist)

It's something like this

iface 6in4tunnel inet6 v4tunnel
        address <local-side-ipv6>
        netmask 64
        endpoint <remote-side-ipv4>
        ttl 255
        gateway <remote-side-ipv6>

The problem:

I had to modify some eth0 parameters, so I went to GUI, made the change, applied it, and my tunnel was removed from /etc/network/interfaces.

Ok, my fault for messing up with a automatically generated file by OMV. The problem is that 'man interfaces' states that

'By default, on a freshly installed Debian system, the interfaces file
 includes a line to source files in the /etc/network/interfaces.d direc?
 tory.'

Such line is 'source-directory interfaces.d', and such line is not present at /etc/network/interfaces OMV-generated file.

This way, I could set my tunnel in /etc/network/interfaces.d/ipv6-tunnel and it wouldn't get nuked everytime I may need to change something i.e. DNS settings.


Steps To Reproduce- Add by hand a tunnel interface to /etc/network/interfaces
- Go to OMV web, Go to System/Network/interfaces and perform any change.
- Apply it.
- tunnel interface defined at step 1 has vanished from interfaces file and ifdown'ed.
Tagsnetwork
Product build
Attached Files

-Relationships
+Relationships

-Notes

~0005117

votdev (administrator)

Last edited: 2018-01-27 21:10

View 2 revisions

Will be available in openmediavault 4.0.18, see https://github.com/openmediavault/openmediavault/commit/1b0df8eea4a4656d3f27749566afe2ae690033a2.

Please note that OMV3 is in maintenance mode and does not get any new features. But you can simple create the omv-mkconf script manually to append the 'source-directory xxxx' line automatically.

+Notes

-Issue History
Date Modified Username Field Change
2018-01-27 17:41 diego New Issue
2018-01-27 17:41 diego Status new => assigned
2018-01-27 17:41 diego Assigned To => votdev
2018-01-27 17:41 diego Tag Attached: network
2018-01-27 21:09 votdev Status assigned => resolved
2018-01-27 21:09 votdev Resolution open => fixed
2018-01-27 21:09 votdev Fixed in Version => Arrakis (4.x)
2018-01-27 21:09 votdev Note Added: 0005117
2018-01-27 21:09 votdev Category Bug => Feature
2018-01-27 21:09 votdev Product build 3.0.96 =>
2018-01-27 21:10 votdev Note Edited: 0005117 View Revisions
+Issue History