Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 17th, 2006, 11:52 PM   #1
PhilBon
Hobbyist Programmer
 
PhilBon's Avatar
 
Join Date: Nov 2005
Posts: 172
Rep Power: 4 PhilBon is on a distinguished road
Send a message via AIM to PhilBon Send a message via MSN to PhilBon
traveling through routers

Does anyone have any idea on if someone could create a program or socket that would be able to change as it went though routers. Basically this: I send packet a to 192.168.0.2(router) when it gets there the packet changes it's detination to 192.168.1.2 (2nd router) and then when it gets there it changes once again to hit 192.168.2.2 (3rd router) and then finally moves onto 192.168.2.25 (the coupter it needs to reach). The reason I ask for this is because the IT administrators at my school want to be able to access our server internally but the District wont let us configure the router for port forwarding. Plus we want to make it so that only people that know the system can get in and keep hackers away.
On that thought anyone know of a program or file that will do a trace for me and find all the routers and different things that might be in the way between the LAN and WAN?
PhilBon is offline   Reply With Quote
Old Feb 19th, 2006, 12:23 AM   #2
J_Kay
Newbie
 
J_Kay's Avatar
 
Join Date: Feb 2006
Location: Indiana
Posts: 7
Rep Power: 0 J_Kay is on a distinguished road
Send a message via Yahoo to J_Kay
I don't believe you can do that, because when a packet is sent to the router, it has a set destination address. If you send a packet with the destination of 2.25, it'll head to its default gateway, which would be router 1. Router 1 would then check its routing table and try to send it to the next possible place down the line. Router 1 would know about Routers 2 & 3, because of a protocol, can't remember the name off the top of my head, but they share routing info. So Router 1 would know that to get to 2.25 it needs to send the packet to Router 2. Router 2 knows about Router 3, and would send it's direction. Hope this didn't confuse you, and hope it helps. I'm new to programming so they're might be some tricks, but I'm pretty sure that the header of the packet can't be manipulated too much, because it would lose "integrity" and the server could discard it.
J_Kay is offline   Reply With Quote
Old Feb 20th, 2006, 10:20 AM   #3
jim mcnamara
Hobbyist Programmer
 
Join Date: Jun 2005
Location: New Mexico
Posts: 228
Rep Power: 4 jim mcnamara is on a distinguished road
Does your District understand what a NAT is? That provides exactly what they want.
A NAT provides a dynamic dummy IP address to the "outside" world.

Assuming I understand your question....

Plus, what you described will NOT work.
jim mcnamara is offline   Reply With Quote
Old Feb 20th, 2006, 3:25 PM   #4
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 770
Rep Power: 3 Jimbo is on a distinguished road
Quote:
Originally Posted by PhilBon
On that thought anyone know of a program or file that will do a trace for me and find all the routers and different things that might be in the way between the LAN and WAN?
You mean like running a traceroute?

As to the main question, you might be able to do it by setting up static routes between your routers (something like if the dest IP is w.x.y.z, then go to this next hop for each router), although that's just a pain. That way you'd have to know the right dest IP to get it to work. Alternatively, since you aren't allowed to do port-forwarding, can you set up an ACL?

I guess part of the solution will depend on what you mean by "access our server internally." If they're on the LAN then it should be pretty easy. If they want to access it remotely from outside the LAN, you might look into a VPN or something like that.

And if the 192.168.x.y addresses you gave us are the actual ones, then you already have NAT running at the edge of your network...
Jimbo is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:31 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC