5

For example:

Setting up a server as an secure HTTP proxy to use in a filtered internet connection. Altering a computer's/network's DNS to reroute traffic.

What are some other fun and useful tricks you think we should all know about?

HopelessN00b
  • 54,273

8 Answers8

5

Screen

(linux & OS X/macports)

It allows console users to run any number of text-based applications, interactive command shells, curses-based applications, text editors etc, within a single terminal.

I barely started using it fluently, thanks to a few online tutorials out there: http://news.softpedia.com/news/GNU-Screen-Tutorial-44274.shtml

Quick reference:

  • Start a new session: #screen -S sessioname
  • Ctrl+a d to detach
  • List running sessions: #screen -ls
  • Connect to running session: #screen -x sessioname

There are some Pros here who might want to add to this post their useful commands for screen.

Here's another useful tutorial

l0c0b0x
  • 12,187
5

Using your host file to send ad crap to localhost.

Alan
  • 540
4

anycast - we use it for our DNS.

Jason Tan
  • 2,792
3

Upside-Down-Ternet

An excellent little trick to play on unsuspecting users. The "kitty war" intermediate idea too.

1

ssh's various tunneling options

  • -R forward port from remote host to/through the initiating end of the ssh session
  • -L forward port from initiating host through the remote host
  • -D ssh's socks-proxy
1

mostly linux [ and possibly bsd ] relaed:

using openvpn in bridge mode to.. bridge remote ethernet segments. not efficient, but sometimes really helpful.

using netcat instead of ssh to transfer data quickly across secure local network.

using reverse proxy or DNAT combined with SNAT on multihomed host to make some services from network A available to clients in network B when you [ for some political reasons ] have no control over routing between A and B.

using fail2ban to block blind hammering of your ssh / ftp / http and possibly other services.

pQd
  • 30,537
0

Set up some magic in your ~/.ssh/config to do automagic jump host forwarding. Lets you do things like ssh login1%host1+login2%host2+host3 right from the command line without breaking flow to go set up a tunnel and remember the ProxyCommand syntax.

user2108
  • 271
0

clusterssh to execute commands easily on multiple server!

wittwerch
  • 158