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

NET-671 #630

Merged
merged 2 commits into from
Nov 22, 2023
Merged

NET-671 #630

merged 2 commits into from
Nov 22, 2023

Conversation

uGiFarukh
Copy link
Contributor

@uGiFarukh uGiFarukh commented Nov 13, 2023

Describe your changes

  • Fixed windows netclient egress routes add

Provide Issue ticket number if applicable/not in title

Provide link to Netmaker PR if required

Provide testing steps

  1. Create an egress gateway using another linux machine under the same netmaker network.
  2. Add a windows netclient with this PR branch to any netmaker network.
  3. Test from the windows netclient if those egress ranges are reachable through the windows netclient.
  4. Repeat the same steps and verify for ipv6 network and ipv6 windows netclient.

Checklist before requesting a review

  • My changes affect only 10 files or less.
  • I have performed a self-review of my code and tested it.
  • If it is a new feature, I have added thorough tests, my code is <= 1450 lines.
  • If it is a bugfix, my code is <= 200 lines.
  • My functions are <= 80 lines.
  • I have had my code reviewed by a peer.
  • My unit tests pass locally.
  • Netclient & Netmaker are awesome.

* Fixed windows netclient egress routes add
mask,
addr.IP.String())
cmd := fmt.Sprintf("netsh int ipv4 add route %s interface=%s nexthop=%s store=%s",
addr.Network.String(), ncutils.GetInterfaceName(), "0.0.0.0", "active")
Copy link
Member

Choose a reason for hiding this comment

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

handle ipv6 route setting as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ipv6 support added

* windows support for ipv6 egress ranges
@abhishek9686 abhishek9686 merged commit 1222c55 into develop Nov 22, 2023
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Fixed Fixed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants