0

I have a serious problem with my institute's firewall. I have a Rackspace Cloud server instance that is configured to accept SSH connections on port 6xxx. When I was using port 22 there wasn't any problem; but when I switched to port 6xxx I cant connect using SSH. This is probably about our institute's firewall policy, as only the ports below 1024 can be listened by root processes on *nix. Is there a trick I can use to connect for once? I will add a MAC-based rule to allow my device.

Edit: I'm using iptables on CentOS 5.x

Best regards, Deniz

Journeyman Geek
  • 133,878

2 Answers2

1

Here are a couple of easy options that don't involve circumventing the firewall at all:

A. If you have access to a third machine (outside of the network), ssh to that on port 22 and then jump from there. See ssh-tunnel-via-multiple-hops as a starting point.

B. Just revert to port 22 (or 443 or anything else that is open). If your server is up-to-date and you follow the usual precautions for running ssh, it's really not an issue. Install fail2ban or similar to auto ban anyone poking around. Tie it to you MAC address and an IP range if you like.

Honestly, if you aren't set up securely enough to run ssh on port 22, you shouldn't be running it at all.

bitslave
  • 1,061
0

This might be overkill for your purposes, but Tor is pretty good at circumventing outbound firewalls.

As @journeyman-geek noted, getting permission from TPTB is probably in your interests.

Kenners
  • 41
  • 3