Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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!

share|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
up vote 0 down vote accepted

You can use command ' ngrep' in gateway.

share|improve this answer

Your Answer


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

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