LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-21-2014, 03:54 AM   #1
iwonder
LQ Newbie
 
Registered: Aug 2007
Location: Hong Kong
Distribution: Debian, ArchLinux, CentOS
Posts: 17

Rep: Reputation: 0
Why intranet http packets are not found?


I have the following settings at home up and running for over 2 years and everything is fine.
They are a Debian VBox Host, and two virtual machine (vm1, vm2) using birdged adapter network.
vm1 (192.168.1.1) serves as a lamp server with virtualhost. (debian)
vm2 (192.168.1.2) serves as a normal desktop. (archlinux)
I setup dnsmasq on my router (tomatousb) so that I can use hostname as url input on browser on vm2.

Recently, I run wireshark/tcpdump on the VBox Host and expect to see some packets between vm1 and vm2 when I'm browsing website on vm1 from vm2. But out of my surprise, no such packets are found!

I even freshly build another debain lamp server without iptables to double check. Seems that "not finding such packet" is normal!!
So, some of my basic understanding is wrong? Or what else is happening? Would somebody be kind enough to point it out.

Thanks a lot


P.S. Sorry if I post in a wrong forum. Please move it to wherever appropriate.
 
Old 02-21-2014, 03:29 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,257

Rep: Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309
Are you telling tcpdump the correct interface to look at? What is the exact tcpdump command?
 
Old 02-22-2014, 03:24 AM   #3
iwonder
LQ Newbie
 
Registered: Aug 2007
Location: Hong Kong
Distribution: Debian, ArchLinux, CentOS
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by smallpond View Post
Are you telling tcpdump the correct interface to look at? What is the exact tcpdump command?
Thank you for your reply.

I have only one network card on the VBox Host. I use the most basic option.

Code:
$ sudo tcpdump -n -t -w filename.for.wireshark
If I start a ssh session from vm2 to vm1, I can see packets with ip.src and ip.dst pair of vm1<->vm2. Readlly wonder why it is not for web browsing.


-------------------------------- edit
Just wonder if I did something on wireshark before that makes it filter out http packet.

So I just run a test
Code:
$ sudo tcpdump -n -t > textfile
$ cat textfile | grep ip.of.vm1 | grep ip.of.vm2
No ip.vm1 ip.vm2 pair on one line found.

Last edited by iwonder; 02-22-2014 at 03:34 AM. Reason: add information
 
Old 02-23-2014, 06:07 PM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,257

Rep: Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309
You may have only one network card, but very few systems have only one interface. You can list the interfaces with the command
Code:
ip link
On my box, tcpdump listens on lo if I don't specify with -i.
 
Old 02-23-2014, 11:39 PM   #5
iwonder
LQ Newbie
 
Registered: Aug 2007
Location: Hong Kong
Distribution: Debian, ArchLinux, CentOS
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by smallpond View Post
You may have only one network card, but very few systems have only one interface. You can list the interfaces with the command
Code:
ip link
On my box, tcpdump listens on lo if I don't specify with -i.
ip link lists 3 interface: lo eth0 vboxnet0

When I apply them to tcpdump, vboxnet0 replies that the device is not up, lo replies zero packets captured, eth0 behaves as the original problem.
 
Old 03-04-2014, 11:48 PM   #6
iwonder
LQ Newbie
 
Registered: Aug 2007
Location: Hong Kong
Distribution: Debian, ArchLinux, CentOS
Posts: 17

Original Poster
Rep: Reputation: 0
Is this question too basic or too strange?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Outgoing torrent ACK-Packets flooding my Intranet IceDragon Linux - Networking 13 01-28-2011 08:04 AM
[SOLVED] Adding package sources fails saying "http://http not found skykooler Ubuntu 2 07-02-2010 10:32 AM
http/ftp file transfer portal for webside of intranet stardotstar Linux - Software 2 02-07-2008 08:17 PM
directing HTTP traffic to local intranet kennmurrah Linux - Networking 6 01-27-2007 12:44 PM
setting up intranet site (eg: http://something) mhuggins Fedora 2 01-22-2004 05:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:02 AM.

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