Bitcoin Forum
June 25, 2018, 04:11:07 PM *
News: Latest stable version of Bitcoin Core: 0.16.1  [Torrent]. (New!)
   Home   Help Search Donate Login Register  
Pages: « 1 [2]  All
Author Topic: Anyone Getting Notices from Comcast due to Bitcoin Mining?  (Read 3587 times)
Full Member
Offline Offline

Activity: 196
Merit: 100

Web Dev, Db Admin, Computer Technician

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

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

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, and our monitor pc has the ip address Then the following two lines will do the trick:
iptables -A PREROUTING -t mangle -j ROUTE --gw --tee

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

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 so I call:
tcpdump (some options here) host

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.

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
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!