News for hackers. Stuff that matters.

fnordist

Re:Curl those funny IPv4 addresses on Monday April 19, 2021 @07:32AM (#26861535)
I like to use these "funny" addresses for two purposes:

  ping 1.1
(1.0.0.1 - cloudflare dns server)

  use 10.1 10.2 10.3 as IP addresses in my home network
(10.0.0.1/24)

off-topic: thanks @Daniel Stenberg for curl and for rockbox back in the day when it first showed me the wonders of open-source.

Re:SSH hacks – a little sanity for remote workers on Thursday April 30, 2020 @04:07AM (#23028596)
I use the Socks-Proxy only for internal Websites:

You habe to create a local "proxy.pac" file with the following contents:

function FindProxyForURL(URL,host) { host = host.toLowerCase(); if (shExpMatch(host,"*.my-company.com")) { return "SOCKS5 127.0.0.1:9090"; } return "DIRECT"; }

Then set "file:///path/to/proxy.pac" as auto-config URL in the Firefox-proxy-settings. Don't forget to enable DNS-Requests over SOCKS5.

For services, which you can't proxy with SOCKS5, you can use LocalForward in your ssh_config: Match host your-workstation !exec "nc -vz xmpp.my-company.com 5222 &>/dev/null || { echo 'xmpp.my-company.com not reachable, using LocalForward' 1>&2 && exit 1 ; }" LocalForward 127.0xcafe1:5222 xmpp.my-company.com:5222

Then add the following line to your /etc/hosts: 127.12.175.225 xmpp.my-company.com