Bash Script Thumbnail
I wanted something to quickly take a bunch of images and make a gallery page. The linux binary convert and a Bash Script to create thumbnails did the trick:
Read MoreEnable IP Forwarding
By default, Checkpoint firewalls will not let pings pass through them. However, when you first setup a network, it’s useful to be able to test wide open through the firewall to verify routing and connectivity. Here is how to enable IP forwarding.
Read More
View HTTP Headers with Wget
View HTTP Headers with WGET There are tools like curl, fiddler2, httpwatch, and of course wireshark that will show greater details, but if you don’t have these available, or are looking for a simple way to get debug http headers – you can use wget:
Read MoreFind max MTU size
- MTU
- Maximum Transmission unit is how big of a fragment can be sent. TCP/IP fragments data that doesn’t fit into one window (just about everything), then reassembles it at the far end. If the MTU is wrong, networking will fail.
I was wondering what the max MTU size was from my PC to our gateway … here is how I found the max mtu size
Read More
Use Curl to See HTTP Headers
You can use curl to see the http headers from an email link, or webpage is going to send you to a known bad page. If you want to see the contents of the page, without risk of infection (look for base64 encoding is a good sign of an infected page, but common sense will prevail) – just curl the http://address without parameters. But if you want to get the headers from an http request using curl instead of your browser – perhaps to troubleshoot http response codes, ssl certificates or other website problems, then this is a technique that will help you…
Read More
SSH Tunnel Tutorial
Using an ssh server that has internet access as a browsing point, you will create an ssh tunnel from your local PC to a remote server. Source all of your traffic from it, and encrypt communications to it using free software. This tutorial will show you how to setup an SSH Tunnel and use this to create a Socks Proxy.
Read MoreSSH Security Checklist
SSH Security is easy. Edit the /etc/ssh/sshd_config and review the following ssh security checklist:
Read Moressh timeout
SSH Timeout If SSH timeout is bugging you, here is how to increase the timeout for the ssh shell: On the Server: sudo vim /etc/sshd_config #add this line for server side keep alives every 60s: ClientAliveInterval 60 On the Client: sudo vim /etc/ssh_config #add this line to send keep alives from client to server every […]
Read Moresudo vim AFTER you typed
I was looking up how to goto a line in VIM, and found a great article that had the method of going to a line (:1322 if you wanted to go to link 1322), and I found a gem:
Read More