Skip to content

Instantly share code, notes, and snippets.

@njh
Last active May 2, 2024 21:09
Show Gist options
  • Select an option

  • Save njh/f31e78c85f894bb52a71675e47dda72b to your computer and use it in GitHub Desktop.

Select an option

Save njh/f31e78c85f894bb52a71675e47dda72b to your computer and use it in GitHub Desktop.

Revisions

  1. njh revised this gist May 2, 2024. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions start-ipv6-tcp-ppp-server.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,5 @@
    #!/bin/bash
    #
    # Start an IPv6-only PPP server, that accepts connections over TCP
    #

    pppd='pppd'
    @@ -13,5 +12,5 @@ pppd+=' +ipv6'
    pppd+=" ipv6 '::1,::2'"

    exec socat -d \
    TCP6-LISTEN:8723,reuseaddr,fork,max-children=1 \
    TCP6-LISTEN:8723,reuseaddr,nodelay,fork,max-children=1 \
    EXEC:"$pppd",pty
  2. njh created this gist Apr 27, 2024.
    17 changes: 17 additions & 0 deletions start-ipv6-tcp-ppp-server.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    #!/bin/bash
    #
    # Start an IPv6-only PPP server, that accepts connections over TCP
    #

    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,fork,max-children=1 \
    EXEC:"$pppd",pty