Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wg-portal deletes routes #269

Open
svinopterix opened this issue Jun 10, 2024 · 4 comments
Open

wg-portal deletes routes #269

svinopterix opened this issue Jun 10, 2024 · 4 comments
Labels
v1 Old version of wg-portal

Comments

@svinopterix
Copy link

svinopterix commented Jun 10, 2024

I have the following config. I'm running wg-portal v1. Clients connecting to server #1, one of clients is server #2. Thru server #2 several local networks are available. I manually add routes on server #1 to go to local networks thru server #2. But when I save configuration on wg-portal, it deletes my routes. Can I make wg-portal to create respective routes automatically or at least to not delete routes I've created myself, like wg-quick does automatically based on AllowedIPs?

@svinopterix svinopterix changed the title wg-portal delete sroutes wg-portal deletes routes Jun 10, 2024
@svinopterix
Copy link
Author

I see Routing Table entry field in advanced settings of interface parameters. But I can't find any documentation about it's usage.

@bonddim
Copy link
Contributor

bonddim commented Jun 10, 2024

@svinopterix, You may try to set Routing Table to off and manage routes by yourself on host or with Post/Pre scripts.

@svinopterix
Copy link
Author

@bonddim thank you for your answer. Unfortunately still not working. I see "Table = off" in the config file. Added the following line to PostUp but no success:
ip route add 192.168.10.0/24 via 10.250.2.2 && ip route add 192.168.20.0/24 via 10.250.2.2
Is there any debug mode logs to look at?

@bonddim
Copy link
Contributor

bonddim commented Jun 10, 2024

@bonddim thank you for your answer. Unfortunately still not working. I see "Table = off" in the config file. Added the following line to PostUp but no success: ip route add 192.168.10.0/24 via 10.250.2.2 && ip route add 192.168.20.0/24 via 10.250.2.2 Is there any debug mode logs to look at?

Set debug log level in your config as follows:

advanced:
  log_level: debug

@h44z h44z added the v1 Old version of wg-portal label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1 Old version of wg-portal
Projects
None yet
Development

No branches or pull requests

3 participants