Last active
May 2, 2024 21:09
-
-
Save njh/f31e78c85f894bb52a71675e47dda72b to your computer and use it in GitHub Desktop.
Start an IPv6-only PPP server, that accepts connections over TCP
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/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