Command line

SSH keepalive

Sometimes firewalls kill long persistent connections. To overcome this, you can use ssh with a keepalive setting.

ssh -o TCPKeepAlive=yes -o ServerAliveInterval=50 bob@server


Check if Perfect Forward Secrecy is enabled. If the connection is still open, PFS is enabled. If OpenSSL exits, it's not enabled.

openssl s_client -connect


How to make a proper tcpdump to use in wireshark.

tcpdump -i eth0 -s 65535 -w dump.pcap

Include or exclude hosts, ports etc.

tcpdump port 22 and host not
tcpdump src host not
tcpdump dst net
tcpdump tcp dst portrange 1-1023
tcpdump -v "icmp or arp"



Use socks proxies:

set Proxies socks4:
set Proxies socks5:

Or HTTP Proxies

set Proxies http:ip:port