Skip to content

Instantly share code, notes, and snippets.

@kmARC
Created March 22, 2021 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmARC/54fe704c23cc8c02aef2b90f61ad78dc to your computer and use it in GitHub Desktop.
Save kmARC/54fe704c23cc8c02aef2b90f61ad78dc to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -x
alacritty -e bash -c "\
x11docker --share /dev/net/tun \
--sudouser \
--dbus \
--runasroot 'iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE' \
--name f5vpn \
-- \
--sysctl net.ipv4.ip_forward=1 \
--cap-add=NET_ADMIN \
-- \
f5vpn \
f5vpn '$@'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment