[Resolved] Looking for a PB Software Router

Just starting out? Need help? Post your questions and find answers here.
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

[Resolved] Looking for a PB Software Router

Post by Straker »

OK - I have searched the forums and PureArea and cannot find what I am looking for. And I don't want to reinvent the wheel just yet.

Here is what I am looking for (and is it even possible with PB?):

A "micro-router" that routes the IP traffic on a specific port from the listening PC to another PC on the network.

I have a client that I need to support a database that is installed on a server on their network but the server is not attached to the Internet, however other PCs in the office are. I want to install a simple software router on a "internet-accessible" PC then route a specific port to the server so I can access it remotely.

Has this been done already in PureBasic? Or does anyone know of a simple tool to do this?

Its only need for Windows-based PCs.

Any help or suggestions would be greatly appreciated!
Last edited by Straker on Thu Feb 02, 2006 8:42 pm, edited 1 time in total.
dmoc
Enthusiast
Enthusiast
Posts: 739
Joined: Sat Apr 26, 2003 12:40 am

Post by dmoc »

And your client agreed to this!? Off the bat I'd say this has to done at a lower level using gateway software. Maybe with PB if server comms is simple text and protocol (be slow though in comparison). Back to the big problem: security - if the server/nw ain't got a route to the external world then it's usually for very good reasons and if something goes wrong you may be held responsible. Just my 2cents worth.
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Post by Straker »

Thanks for your concern. They already have a firewall in place. Yes, the client agreed to use secure hamachi (www.hamachi.cc) as a VPN to access their PC so no ports are open on the firewall.

To clarify, I am not requesting a software router to replace a hardware firewall/router, I just need to get one port forwarded/routed to a different PC on the network.
dmoc
Enthusiast
Enthusiast
Posts: 739
Joined: Sat Apr 26, 2003 12:40 am

Post by dmoc »

ok. easiest answer: google for pc-based "gateway/ip-forwarding" software. They used to be quite common to share single modem connection from one pc on a network. HTH
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

@dmoc: Why should that be more secure than programming it yourself? If normal non-device-driver software actually can catch, modify and then send the packets why shouldnt it be able to deliver the contents to another pc?

still wondering why that software would be more secure..



Of course, the fastest, best and most secure option is a hardware router.
josku_x
Addict
Addict
Posts: 997
Joined: Sat Sep 24, 2005 2:08 pm

Post by josku_x »

Deleted for everybody's sake :D
Last edited by josku_x on Thu Feb 02, 2006 8:26 pm, edited 1 time in total.
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Post by Straker »

Thanks for all the suggestions. I will try a different approach to the explanation.

PC A and PC B are connected via a local area network.

PC A receives external requests and is behind a firewall/hardware router.

Any requests to port 687 on PC A, I need to forward to PC B which is not connected externally.

I cannot use the hardware router to forward the requests to PC B, just PC A.

I'm sorry if I am confusing anyone, but I don't know how else to explain it.

Thanks again for all the suggestions so far.
Max.
Enthusiast
Enthusiast
Posts: 225
Joined: Fri Apr 25, 2003 8:39 pm

Post by Max. »

Straker wrote:Thanks for all the suggestions. I will try a different approach to the explanation.

PC A and PC B are connected via a local area network.

PC A receives external requests and is behind a firewall/hardware router.

Any requests to port 687 on PC A, I need to forward to PC B which is not connected externally.

I cannot use the hardware router to forward the requests to PC B, just PC A.

I'm sorry if I am confusing anyone, but I don't know how else to explain it.

Thanks again for all the suggestions so far.
http://desproxy.sourceforge.net/

Look at socket2socket specifically.
Athlon64 3800+ · 1 GB RAM · Radeon X800 XL · Win XP Prof/SP1+IE6.0/Firefox · PB 3.94/4.0
Intel Centrino 1.4 MHz · 1.5 GB RAM · Radeon 9000 Mobility · Win XP Prof/SP2+IE6.0/Firefox · PB 3.94/4.0
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Post by Straker »

Thanks for all the suggestions. However, I think I found a solution here:

http://www.skylarktechnology.com/software/download.php

Pretty cool tool, I was hoping that there might be one in PureBasic though.

Cheers and thanks again.
dmoc
Enthusiast
Enthusiast
Posts: 739
Joined: Sat Apr 26, 2003 12:40 am

Post by dmoc »

thefool:
Why should that be more secure than programming it yourself? If normal non-device-driver software actually can catch, modify and then send the packets why shouldnt it be able to deliver the contents to another pc?
Question of security was related to providing *any* outside access to system configured (possibly) to prevent it, ie, server-to-pc, pc-to-internet *but* no direct server-to-internet. This is a policy issue not a technical one. The *seperate* technical issue of how to route packets came down to: DIY or off-the-shelf. Anyone with the ability to code a DIY solution needs more than average programming skills and would simply be re-inventing the wheel, probably not very well and at greater time/cost.

@Straker: Looks like an excellent find!
Post Reply