LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-09-2018, 10:36 AM   #1
bulgin
Member
 
Registered: Mar 2010
Posts: 74

Rep: Reputation: Disabled
OpenVpn and tcpdump output shows activity on two ip ranges.


Ubuntu 16.04
OpenVPN 2.3.10 x86_64-pc-linux-gnu

Pardon if this belongs in a different forum but it seems like security to me.

A basic OpenVpn question:

When OpenVpn is operating and I open two terminals and tcpdump both the tunnel to the remote OpenVpn server which is:

tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 100
link/none
inet 10.8.0.6 peer 10.8.0.5/32 scope global tun0
valid_lft forever preferred_lft forever

and tcpdump the local ip address:

enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
inet 192.168.2.7/24 brd 192.168.2.255 scope global dynamic enp2s0
valid_lft 74527sec preferred_lft 74527sec

I witness as expected activity on the tun0 interface, but I'm also seeing lots of traffic on the local network between the local internal ip address of 192.168.2.7 and the foreign server public ip address.

Is this normal? I would expect to see traffic in the tun0 but not so sure about the local address which is showing traffic to the remote server that hosts the OpenVpn server.
 
Old 04-09-2018, 05:05 PM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,706
Blog Entries: 4

Rep: Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949
This is normal. You are seeing the encrypted traffic that is generated by the OpenVPN service processes themselves, and you should observe that it uses the UDP protocol, not TCP/IP.

OpenVPN acts as a virtual network router. It communicates with its peers over public IP-addresses using the UDP protocol, which has no "open ports." (Yes, it can be configured to use TCP/IP, instead, but this is inadvisable.) All of these packets are encrypted.

This is the physical side of OpenVPN.

Meanwhile, logically, OpenVPN reserves the 10.8.x.x IP-address range for itself. Any computer that is directly logged-on to the VPN will have a server-assigned IP-address range here, serviced by a tunX virtual network device. (This is the address-range of "the virtual routers themselves.") Meanwhile, any internal-IP addresses corresponding to remote systems that have also been routed through the tunnel ("handled by the virtual router") are also handled by the tunX device, which is the mechanism that transfers the data to/from the OpenVPN service process.

Clients communicate using only this logical view. The traffic could actually be being sent using carrier pigeons, for all the clients know or care.

Instead of bothering the poor birds, however, the traffic is encrypted and sent to its destination using encrypted UDP-packets sent to the appropriate physical IP addresses.

Last edited by sundialsvcs; 04-09-2018 at 05:18 PM.
 
  


Reply

Tags
openvpn, tcpdump



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tcptrack wrongly shows no activity dewdrop_world Linux - Software 2 09-09-2011 12:33 AM
tcpdump shows packages even if iptables policy is set to DROP paliga Linux - Networking 7 06-05-2011 11:37 AM
powertop shows enormous activity hrtimer_start_range_ns dolphin77 Slackware 1 01-21-2010 02:54 AM
tcpdump -x option shows hex as well as ascii rooky Programming 2 11-25-2009 07:16 AM
Strange tcpdump activity. NuxIT Linux - Networking 2 05-18-2006 03:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration