Hello,
I currently have around 300 deployed openWRT (embedded linux) gateways all over the country and we have been using pptp to connect back to our internal network for device/network monitoring needs.

The problem I've started to run into are several device show the fallowing error:
Code:
kern.info pppd[1618]: Using interface ppp0
Jan 15 22:34:22 (none) kern.notice pppd[1618]: Connect: ppp0 <--> /dev/pts/6
Jan 15 22:34:22 (none) kern.notice pptp[1715]: anon log[main:pptp.c:267]: The synchronous pptp option is NOT activated 
Jan 15 22:34:24 (none) kern.notice pptp[1711]: anon log[pptp_send_ctrl_packet:pptp_ctrl.c:615]: write error: Broken pipe
Jan 15 22:34:24 (none) kern.notice pptp[1711]: anon log[call_callback:pptp_callmgr.c:77]: Closing connection
Jan 15 22:34:24 (none) kern.notice pptp[1711]: anon log[pptp_conn_close:pptp_ctrl.c:433]: Closing PPTP connection
Jan 15 22:34:24 (none) kern.notice pptp[1711]: anon log[pptp_write_some:pptp_ctrl.c:509]: write error: Bad file descriptor
Jan 15 22:34:24 (none) kern.notice pptp[1711]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Buffered control packet type is 3 'Stop-Control-Connection-Request' 
Jan 15 22:34:24 (none) kern.notice pptp[1729]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request' 
Jan 15 22:34:24 (none) kern.notice pptp[1729]: anon log[ctrlp_disp:pptp_ctrl.c:732]: Received Start Control Connection Reply
Jan 15 22:34:24 (none) kern.notice pptp[1729]: anon log[ctrlp_disp:pptp_ctrl.c:766]: Client connection established.
Jan 15 22:34:25 (none) kern.notice pptp[1729]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request' 
Jan 15 22:34:25 (none) kern.notice pptp[1729]: anon log[ctrlp_disp:pptp_ctrl.c:851]: Received Outgoing Call Reply.
Jan 15 22:34:25 (none) kern.notice pptp[1729]: anon log[ctrlp_disp:pptp_ctrl.c:890]: Outgoing call established (call ID 0, peer's call ID 51257). 
Jan 15 22:34:29 (none) kern.notice pptp[1729]: anon log[pptp_read_some:pptp_ctrl.c:537]: read returned zero, peer has closed
Jan 15 22:34:29 (none) kern.notice pptp[1729]: anon log[callmgr_main:pptp_callmgr.c:253]: Closing connection
Jan 15 22:34:29 (none) kern.notice pptp[1729]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request' 
Jan 15 22:34:29 (none) kern.notice pptp[1729]: anon log[pptp_read_some:pptp_ctrl.c:537]: read returned zero, peer has closed
Jan 15 22:34:29 (none) kern.notice pptp[1729]: anon log[pptp_read_some:pptp_ctrl.c:537]: read returned zero, peer has closed
Jan 15 22:34:29 (none) kern.notice pppd[1618]: Modem hangup
Jan 15 22:34:29 (none) kern.notice pppd[1618]: Connection terminated.
They are using the exact same setup as several other devices. I was unable to google anything for these write error: Broken pipe and write error: Bad file descriptor errors.

the fallowing are my options.pptp file
Code:
# cat /etc/ppp/options.pptp 
lock 
#noauth
nobsdcomp 
nodeflate
idle 0
refuse-eap
defaultroute
mtu 1452
mru 1452
We've removed MPPE and set it to refuse EAP ... so there really shouldn't be anything security wise blocking it.

Any help or suggestions on how to fix this would be great because i'm stumped.... P.S. some of these are also connecting out to the internet via a ppoe connection from the local ISP's (thus the mtr/mru settings).