Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
who locks a port?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jody
Guru
Guru


Joined: 16 Oct 2007
Posts: 509
Location: Switzerland

PostPosted: Sun Sep 21, 2014 8:39 pm    Post subject: who locks a port? Reply with quote

Hi

I need to connect to a server over the port 22222

When this didn't work, i tried telnet:
Code:
jody@raven ~/progs/QHG3/trunk/genes $ telnet bigboss 22222
Trying XXX.XXX.XXX.XXX...
telnet: Unable to connect to remote host: No route to host

on the other hand
Code:
jody@raven ~/progs/QHG3/trunk/genes $ telnet bigboss 8000
Trying XXX.XXX.XXX.XXX...
Connected to bigboss.
Escape character is '^]'.


As far as i can tell, i don't have any IPTables rules which block any ports:
Code:
jody@raven ~/progs/QHG3/trunk/genes $ sudo iptables -L       
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         


In this case, i try to connect via vpn.

From a machine with no iptables installed, living on the same IP subnet i can successfully connect over the port 22222.

So i guess either my issue is related to iptables, or vpn does not transmit my port 22222 requests, right?

Can anybody help me open the port 22222 for output (and input) on my machine?

Thank You
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7051
Location: almost Mile High in the USA

PostPosted: Mon Sep 22, 2014 3:32 am    Post subject: Reply with quote

It would the iptables of the router or the VPN server, if they happen to be the same. If you can't muck with the router then you'll have to find other ways to access the resource.

If company policy doesn't forbid and you have sshd enabled with port forwarding, you can use that to forward ports, like

ssh -L 22222:localhost:22222 bigboss

then in another window

telnet localhost 22222

and you'll be using bigboss's port 22222.

Not quite the same but may do what you need.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
webbj
n00b
n00b


Joined: 22 Sep 2014
Posts: 2

PostPosted: Mon Sep 22, 2014 1:45 pm    Post subject: Re: who locks a port? Reply with quote

jody wrote:
Hi

I need to connect to a server over the port 22222

When this didn't work, i tried telnet:
Code:
jody@raven ~/progs/QHG3/trunk/genes $ telnet bigboss 22222
Trying XXX.XXX.XXX.XXX...
telnet: Unable to connect to remote host: No route to host

on the other hand
Code:
jody@raven ~/progs/QHG3/trunk/genes $ telnet bigboss 8000
Trying XXX.XXX.XXX.XXX...
Connected to bigboss.
Escape character is '^]'.


As far as i can tell, i don't have any IPTables rules which block any ports:
Code:
jody@raven ~/progs/QHG3/trunk/genes $ sudo iptables -L       
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         


In this case, i try to connect via vpn.

From a machine with no iptables installed, living on the same IP subnet i can successfully connect over the port 22222.

So i guess either my issue is related to iptables, or vpn does not transmit my port 22222 requests, right?

Can anybody help me open the port 22222 for output (and input) on my machine?

Thank You


Can you check /etc/ssh/sshd_config and see if you have port 22222 there?
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7051
Location: almost Mile High in the USA

PostPosted: Mon Sep 22, 2014 1:54 pm    Post subject: Reply with quote

That is true, if that the company's way of hiding ssh by putting it on port 22222, then obviously you can't use sshd to forward. You probably are SOL and have to get someone else to muck with the remote router or find some other way to get on the network.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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