Skip to content

Instantly share code, notes, and snippets.

@viliampucik
Created November 18, 2020 17:49
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 viliampucik/02b865b8629faa70f67c6983a5d3d84d to your computer and use it in GitHub Desktop.
Save viliampucik/02b865b8629faa70f67c6983a5d3d84d to your computer and use it in GitHub Desktop.
Proxy ARP
#!/bin/sh
# Enable connection between AP and RPi without NAT
# AP --- wifi --- laptop --- ethernet --- RPi
# Reference: https://wiki.debian.org/BridgeNetworkConnectionsProxyArp
# 0. Assign static IP to RPi
# 1. Enable Proxy ARP and routing on the laptop
echo 1 > /proc/sys/net/ipv4/conf/all/proxy_arp
echo 1 > /proc/sys/net/ipv4/ip_forward
# 2. Add static route for RPi on the laptop
ip route add 192.168.1.254/32 dev eth0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment