OK Linux gurus.. Access linux behind a firewall

Get advice from the Nerd Herd!

OK Linux gurus.. Access linux behind a firewall

Postby K9EZ » Wed Jul 28, 2010 2:02 pm

I am looking to find a way to access Ubuntu boxes behind a firewall, without opening any more ports. I have a bunch of ports already opened to one of our servers, but dont have the ports mapped back to the boxes I am trying to reach. I guess I am looking for a solution like GoToMy PC but free and for Linux and only for Putty/ssh.

Thoughts?
Kent Winrich
Owner, Consultant, Floor Sweeper and Official Thread Hijacker
http://www.BroadcastPro.Biz
Raleigh, NC
User avatar
K9EZ
Site Admin
 
Posts: 2640
Joined: Wed Nov 14, 2007 4:16 pm
Location: Raleigh, NC

Re: OK Linux gurus.. Access linux behind a firewall

Postby BroadcastDoc » Wed Jul 28, 2010 3:40 pm

Yeah. Ditch Linux and install Windows 7 or OS X! :twisted:
Christopher "Doc" Tarr CBRE, CBNT, DRB
BroadcastDoc Technical Services
Help support the Virtual Engineer, use our 1&1 Affiliate link if you need good, cheap hosting.
Virtual Engineer. The Broadcast Engineering discussion forum
User avatar
BroadcastDoc
Site Admin
 
Posts: 1910
Joined: Tue Nov 13, 2007 4:34 pm
Location: Milwaukee, WI

Re: OK Linux gurus.. Access linux behind a firewall

Postby K9EZ » Wed Jul 28, 2010 4:45 pm

BroadcastDoc wrote:Yeah. Ditch Linux and install Windows 7 or OS X! :twisted:


What? Have you gone insane?

Actually I may have a home brew fix using reverse SSH. Still open to ideas......
Kent Winrich
Owner, Consultant, Floor Sweeper and Official Thread Hijacker
http://www.BroadcastPro.Biz
Raleigh, NC
User avatar
K9EZ
Site Admin
 
Posts: 2640
Joined: Wed Nov 14, 2007 4:16 pm
Location: Raleigh, NC

Re: OK Linux gurus.. Access linux behind a firewall

Postby techboywi » Wed Jul 28, 2010 8:22 pm

Ubuntu itself, does not have a built in firewall, so if the computer is not behind a firewall, anyone and everyone will be able to see it. Now...since it is behind a firewall, the only way to get to the box is by opening ports. Now, there is a remote desktop application built into Ubuntu desktop. It works similarly to VNC. I have not used it myself, so I really can't speak on if it work in this particular instance
Bob C
TechboyWI
http://www.bobs-world.net (personal site)
http://www.facebook.com/techboywi (Facebook page)
Twitter:techboywi
"Dream as if you'll live forever, live as if you'll die today"--James Dean

Image
User avatar
techboywi
Moderator
 
Posts: 271
Joined: Thu Nov 15, 2007 11:43 am
Location: Nashville, TN

Re: OK Linux gurus.. Access linux behind a firewall

Postby Tim Burke » Thu Jul 29, 2010 1:03 am

I use one Linux box open to the Internet (via VPN), and connect to other internal boxes via SSH.
User avatar
Tim Burke
Forum Jedi
 
Posts: 345
Joined: Sun Nov 18, 2007 2:10 am
Location: Plainfield, IL

Re: OK Linux gurus.. Access linux behind a firewall

Postby K9EZ » Thu Jul 29, 2010 9:52 am

we found a way to write a script to have the remote box "check in" to the main server every X minutes. When it checks in the server can send a command that will allow reverse SSH to kick in. Since we have port 22 open at all of the locations, we **should** be good to go.

Thats the plan at least.
Kent Winrich
Owner, Consultant, Floor Sweeper and Official Thread Hijacker
http://www.BroadcastPro.Biz
Raleigh, NC
User avatar
K9EZ
Site Admin
 
Posts: 2640
Joined: Wed Nov 14, 2007 4:16 pm
Location: Raleigh, NC

Re: OK Linux gurus.. Access linux behind a firewall

Postby eadler » Wed Aug 04, 2010 8:57 pm

I use ssh on a nonstandard port and then push things across. When I really need to play around like I'm on the network, I tell my system to use a socks5 proxy for all traffic except to that server and I create a Dynamic port forward (the proxy is 127.0.0.1:[the port I forwarded dynamically]).
Eric "tonsofpcs" Adler
http://www.videoproductionsupport.com/
Twitter: @eric_adler
eadler
 
Posts: 248
Joined: Mon Dec 15, 2008 3:23 pm
Location: Binghamton, NY

Re: OK Linux gurus.. Access linux behind a firewall

Postby Sam Buca » Thu Aug 05, 2010 9:01 am

Tim Burke wrote:I use one Linux box open to the Internet (via VPN), and connect to other internal boxes via SSH.

This is my vote. I don't think messing around with other methods is reliable. If you absolutely cannot have ssh open to the outside, it's the way to go.
73 de KB3OOJ
User avatar
Sam Buca
Moderator
 
Posts: 1178
Joined: Tue Dec 04, 2007 11:36 am
Location: PA

Re: OK Linux gurus.. Access linux behind a firewall

Postby radiowave911 » Tue Aug 31, 2010 10:05 pm

Since you mentioned the Goto MY PC thing, I am assuming you want a GUI. The best thing to do is to tunnel X over SSH. You need to have a port open for SSH to listen on, however it is not difficult to set up. I don't have the instructions handy or memorized, however a Google search for tunneling X over SSH should give oyu something useful. X Clients are available for Windows platforms. I rather like bringing up a desktop from a real OS on a Windows box :)

If you already have SSH open to a single Linux box, you can use that box to forward your session to another box. You should be able to tunnel the X session the whole way through.
radiowave911
 
Posts: 8
Joined: Wed Mar 10, 2010 6:41 pm
Location: Middletown, PA

Re: OK Linux gurus.. Access linux behind a firewall

Postby eadler » Fri Sep 03, 2010 3:52 pm

Actually, the X Server is what you need on Windows (XMing is a good one) -- X uses somewhat odd terminology, the Server creates the screen that applications ("Clients") connect to, so you run a Server on your client machine and then run a client application on your ssh server and it connects across.
Eric "tonsofpcs" Adler
http://www.videoproductionsupport.com/
Twitter: @eric_adler
eadler
 
Posts: 248
Joined: Mon Dec 15, 2008 3:23 pm
Location: Binghamton, NY


Return to General Computers

Who is online

Users browsing this forum: No registered users and 1 guest

cron