Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am trying to create test setup to verify PPP packet flow though a custom PPP server. To do so, I want to create a PPP tunnel on a local computer using virtual serial ports using socat.

                                   <Virtual tty>
ip traffic<---> ppp0 (ip: <-------------> ppp1 (ip:<-----> eth0 (ip:, gw

Ultimately i want to capture PPP packets and analyse/debug them.

This is what i have tried till now

#screen socat -d -d pty,raw,echo=0 pty,raw,echo=0 &
2013/08/09 03:35:43 socat[5809] N PTY is /dev/pts/14
2013/08/09 03:35:43 socat[5809] N PTY is /dev/pts/15


#sudo pppd -detach crtscts lock noauth local /dev/pts/14 115200 &
#sudo pppd -detach crtscts lock noauth local /dev/pts/6 115200 &

This creates ppp0 and ppp1 interfaces.Since the traffic is routed locally, i tried deleting routing entries in local table using

#ip route del table local
#ip route del table local

When i try to ping using ie

#ping -i 
bind: Cannot assign requested address

I ultimately want all my internet traffic to pass through this tunnel. Is this setup possible?

share|improve this question
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.