Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: patte/fly-tailscale-exit
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: qingyuan0o0/fly-tailscale-exit
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 7 commits
  • 3 files changed
  • 1 contributor

Commits on Aug 28, 2023

  1. Update start.sh

    qingyuan0o0 authored Aug 28, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    7545796 View commit details

Commits on Sep 28, 2023

  1. Update start.sh

    qingyuan0o0 authored Sep 28, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    df8e4a7 View commit details
  2. Update Dockerfile

    qingyuan0o0 authored Sep 28, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    a76b05e View commit details
  3. Update fly.toml

    qingyuan0o0 authored Sep 28, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    380604e View commit details
  4. Update start.sh

    qingyuan0o0 authored Sep 28, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e5d918a View commit details
  5. Update start.sh

    qingyuan0o0 authored Sep 28, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    ca43094 View commit details
  6. Update start.sh

    qingyuan0o0 authored Sep 28, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    2c87d72 View commit details
Showing with 7 additions and 6 deletions.
  1. +1 −1 Dockerfile
  2. +3 −3 fly.toml
  3. +3 −2 start.sh
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG TSVERSION=1.48.1
ARG TSVERSION=1.50.0
ARG TSFILE=tailscale_${TSVERSION}_amd64.tgz

FROM alpine:latest as tailscale
6 changes: 3 additions & 3 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -9,18 +9,18 @@ kill_signal = "SIGINT"
kill_timeout = "5s"

[env]
PORT = "41641"
PORT = "443"
# create a reusable auth key and set it:
# flyctl secrets set TAILSCALE_AUTH_KEY=tskey-...
# ephemeral keys are hardly working for use as exit node as they are ipv6 only

[[services]]
protocol = "udp"
internal_port = 41641
internal_port = 443
processes = ["app"]

[[services.ports]]
port = 41641
port = 443
[services.concurrency]
type = "connections"
hard_limit = 100
5 changes: 3 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
@@ -15,14 +15,15 @@ ip6tables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

/app/tailscaled \
--verbose=1 \
--port 41641 \
--port 443 \
--state=mem: & # emphemeral-node mode (auto-remove)
#--tun=userspace-networking
#--tun=userspace-networking \
#--socks5-server=localhost:1055

/app/tailscale up \
--authkey=${TAILSCALE_AUTH_KEY} \
--hostname=fly-${FLY_REGION} \
--login-server=${HEADSCALE_URL} \
--advertise-exit-node #\
#--advertise-tags=tag:fly-exit # requires ACL tagOwners