View previous topic :: View next topic |
Author |
Message |
Malak n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 17 Jun 2004 Posts: 59
|
Posted: Sun Sep 19, 2004 7:51 pm Post subject: Router configuration |
|
|
Hi all,
I'm trying to get my router to point to my gentoo box on port 80.
So far ive managed to configure the router to do its configuration stuff on port 1001 (instead of 80)
Ive also put a Rule in pointing public port and private port 80 to point to 10.0.0.7 (which is what the gentoo box always gets from the routers DHCP.)
I can access 10.0.0.7 in a web browser, but when I try to access it on my domain (web based dynamic IP tracking from dnsexit) it tells me it cant find the host (standard web browser not found error)
Ive installed and run Firestarter and go it to open port 80, but something isnt working
Any help appreciated ![Smile :)](images/smiles/icon_smile.gif) _________________ No signature for me thanks! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Malak n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 17 Jun 2004 Posts: 59
|
Posted: Sun Sep 19, 2004 8:07 pm Post subject: |
|
|
ive concluded the problem isnt to do with my domain, because i can access the router on port 1001 from my internet ip address and its local network address
is port 80 locked or something?
ive tried redirecting it to 8080 and 81 but nothing works
*looks at apache conf*
.. _________________ No signature for me thanks! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Malak n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 17 Jun 2004 Posts: 59
|
Posted: Sun Sep 19, 2004 8:23 pm Post subject: |
|
|
nothing _________________ No signature for me thanks! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
m.b.j. Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 12 Sep 2003 Posts: 407 Location: Germany (Essen)
|
Posted: Sun Sep 19, 2004 9:29 pm Post subject: |
|
|
Try to test, if the dynamic ip is listed correct
Code: | # host [your alias]
|
if so
then run iptraf, to se the traffic, so you could find out if any tcp connection is established
if a connection can be established it semms to be an configuration problem of your server software. _________________ root@mbj # echo "sys-pizza/calzone -tunfish" >> /etc/paludis/use.conf
root@mbj # paludis -i calzone --dl-blocks discard |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Malak n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 17 Jun 2004 Posts: 59
|
Posted: Mon Sep 20, 2004 8:51 pm Post subject: |
|
|
hostid returns "a8c00100"
hostname returns my computer name _________________ No signature for me thanks! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Malak n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 17 Jun 2004 Posts: 59
|
Posted: Tue Sep 21, 2004 3:11 pm Post subject: |
|
|
Is there any way I can know if my router is faulty?
I dont want to send it back for no reason?
Could it be a NAT problem?
I know NOTHING about NAT NATP or DNAT and my router can do all of them
What is a NAT session?
When I add my apache host's IP as a NAT session it wont even connect to the internet
I hate routers ![Sad :(](images/smiles/icon_sad.gif) _________________ No signature for me thanks! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DaveArb Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 29 Apr 2004 Posts: 510 Location: Texas, USA
|
Posted: Tue Sep 21, 2004 3:30 pm Post subject: Re: Router configuration |
|
|
Malak wrote: | Ive also put a Rule in pointing public port and private port 80 to point to 10.0.0.7 (which is what the gentoo box always gets from the routers DHCP.) |
I'm not aware of any provision in TCP for "public" or "private" port information, they are just ports. If you mean that you routed port 80 traffic leaving your LAN to 10.0.0.7, that sounds like a pretty large error that would show on all the computers on your LAN.
Routers aren't that hard, you're just missing the concept. You have one public IP, but you want a machine to decide where to send traffic based on certain conditions, that's what a router is for.
Malak wrote: | So far ive managed to configure the router to do its configuration stuff on port 1001 (instead of 80) |
This makes no difference to any router I've ever worked with. To address router configuration, you have to hit its config port (apparently previously 80 in your case) on _its_ IP. Your web host will not normally be conversing with the router's IP, it will be conversing with the IP of the remote machine talking to it.
Specific suggestions:
- Remove any routing entries that deal with the LAN side of the router. At least for the purposes of the web host, they are not needed.
- Ensure there is a route for the WAN (Internet) side of the router that points traffic with destination port 80 to 10.0.0.7.
- Remove 10.0.0.7 from the router's DHCP and set the IP static in the web host. Just because its assigned that IP in the past doesn't guarantee it will continue to.
- MOST IMPORTANT, understand this commentary before doing anything. My comments are very generic (and could be wrong off the top of my head), just following directions without understanding from someone who doesn't have full knowledge of your network is a very bad idea.
To test if your routes are set up correctly without having to worry about the dDNS, point a browser from _outside_ your network, to your public IP. Trying this from inside the network will almost always fail.
Dave |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|