Skip to content

Commit

Permalink
Add instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
todaywasawesome committed Apr 27, 2021
1 parent ae8068c commit 269af3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@

Google Wifi doesn't obey normal ARP announcements made form metallb or other Kubernetes services. This creates a problem when trying to create port forwarding rules in Google Wifi because ingress and services never show up in the UI.

This project creates a loop that basically spoofs a packet from the ingress ip you want to advertise. Unfourtunately it's not enough to do this once, you must do it constantly or Google Wifi will try to change the forwarding rule to whatever MAC address it has.
This project creates a loop that basically spoofs a packet from the ingress ip you want to advertise. Unfourtunately it's not enough to do this once, you must do it constantly or Google Wifi will try to change the forwarding rule to whatever MAC address it has. It may also help to direct inbound traffic to keep the route alive.

## Usage

### As a python script
```
export HOST_IP=[IP ADDRESS TO ADVERTISE]
export DEST_IP=8.8.8.8
python advertise.py
```

### As a Docker image
`docker run -e HOST_IP=[IP ADDRESS TO ADVERTISE] todaywasawesome/metallb-google-wifi-announce`
`docker run -e HOST_IP=[IP ADDRESS TO ADVERTISE] DEST_IP=[DESTINATION ip, maybe use 8.8.8.8] todaywasawesome/metallb-google-wifi-announce`

### In Kubernetes, K3s etc
Modify the [daemonset yaml](deploy/kubernetes/metallb-google-wifi-announce-daemonset.yaml) with the ip address you want to advertise then apply if with `kubectl apply -f metallb-google-wifi-announce-daemonset.yaml`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ spec:
image: todaywasawesome/metallb-google-wifi-announce:latest
env:
- name: HOST_IP
value: "10.0.0.20" #Change to whatever ip you're trying to advertise
value: "10.0.0.20" #Change to whatever ip you're trying to advertise
- name: DEST_IP
value: "8.8.8.8"

0 comments on commit 269af3d

Please sign in to comment.