AWS VPN Client Patcher
Scripts for patching the AWS VPN client for Linux.
- Removes function that disables
net.ipv4.ip_forward
when connecting. - Makes the SAML success page close automatically.
Setup
To setup the build, run:
make init
This copies the DLLs that will be patched into the origin
directory.
Note:
- After install the unpatched versions can be restored by running
make reset
. - When upgrading the AWS VPN client, delete the origin directory to clear the local copies of the patched DLLs.
- If the origin directory is removed and the DLLs have not been reset then you must re-install the AWS VPN client.
Build
To build patched binaries, run:
make
Install
To install the binaries, first close any VPN client windows, then run:
make install
Note: May need to be run as root
After install, make sure you restart the VPN service:
systemctl restart awsvpnclient.service
Making Changes
Check out the relevant branch for your tool version.
Run:
make unpack
This creates a directory .unpack
and disassembles the DLLs into it.
To apply the existing patches, run:
patch .unpack/${ASSEMBLY}.il src/${ASSEMBLY}.il.diff
Modify the .il files as required then run:
diff -u .unpack/${ASSEMBLY}.il.original .unpack/${ASSEMBLY}.il > src/${ASSEMBLY}.il.diff
This generates the patch that will be applied by the build process.