Networking Forums

Networking Forums > Computer Networking > Linux Networking > How to install/enable simple proxy and port forwarding?

Reply
Thread Tools Display Modes

How to install/enable simple proxy and port forwarding?

 
 
Matthew Lincoln
Guest
Posts: n/a

 
      11-18-2008, 07:08 PM
On a Linux system I want to do the following:

I want to listen on port 2345 for incoming requests from Internet.
When a request is arriving it should be (unchanged) taken and "forwarded"
to another computer with IP 123.456.123.456 and port 6789

I think this scenario is a kind of simplified proxy plus port forwarding.

How can I achieve this?

I prefer not to install some special additional software but to configure some local network files
for this special scenario.

That means incoming request e.g. on http port 80 should not be touch but treated as "normal"
by the local HTTP web server.

Matthew
 
Reply With Quote
 
 
 
 
Tauno Voipio
Guest
Posts: n/a

 
      11-18-2008, 07:37 PM
Matthew Lincoln wrote:
> On a Linux system I want to do the following:
>
> I want to listen on port 2345 for incoming requests from Internet.
> When a request is arriving it should be (unchanged) taken and "forwarded"
> to another computer with IP 123.456.123.456 and port 6789
>
> I think this scenario is a kind of simplified proxy plus port forwarding.
>
> How can I achieve this?
>
> I prefer not to install some special additional software but to configure some local network files
> for this special scenario.
>
> That means incoming request e.g. on http port 80 should not be touch but treated as "normal"
> by the local HTTP web server.
>
> Matthew



Get a suitable set of documentation from http://www.netfilter.org/

Click the link HOWTOs on the left sidebar and pick the documents
you feel necessary.

For a newbie, the 'Tutorials' block is a good starting point.

--

Tauno Voipio
tauno voipio (at) iki fi
 
Reply With Quote
 
Luuk
Guest
Posts: n/a

 
      11-18-2008, 07:57 PM
Matthew Lincoln schreef:
> On a Linux system I want to do the following:
>
> I want to listen on port 2345 for incoming requests from Internet.
> When a request is arriving it should be (unchanged) taken and "forwarded"
> to another computer with IP 123.456.123.456 and port 6789
>
> I think this scenario is a kind of simplified proxy plus port forwarding.
>
> How can I achieve this?
>
> I prefer not to install some special additional software but to configure some local network files
> for this special scenario.
>
> That means incoming request e.g. on http port 80 should not be touch but treated as "normal"
> by the local HTTP web server.
>
> Matthew


This is a simple solution for this:
http://sourceforge.net/projects/simpleproxy

 
Reply With Quote
 
Chris Davies
Guest
Posts: n/a

 
      11-18-2008, 09:32 PM
In comp.os.linux.misc Matthew Lincoln <(E-Mail Removed)> wrote:
> I want to listen on port 2345 for incoming requests from Internet.


TCP, UDP, or both?

> When a request is arriving it should be (unchanged) taken and "forwarded"
> to another computer with IP 123.456.123.456 and port 6789


Look at iptables, specifically the DNAT option.

> I think this scenario is a kind of simplified proxy plus port forwarding.


I guess you could do that, but it wouldn't be unchanged as you'd be
terminating the session on your proxy and establishing a new connection
from there to your destination server.

Chris
 
Reply With Quote
 
Cork Soaker
Guest
Posts: n/a

 
      11-19-2008, 01:19 PM
Matthew Lincoln wrote:
> On a Linux system I want to do the following:
>
> I want to listen on port 2345 for incoming requests from Internet.
> When a request is arriving it should be (unchanged) taken and "forwarded"
> to another computer with IP 123.456.123.456 and port 6789
>
> I think this scenario is a kind of simplified proxy plus port forwarding.
>
> How can I achieve this?
>
> I prefer not to install some special additional software but to configure some local network files
> for this special scenario.
>
> That means incoming request e.g. on http port 80 should not be touch but treated as "normal"
> by the local HTTP web server.
>
> Matthew


http://www.google.co.uk/search?q=lin...ient=firefox-a
 
Reply With Quote
 
Cork Soaker
Guest
Posts: n/a

 
      11-19-2008, 01:19 PM
Matthew Lincoln wrote:
> On a Linux system I want to do the following:
>
> I want to listen on port 2345 for incoming requests from Internet.
> When a request is arriving it should be (unchanged) taken and "forwarded"
> to another computer with IP 123.456.123.456 and port 6789
>
> I think this scenario is a kind of simplified proxy plus port forwarding.
>
> How can I achieve this?
>
> I prefer not to install some special additional software but to configure some local network files
> for this special scenario.
>
> That means incoming request e.g. on http port 80 should not be touch but treated as "normal"
> by the local HTTP web server.
>
> Matthew


http://www.google.co.uk/search?q=lin...ient=firefox-a

And there's no need to post this in multiple groups.
 
Reply With Quote
 
Todd H.
Guest
Posts: n/a

 
      11-23-2008, 03:12 AM
(E-Mail Removed) (Matthew Lincoln) writes:
> On a Linux system I want to do the following:
>
> I want to listen on port 2345 for incoming requests from Internet.
> When a request is arriving it should be (unchanged) taken and "forwarded"
> to another computer with IP 123.456.123.456 and port 6789
>
> I think this scenario is a kind of simplified proxy plus port forwarding.
>
> How can I achieve this?


Here's one way, anyway: from the internal host, ssh to the
internet-facing host and set up a reverse tunnel for 2345 to go to the
internal host's 6789:

host_123.456.123.456 $ ssh -R2345:127.0.0.1:6789 user@thatinternetfacingserverip

man ssh() and look at -R

You'll need to do some monkeying with teh internet server's
sshd_config file to get port 6789 to open on the external interface
rather than just on its loopback. Bonus here is that the traffic is
forwarded over a secure tunnel if that's of any use to ya.


--
Todd H.
http://www.toddh.net/
 
Reply With Quote
 
johannes.grad@gmail.com
Guest
Posts: n/a

 
      12-03-2008, 11:55 PM
On Nov 18, 12:08*pm, kmlincoln...@hotmail.com (Matthew Lincoln) wrote:
> On a Linux system I want to do the following:
>
> I want to listen on port 2345 for incoming requests from Internet.
> When a request is arriving it should be (unchanged) taken and "forwarded"
> to another computer with IP 123.456.123.456 and port 6789
>
> I think this scenario is a kind of simplified proxy plus port forwarding.
>
> How can I achieve this?
>
> I prefer not to install some special additional software but to configuresome local network files
> for this special scenario.
>
> That means incoming request e.g. on http port 80 should not be touch but treated as "normal"
> by the local HTTP web server.
>
> Matthew


You should be able to do that with the port forwarding from ssh.
Look at the -L option in ssh.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple port forwarding problem jrpfinch Wireless Internet 7 11-27-2006 04:07 PM
Simple Port Forwarding Without SSH anonyusenet@gmail.com Linux Networking 1 07-03-2006 10:04 AM
2003 RRAS port forwarding problem, simple but strange? help please! WildIrish Windows Networking 2 06-15-2006 05:13 PM
Cannot Enable Dialup Proxy Server ?? TheRealFastlane Windows Networking 0 10-05-2004 02:10 PM
MN-100 Port forwarding not as simple as old router D.C. Larreau Broadband Hardware 5 06-06-2004 12:55 AM



1 2 3 4 5 6 7 8 9 10 11