Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Newsgroup Port Forwarding

Newsgroup Port Forwarding
Thread Tools
11011001
Mac Elite
Join Date: May 2001
Location: Up north
Status: Offline
Reply With Quote
Jan 28, 2004, 01:21 AM
 
So here's the situation.

My stupid IT department at my university does not allow us to access the course newsgroup servers outside of the department network.

This is retarded. I have to ssh, with X11 forwarding, and then launch netscape on the remote computer, and read the newsgroup from there. It's way to slow.

So here is what I am thinking. The newsgroup work on port 119. I have access to computers on the cpsc network, through ssh.

Could I forward 119 from on of these computers, to my computer at home? That way, it would be like I was accessing the newsgroup as though I were actually on the cpsc network.

Can someone give me the command to do this. I can't get it to work.

I have been trying something like this from my own computer at home:

ssh -L 119:csh.cpsc.myuniversity.ca:119 localhost

(this i tried to figure out from the man pages)
( Last edited by 11011001; Jan 28, 2004 at 01:27 AM. )
     
Arkham_c
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Jan 28, 2004, 09:32 AM
 
Originally posted by 11011001:
So here is what I am thinking. The newsgroup work on port 119. I have access to computers on the cpsc network, through ssh.

Could I forward 119 from on of these computers, to my computer at home? That way, it would be like I was accessing the newsgroup as though I were actually on the cpsc network.

ssh -L 119:csh.cpsc.myuniversity.ca:119 localhost

You're pretty close. Remember however that to map to any port less than 1024 you have to be root. So, you need to do something like this:

sudo ssh -f -g -L 119:localhost:119 [email protected] "while [ true ]; do sleep 100; done"

This assumes you're using bash or a bourne shell as your shell on the remote host (csh.cpsc.myuniversity.ca in this example). If you're using cshell you'll have to replace the while loop with a cshell while loop.
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
11011001  (op)
Mac Elite
Join Date: May 2001
Location: Up north
Status: Offline
Reply With Quote
Jan 28, 2004, 09:33 PM
 
what is the fork instruction stuff for?
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 01:45 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,