Skip to content

Instantly share code, notes, and snippets.

@sosi-deadeye
Created September 2, 2025 11:19
Show Gist options
  • Select an option

  • Save sosi-deadeye/9c36d663bdb03bdb62d688b0ba7b1474 to your computer and use it in GitHub Desktop.

Select an option

Save sosi-deadeye/9c36d663bdb03bdb62d688b0ba7b1474 to your computer and use it in GitHub Desktop.
PPP Daemon for Raspberry Pi
# This is not complete yet nor tested
sudo apt-get update
sudo apt-get install ppp dnsmasq iptables
sudo nano /etc/ppp/peers/esp32 <<EOF
115200
noauth
local
nodetach
debug
proxyarp
192.168.100.1:192.168.100.2
ms-dns 8.8.8.8
nocrtscts
lock
persist
EOF
echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward
echo "net.ipv4.ip_forward=1" | sudo tee -a /etc/sysctl.d/30-ipforward.conf
sudo sysctl --system
# eth0, wlan0
sudo iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment