|
|
Newsgroup Port Forwarding
|
|
|
|
Mac Elite
Join Date: May 2001
Location: Up north
Status:
Offline
|
|
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.
)
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status:
Offline
|
|
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
|
|
|
|
|
|
|
|
Mac Elite
Join Date: May 2001
Location: Up north
Status:
Offline
|
|
what is the fork instruction stuff for?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|