Sunday, July 23, 2017

ppp tunnel over ssh

***
remote address: 192.168.58.22

* prerequisite
- install ppp on both client and remote host
- remote host, need to enable ssh root login

$ sudo /usr/sbin/pppd updetach noauth silent nodeflate pty "/usr/bin/ssh root@192.168.58.22  /usr/sbin/pppd nodetach notty noauth" ipparam vpn 10.0.8.1:10.0.8.2
Using interface ppp0
Connect: ppp0 <--> /dev/pts/21
root@192.168.58.22's password:
BSD-Compress (15) compression enabled
local  IP address 10.0.8.1
remote IP address 10.0.8.2


- now we get the ppp connection over the ssh

No comments:

Post a Comment