Why is VPN client truncating socket data ~ 1300 bytes?
Using Cisco VPN Client Release 4.8.02.0030 for Linux on Centos 5.
Locally I have a C application that accepts socket requests and sends data.
On the remote server farm in the DMZ is a php page that asks the socket on the local machine for data over the socket.
It gets around 1300 bytes out of the 4500 or so bytes and errs out:
function.socket-read</a>]: unable to read from socket : Connection reset by peer
The identical application running on a server inside the remote server farm sends the full 4500 bytes or so of data to the php application.
I also wrote a trivial C client for the application to see if it was a php issue. It works from the local host to the local application, but not from any remote host on the server farm to the local application.
I uploaded the c file, and it is also below.
(EDIT) I also uploaded the php client code (client.php) and pasted it below as well.
The php client gets fewer characters returned, not sure why
Thus it appears that the VPN Client is truncating the data, possibly at the MTU boundary.
The basic issue: remote host->remote application - OK remote host->local application (via vpnclient) - Truncates data
Please note that I have tried read and write in addition to send/recv on the socket with identical results.
Any ideas on how to get around this would be appreciated.
This is actually a pretty cool feature, i didn't even know it existed until I was looking for a solution to advertise a subnet (prefix in BGP talk), only if a certain condition existed. This is exactly what conditional advertisements does
j ai une question j ai achete un routeur cisco 887VA-k9 , je le configuré avec la configuration ci- dessous
si je le lier avec mon pc portable sur l un de ses ports directement ça marche toute est bien ( la connexion internet + m...
Attached policy provides CLI access to the Cisco 4G router over text messaging. Two files are in the attached .tar file:
2. PDF with instructions on how to load and use the .tcl file.