Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am running vpn servers, but some customers using vpn sending spams so I want to log all ip forward information into a log file

eg: x.x.x.x(public IP)--->forward 10.0.0.x(vpn privated IP)

if there is a complaint for spam sending , I will check which user was using the privated IP address at that time and can quickly find out who was abusing VPN

my question is : is there any way to log all ip forward information

great thanks

=====add===

my purpose is : logging all the source ip of inbound traffic and the next hop ip address

share|improve this question
    
you should mention what VPN software you are using –  stew May 25 '12 at 2:57
    
openvpn and pptp –  cosbeta May 25 '12 at 3:17
    
please advise what forward rules for VPN you have in iptables? –  alexm May 25 '12 at 3:52
    
tcpdump -i tun4 ip >ipincoming.log tun4 is my openvpn tun so this is resolved –  cosbeta May 25 '12 at 6:00
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.