Skip to content

Instantly share code, notes, and snippets.

@njh
Last active May 2, 2024 21:09
Show Gist options
  • Save njh/f31e78c85f894bb52a71675e47dda72b to your computer and use it in GitHub Desktop.
Save njh/f31e78c85f894bb52a71675e47dda72b to your computer and use it in GitHub Desktop.
Start an IPv6-only PPP server, that accepts connections over TCP
#!/bin/bash
#
#
pppd='pppd'
pppd+=' debug'
pppd+=' logfd 2'
pppd+=' nodetach'
pppd+=' noauth'
pppd+=' noip'
pppd+=' +ipv6'
pppd+=" ipv6 '::1,::2'"
exec socat -d \
TCP6-LISTEN:8723,reuseaddr,nodelay,fork,max-children=1 \
EXEC:"$pppd",pty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment