Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hostnames vs. IPs #4

Open
zenfish opened this issue Jan 22, 2022 · 1 comment
Open

hostnames vs. IPs #4

zenfish opened this issue Jan 22, 2022 · 1 comment

Comments

@zenfish
Copy link

zenfish commented Jan 22, 2022

You use names in the text, but IPs in the actual commands... for instance, you write: "This sets up a remote port forward on JUMPBOX1’s 127.0.0.1 interface on TCP 5000", then show this as:

ssh -p 22 nemo@192.168.1.220 -R 127.0.0.1:5000:127.0.0.1:5555

However, using ports in numbers and hosts in text allows you to immediately pick out which is which, esp. in more complex lines... this seems far more readable... and eliminating the private IP space it makes it seem more real (I mean... who uses an IP vs. a FQDN/SSH host entry?)

ssh -p 22 nemo@jumpbox1 -R localhost:5000:localhost:5555

All IMHO, of course.

@opsdisk
Copy link
Owner

opsdisk commented Jan 25, 2022

Hi @zenfish - Again, appreciate the feedback along with #5.

IIRC, it was supposed to be a generic name describing the box and not technically a DNS host name.

As for the use of private IP space, I framed it coming from a pentesting background, where you may be inside a network with RFC1918 IPs everywhere and are more IP focused, instead of FQDN focused like a network admin might be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants