Created
November 18, 2020 17:49
-
-
Save viliampucik/02b865b8629faa70f67c6983a5d3d84d to your computer and use it in GitHub Desktop.
Proxy ARP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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