Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
when using an ssh tunnel, where are the hostnames resolved?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Off the Wall
View previous topic :: View next topic  
Author Message
bastibasti
Guru
Guru


Joined: 27 Nov 2006
Posts: 558

PostPosted: Tue Dec 12, 2017 8:48 am    Post subject: when using an ssh tunnel, where are the hostnames resolved? Reply with quote

Hi,

one question. I use a lot of ssh tunnels. I have one question however:

example ssh -L4444:somehost.com:4444 myserver.com

now when my client tries to access localhost:4444, where does that somehost.com get resolved? On the ssh server side or does the client tell the server the ip of the outgoing connection?
Back to top
View user's profile Send private message
Muso
l33t
l33t


Joined: 22 Oct 2002
Posts: 686
Location: The Holy city of Honolulu

PostPosted: Tue Dec 12, 2017 2:33 pm    Post subject: Reply with quote

Any reason why you picked Metasploit's favorite port?
_________________
People Of Love

Kindness Evokes Kindness

Peace Emits Positive Energy
Back to top
View user's profile Send private message
bastibasti
Guru
Guru


Joined: 27 Nov 2006
Posts: 558

PostPosted: Tue Dec 12, 2017 4:18 pm    Post subject: Reply with quote

just to use the same port as the application.
Back to top
View user's profile Send private message
Muso
l33t
l33t


Joined: 22 Oct 2002
Posts: 686
Location: The Holy city of Honolulu

PostPosted: Tue Dec 12, 2017 4:55 pm    Post subject: Reply with quote

for reverse shells, just : set LPORT xxxx
Bind shells : set rport xxxx

Port 4444 is well known, so changing it seems wise, imo.

To answer your question, check this out
_________________
People Of Love

Kindness Evokes Kindness

Peace Emits Positive Energy
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1605
Location: U.S.A.

PostPosted: Wed Dec 13, 2017 10:05 am    Post subject: Reply with quote

It gets resolved in Flatland.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Off the Wall All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum