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

Cannot route external traffic (helm) #136

Closed
nox-404 opened this issue May 18, 2021 · 2 comments
Closed

Cannot route external traffic (helm) #136

nox-404 opened this issue May 18, 2021 · 2 comments

Comments

@nox-404
Copy link

nox-404 commented May 18, 2021

Hello,
I can't get any traffic aside from the peer to the server to work
Any idea ?

My goal is to get the peers to connect to the node's network and also route all traffic through that node (DNS included)

Here are my helm values:

# wg-access-server config
config:
  externalHost: host
  storage: mysql://user:[email protected]:3306/database?parseTime=true
  vpn:
    cidr: x.x.x.0/24
    allowedIPs:
      - 0.0.0.0/0
      - ::/0
  dns:
    upstream:
      - resolveconf

web:
  config:
    adminUsername: admin
    adminPassword: password

  service:
    type: ClusterIP

wireguard:
  config:
    privateKey: private-key
  service:
    type: NodePort

persistence:
  enabled: false

ingress:
  enabled: true
  hosts:
  - host
  tls:
    - secretName: host-tls
      hosts:
        - host

nameOverride: wireguard
fullnameOverride: wireguard

Just one note though, I'm using an image with the following fix #135 as I'm using a mariadb storage

@sarce666
Copy link

hello i have extacly the same pb
did you solve it ?

@JHdeVilliers
Copy link

I needed to modify the deployment securityContext:

diff --git a/deploy/helm/wg-access-server/templates/deployment.yaml b/deploy/helm/wg-access-server/templates/deployment.yaml
index 03620b8..4c37d2e 100644
--- a/deploy/helm/wg-access-server/templates/deployment.yaml
+++ b/deploy/helm/wg-access-server/templates/deployment.yaml
@@ -27,6 +32,10 @@ spec:
       imagePullSecrets:
         {{- toYaml . | nindent 8 }}
     {{- end }}
+      securityContext:
+        sysctls:
+          - name: net.ipv4.ip_forward
+            value: "1"
       containers:
         - name: {{ .Chart.Name }}
           securityContext:

@nox-404 nox-404 closed this as completed Mar 13, 2022
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

No branches or pull requests

3 participants