Skip to content

support for changing source addr in vpn#521

Merged
zestrada merged 1 commit intomainfrom
change_src_addr
Feb 27, 2025
Merged

support for changing source addr in vpn#521
zestrada merged 1 commit intomainfrom
change_src_addr

Conversation

@zestrada
Copy link
Member

@zestrada zestrada commented Feb 6, 2025

This PR closes #498 , adding a feature to vpnguin where users can specify a source address for services that expect a particular source ip. We accomplish this by configuring one of the dummy devices on the system with that address and then have the client side of vpnguin bind to that address.

We use the guest_cmd feature to stand up the interface if it is not configured.

Example usage:

plugins:
  vpn:
    depends_on: core
    spoof:
      "tcp:192.168.1.1:5678":
        source: 10.10.10.1
        dev: eth1
      "udp:192.168.1.1:12345":
        source: 10.10.10.1
        dev: eth1

Tested with TCP and UDP services that process the incoming source address, as well as various firmware that we've seen stand up multiple network services.

Note: this PR should be merged after rehosting/vpnguin#19 , with the correct VPN_VERSION in the penguin Dockerfile. The current VPN_VERSION in this branch is a guess and build will fail for now.

@zestrada zestrada merged commit c9da02c into main Feb 27, 2025
17 checks passed
@zestrada zestrada deleted the change_src_addr branch February 27, 2025 22:10
@zestrada zestrada mentioned this pull request Mar 7, 2025
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.

Allow for configurable source address when using vpnguin

1 participant