Arrow
Software Bookmark Icon

Software >> fakeroute

This is a hack that makes your machine appear (to unix traceroute) to be anywhere on the internet. Specifically, you can define a route to append to the real route that any arbitrary host on the internet would see.

For example, if normal the traceroute output looks like:
xxxx:~$ /usr/sbin/traceroute yyyy.com
traceroute to yyyy (63.199.yy.yyy), 30 hops max, 38 byte packets
1 xx.xxx.com (172.17.8.1) 0.867 ms 0.713 ms 0.601 ms
2 adsl-64-165-xxx-xxx.dsl.snfc21.pacbell.net (64.165.xxx.xxx) 2.065 ms 1.895 ms 1.777 ms
3 adsl-63-201-58-73.dsl.snfc21.pacbell.net (63.201.58.73) 11.247 ms; 19.276 ms 17.315 ms
4 core3-g2-0.snfc21.pbi.net (206.171.134.130) 9.467 ms 8.700 ms 9.152 ms
5 rback23-fe2-0.snfc21.pbi.net (216.102.187.149) 14.432 ms 20.435 ms 16.546 ms
6 yyyy.com (63.199.yy.yyyy) 28.585 ms 26.445 ms 25.489 ms
It is then possible, using fakeroute, for yyyy.com to define a more interesting route, so that the same traceroute would look like:

xxxx:~$ /usr/sbin/traceroute yyyy.com
traceroute to yyyy (63.199.yy.yyy), 30 hops max, 38 byte packets
1 xx.xxx.com (172.17.8.1) 0.867 ms 0.713 ms 0.601ms
2 adsl-64-165-xxx-xxx.dsl.snfc21.pacbell.net (64.165.xxx.xxx) 2.065 ms 1.895 ms 1.777 ms
3 adsl-63-201-58-73.dsl.snfc21.pacbell.net (63.201.58.73) 11.247 ms 19.276 ms 17.315 ms
4 core3-g2-0.snfc21.pbi.net (206.171.134.130) 9.467 ms 8.700 ms 9.152 ms
5 rback23-fe2-0.snfc21.pbi.net (216.102.187.149) 14.432 ms 20.435 ms 16.546 ms
6 core4-g3-0.snfc21.pbi.net (216.102.187.130) 0.883 ms 0.594 ms 0.427 ms
7 sfra1sr3-so-1-1-1-0.ca.us.prserv.net (165.87.161.74) 0.446 ms 0.531 ms 0.423 ms
8 p3-0.washdc3-br2.bbnplanet.net (4.24.4.146) 0.442 ms 0.554 ms 0.422 ms
9 p5-0.vienna1-nbr2.bbnplanet.net (4.0.1.122) 0.444 ms 0.497 ms 0.419 ms
10 wh243.eop.gov (198.137.241.43) 0.442 ms 0.553 ms 0.42 ms
11 foundation.hq.nasa.gov (198.116.142.34) 0.442 ms 0.542 ms 0.422 ms
12 yyyy.com (63.199.yy.yyyy) 0.417 ms 0.421 ms 0.413 ms

Or yyyy.com could even define a route that makes the traceroute end entirely at foundation.hq.nasa.gov.