Bitcoin Forum
December 11, 2016, 04:37:03 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: « 1 [2]  All
  Print  
Author Topic: Anyone Getting Notices from Comcast due to Bitcoin Mining?  (Read 3142 times)
check_status
Full Member
***
Offline Offline

Activity: 196


Web Dev, Db Admin, Computer Technician


View Profile
February 21, 2012, 02:20:05 PM
 #21

@Kluge
I think I found another option for implementing port mirroring without a switch.

Quote
The solution lies in iptables!

There is an experimental target (ROUTE) which offers an option (--tee) that behaves like the good old linux “tee” command.  It copies a packet to a target ip address and then goes on with the normal behaviour (routing it to it’s normal target.)

So, how are we going to use this for our port-mirroring?

Imagine that our router has the ip address 192.168.1.1, and our monitor pc has the ip address 192.168.1.254. Then the following two lines will do the trick:
Code:
iptables -A PREROUTING -t mangle -j ROUTE --gw 192.168.1.254 --tee

iptables -A POSTROUTING -t mangle -j ROUTE --gw 192.168.1.254 --tee
This will send a copy of all packets to the monitor pc with the ip 192.168.1.254.

On the monitor, we simply start tcpdump with our desired options and we can monitor all traffic…

In my example, I’m interested in all traffic which has to do with the ip 192.168.1.3 so I call:
Code:
tcpdump (some options here) host 192.168.1.3
http://www.myopenrouter.com/article/10917/Port-Mirroring-Span-Port-Monitor-Port-with-iptables-on-NETGEAR-WGR614L/

Quote
The “-gw” argument should be “–gw” (notice it has two hyphens, not one). The “-tee” argument should also have two hypens, like so: “–tee”.

The rest of the arguments are correct; “-A”, “-t” and “-j” should have only one hyphen.

The shell general rule of thumb is when a command line argument option has more than one letter to it, it gets two hyphens.
http://blog.goddchen.de/2009/03/port-mirroring-span-port-monitor-port-with-iptables/

Note: I believe this is accomplished on modified routers running DD-WRT, Open-WRT or the like.

For Bitcoin to be a true global currency the value of BTC needs always to rise.
If BTC became the global currency & money supply = 100 Trillion then ⊅1.00 BTC = $4,761,904.76.
P2Pool Server List | How To's and Guides Mega List |  1EndfedSryGUZK9sPrdvxHntYzv2EBexGA
Pages: « 1 [2]  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!