I hava 2 VPN servers, one is pptp, one is openVPN, I need to capture the VPN response packets for

the VPN client, and later I need to forward these packets to vpn clients by another linux server. I

want to know is it possible? if possible, how to capture these packages by libpcap ? what is the

filter ? thanks!

link|improve this question

I'm not very clear on what you mean by "response packets" - do you mean with VPN encapsulation, or the payload inside? – pjc50 Nov 29 '10 at 16:01
I mean the VPN encapsulation which can be handled by VPN programe – larry Nov 30 '10 at 0:59
feedback

1 Answer

up vote 0 down vote accepted

You can use command ' ngrep' in gateway.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.