LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-06-2016, 03:53 AM   #1
tonj
Member
 
Registered: Sep 2008
Posts: 546

Rep: Reputation: 37
correct ip and subnet for wan


I'm trying to view my WAN network traffic in wireshark but so far failing. I'm in the UK and I have a broadband router that goes to a modem (a bt openreach standard fttc modem). I've put a hub between the modem and the router and connected a pc to the hub as well. I'm running wireshark on the pc but I don't see any modem traffic, I think the problem is the ip address on the pc. All I see in wireshark is the pc's own ip address, I've set the wireshark filter to exclude the pc's own ip and there's nothing showing, there should be loads of traffic showing as I have several machines all on the internet through the modem.
What ip address and subnet mask should I put into the pc to see the traffic? I've tried 192.168.x.x/255.255.255.0, didn't work, also tried 172.16.1x.x/255.255.0.0 and 10.0.x.x/255.00.0.0 and they didn't work either.
 
Old 09-06-2016, 04:02 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,440

Rep: Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545
What model hub did you put between the modem and the router? Are you sure it's not a switch?
 
Old 09-06-2016, 04:27 AM   #3
tonj
Member
 
Registered: Sep 2008
Posts: 546

Original Poster
Rep: Reputation: 37
netgear fs116, oh damn it says fast ethernet switch. Does that mean I'm using the wrong hardware?
 
Old 09-06-2016, 04:37 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,440

Rep: Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545
Quote:
Originally Posted by tonj View Post
netgear fs116, oh damn it says fast ethernet switch. Does that mean I'm using the wrong hardware?
Yes. You'll need a managed switch that allows you to configure a "mirror" port that will present all the traffic passing through the switch.

However if you've two ethernet interfaces on the PC then you may be able to put THAT in between router and the modem.

Google "linux mirror network port" and you may get some ideas.
 
Old 09-06-2016, 05:37 AM   #5
tonj
Member
 
Registered: Sep 2008
Posts: 546

Original Poster
Rep: Reputation: 37
ok thanks, I have an old cisco router with a managed switch in it so I'll try mirroring the port traffic with that.
 
Old 09-06-2016, 05:39 AM   #6
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,440

Rep: Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545
Let us know how you get on.
 
Old 09-06-2016, 12:22 PM   #7
tonj
Member
 
Registered: Sep 2008
Posts: 546

Original Poster
Rep: Reputation: 37
yeah that worked, bit of a polava to connect up but I now see all traffic through the modem.
 
Old 09-06-2016, 12:25 PM   #8
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,440

Rep: Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545
Cool. Glad you got sorted.
 
  


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
2 subnet LAN + WAN router paziulek Linux - Networking 1 01-30-2016 01:04 PM
[SOLVED] Is it possible to use squid in same ip subnet with WAN IP? Iptables Squid port problem. neopandid Linux - Server 2 03-18-2013 03:14 AM
Routing issue (same subnet, 2 wan gateway, 1 webserver) leosophy Linux - Networking 3 09-03-2010 03:15 PM
Ssh available from Lan, not Wan, router settings correct zoonil Linux - Networking 1 01-26-2006 04:01 PM
routing http traffic to the correct box on subnet nodine Linux - Security 1 07-15-2004 10:51 AM

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

All times are GMT -5. The time now is 03:27 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