LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-17-2005, 01:48 PM   #1
xowl
Member
 
Registered: Jan 2005
Distribution: Slackware current (and others)
Posts: 188

Rep: Reputation: 30
redirecting http server


I know I am lazy...



The situation is:
My university has a proxyed lan, so I cannot enter my U's pc from my home's pc.
I have access to a pc with a real IP (i.e I can ssh it from my house).

I installed webmin on this pc and I can enter it from my house, so I think that ports over 9999 are allowed to enter in this pc.

The question is:
I want to redirect for example the port 10001 of this computer to the http server of my pc, so I can see this http server from my home.

I think iptables will do it, but I don't want to read a complicated manual of iptables.


Anyone knows how to do this??



Thanx in advance

linX
 
Old 06-17-2005, 03:04 PM   #2
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
It may be overkill, but have you considered an apache reverse proxy running on port 10001 and forwarding requests to the real server?
 
Old 06-17-2005, 10:21 PM   #3
xowl
Member
 
Registered: Jan 2005
Distribution: Slackware current (and others)
Posts: 188

Original Poster
Rep: Reputation: 30
Quote:
It may be overkill, but have you considered an apache reverse proxy running on port 10001 and forwarding requests to the real server?
It sounds great,... but how can it be done??

Thanx in advance
 
Old 06-18-2005, 04:25 AM   #4
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
Make sure that mod_proxy is on, and that Apache listens on port 10001
Code:
<VirtualHost *:10001>
<Proxy *:10001>
Order deny,allow
Allow from mynetwork
Deny from all
</Proxy>
ProxyPass / http://www.me.com/
ProxyPassReverse / http://www.me.com/
</VirtualHost>
If you want, I think you can remove <VirtualHost *:10001>.

http://httpd.apache.org/docs/mod/mod_proxy.html for apache 1.3
http://httpd.apache.org/docs-2.0/mod/mod_proxy.html for apache 2.0

NOTE: There may be severe security implications to this setup, as, on the real server, all proxied requests will seem to come from the proxy, not the original visitor. Make sure you have good access control set up on your proxy.

Last edited by stefan_nicolau; 06-18-2005 at 04:46 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HTTP server carlosa52 SUSE / openSUSE 1 07-05-2005 10:12 PM
Cant see http server xowl Linux - Networking 6 06-19-2005 12:15 AM
Http Server help eckertc1 Linux - Newbie 8 03-06-2005 02:23 AM
Redirecting URL to another server wilcoNL Linux - Software 3 04-05-2004 07:00 AM
Linux email server and some HTTP server questions Steven6282 Linux - General 7 02-19-2003 03:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration