Skip to content

Simple IP range migration#246

Merged
dappnodedev merged 14 commits into
masterfrom
dappnodedev/simple-ip-range-migration
Jan 12, 2024
Merged

Simple IP range migration#246
dappnodedev merged 14 commits into
masterfrom
dappnodedev/simple-ip-range-migration

Conversation

@dappnodedev

@dappnodedev dappnodedev commented Dec 27, 2023

Copy link
Copy Markdown
Contributor

Due to the code complexity, the changes made to adapt the VPN package to the new private IP range are minimum.

The new private IP range will be 10.20.0.0/24

Note that this changes will make the package stop working in the previous public IP range

@dappnodedev dappnodedev requested a review from a team as a code owner December 27, 2023 11:35
@github-actions

github-actions Bot commented Dec 27, 2023

Copy link
Copy Markdown

DAppNode bot has built and pinned the release to an IPFS node, for commit: 778a9a9

This is a development version and should only be installed for testing purposes, install link

/ipfs/QmcYYpr7SBiP2ahn42V1daoMoTbE1fpne2ZYzj4RrKTaCe

(by dappnodebot/build-action)

@pablomendezroyo pablomendezroyo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LFG!

@dappnodedev

Copy link
Copy Markdown
Contributor Author

We need to handle this before merging:

The best approach would be to detect the current IP range and set the flags accordingly before calling ovpn_genconfig

@3alpha 3alpha left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OpenVPN supports pushing multiple routes to client config. I think it we should just push both routes and both dhcp servers, similar as we have in Wireguard. That will reduce complexity and failure points. It may require bit lager changes of script generating config, but I would say it is worth it.

@pablomendezroyo

Copy link
Copy Markdown
Contributor

This PR also removes isAdmin middleware!

@pablomendezroyo

Copy link
Copy Markdown
Contributor

Also added minimumDappnodeVersion: 0.2.85

@pablomendezroyo

pablomendezroyo commented Jan 11, 2024

Copy link
Copy Markdown
Contributor

OpenVPN supports pushing multiple routes to client config. I think it we should just push both routes and both dhcp servers, similar as we have in Wireguard. That will reduce complexity and failure points. It may require bit lager changes of script generating config, but I would say it is worth it.

The changes should be done to reflect in the config file /etc/openvpn/openvpn.conf
from

### Push Configurations Below
push "dhcp-option DNS 172.33.1.2"
push "comp-lzo no"
push "route 172.33.0.0 255.255.0.0"

to

### Push Configurations Below
push "dhcp-option DNS 172.33.1.2"
push "dhcp-option DNS 10.20.0.2"
push "comp-lzo no"
push "route 172.33.0.0 255.255.0.0"
push "route 10.20.0.0 255.255.255.0"

@pablomendezroyo

Copy link
Copy Markdown
Contributor

LFG!

@dappnodedev dappnodedev merged commit 4465106 into master Jan 12, 2024
@dappnodedev dappnodedev deleted the dappnodedev/simple-ip-range-migration branch January 12, 2024 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants