UGN Security Forums
My ProfileMember DirectoryLogin
Search our ForumsView our FAQView our Site Rules
View our CalendarView our Active TopicsGo to our Main Page

UGN Security Store

Network Sites UGN Security, The GoNix Initiative, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
Sponsored Links
Latest Postings
by Herbert_Sherbert
09/07/15 10:34 AM
Latest Reviews
Topic Options
Rate This Topic
#4468 - 12/28/03 05:54 PM Reverse Access Through SSH Tunnel
disinformation Offline
Junior Member

Registered: 12/28/03
Posts: 2
Loc: UK
Hi All,

I have two networks set up over a cisco 2600 router, on e0 and on e1.

Basically i have a server running on with a firewalled gateway at and the network is fully unfirewalled.

I have and sshd running at and can connect to it from and ssh is the only outbound port that ive opened.

I have and FTPd running on and would like to connect to it from the 192.168.0 subnet.

Is it possible to establish an ssh session between and then use that tunnel to reverse forward ftp. So for example from localhost:42 would go BACKWARDS through the tunnel and forward to the 10.0.0.x server.

Im new to this group so sorry for the newb question, ive search google loads but to no avail.

you SUCK!!

Sponsored Links
#4469 - 12/28/03 08:22 PM Re: Reverse Access Through SSH Tunnel
AnthonyVSD Offline
Junior Member

Registered: 12/21/03
Posts: 17
Loc: BC, Canada
Backtunneling through a SSH connection defeats the purpose of having SSH, I highly doubt you'd ever find a reliable way of accomplishing that. Your best bet would be to use some type of VPN session, though the way you have your servers setup has me slightly confused.
Anthony Gorecki
"Freedom through knowledge."

#4470 - 12/28/03 10:28 PM Re: Reverse Access Through SSH Tunnel
Infinite Offline

Registered: 03/09/02
Posts: 1041
Loc: Canada eh
Yeh, this seems overly complicated. Why not just add an access list to allow ftp only? I'm a little hazy on your setup, but something like:

(config)# access-list 101 permit tcp 0 eq 21

should do it. Naturally you'd have to modify it to suit your exact purposes, and then actually apply it to an interface; I would guess you'd use e0 like so:

(config-if)# access-group 101 out

Hope this helps.


#4471 - 12/29/03 09:29 PM Re: Reverse Access Through SSH Tunnel
disinformation Offline
Junior Member

Registered: 12/28/03
Posts: 2
Loc: UK
Sorry i should have been a little more clear on my intentions

The networks are set up, running with acls in place working fine, i can communicate between the networks how i please.

The point is ssh must remain open as my users need it.

My problem is, because of the nature of work the profiles on the NT 5.1 systems cannot be locked down at all.

The reason i am questioning the possibilty of such back tunneling is because in theory if it was possible, any one of my users could

# install a service

# run a ssh connection to an external networks sshd, such as a
home pc

#use back tunneling to connect to that service

for example with vnc, you can send vnc connect requests to a listening server on port 5500, this port is of course blocked on the gateway but could be tunneled straight through using ssh.

I realise vnc connect doesnt use a reverse tunneling method but it did get me thinking of the possibilitys :p

Sorry for the confusion
you SUCK!!


Moderator:  Infinite 
Featured Member
Registered: 09/07/15
Posts: 1
Forum Stats
2158 Members
46 Forums
41462 Topics
76636 Posts

Max Online: 1567 @ 04/25/10 02:20 AM
Top Posters
UGN Security 34624
Gremelin 7193
§intå× 3255
SilentRage 1273
Ice 1146
pergesu 1136
Infinite 1041
jonconley 955
Girlie 908
unreal 860
Newest Members
Herbert_Sherbert, codemauve, Lillysdragon1984, Brewwit, Suri John
2157 Registered Users
Who's Online
0 registered (), 264 Guests and 200 Spiders online.
Key: Admin, Global Mod, Mod
Latest News

  Get Firefox!
Get FireFox!