PPP over TCP - how to use second IP on SDI - client machine's IP (our SDI machine) - server machine's IP - server's side tunnel end - client's side tunnel end

[both sides]


ppp-in 6669/tcp # Incoming PPP connections over TCP



  set log local phase lcp ipcp
  set escape 0xff
  set device
  set dial
  set timeout 0
  set log Phase Chat Connect hdlc LCP IPCP CCP tun
  set ifaddr



  set timeout 0     
  set ifaddr
  enable lqr


ppp-in stream tcp nowait root /usr/sbin/ppp ppp -direct ppp-in

now launch the link:

type on the client:

# ppp -quiet -dedicated gate

[example output of ifconfig and netstat -rn]

tun0: flags=8051 mtu 1656
        inet6 fe80::2c0:dfff:feb0:e8f%tun0 --> :: prefixlen 64 scopeid 0x9 
        inet --> netmask 0xffffff00 
        Opened by PID 343
tun1: flags=8151 mtu 1500
        inet6 fe80::2c0:dfff:feb0:e8f%tun1 --> :: prefixlen 64 scopeid 0xa 
        inet --> netmask 0xffffffff 
        Opened by PID 718

Routing tables

Destination        Gateway            Flags     Refs     Use     Netif Expire
default       UGSc        6      156     tun0     UH          5       17     tun0     UH          0        0     tun1