View previous topic :: View next topic |
Author |
Message |
OdinsDream Veteran
Joined: 01 Jun 2002 Posts: 1057
|
Posted: Mon Dec 30, 2002 4:11 am Post subject: emerge works only if NAT port-forwarding is DISabled |
|
|
I have a wireless access point at home that serves as a NAT router to the computers in the house. I have one main gentoo system behind the router that serves webpages and other services. Other systems in the house are private.
I have each of the machines' ip addresses configured statically. The main server is 192.168.2.3
In order to get the web-server, and other services, visible from outside, I set up the NAT router to forward all ports to 192.168.2.3
With this setup, emerge rsync times out, and any other emerge operations time out. If, however, I turn off port-forwarding on the NAT router, emerge operates normally.
How can I fix this? What am I doing wrong? |
|
Back to top |
|
|
kram n00b
Joined: 29 Nov 2002 Posts: 35
|
Posted: Mon Dec 30, 2002 9:45 am Post subject: |
|
|
Maybe you should forward only the ports required for the services that you run, instead of forwarding all of them. |
|
Back to top |
|
|
rizzo Retired Dev
Joined: 30 Apr 2002 Posts: 1067 Location: Manitowoc, WI, USA
|
Posted: Mon Dec 30, 2002 3:11 pm Post subject: |
|
|
Yeah you should only forward the ports for which those services are needed on those hosts. Like only forward port 80 to your webserver, etc. |
|
Back to top |
|
|
OdinsDream Veteran
Joined: 01 Jun 2002 Posts: 1057
|
Posted: Tue Dec 31, 2002 6:11 am Post subject: |
|
|
Unfortunately, the wireless base station doesn't give options to specify custom port forwarding. Only the standard services are available as options, with one of the options being "All ports"
Since I don't rely on my cheap base station router for security, and I run some services on uncommon ports, the only proper solution to make these services visible is to forward all ports.
My question, though, is not one of security, but more of functionality. Why is emerge having trouble in this situation? It doesn't seem like NAT is bothering portage, since my other machines can rsync fine (and indeed this machine, if all ports are not forwarded), but it does seem that this issue is related to forwarding all ports. |
|
Back to top |
|
|
ehudokai n00b
Joined: 27 Dec 2002 Posts: 53 Location: Southern Cal, USA
|
Posted: Tue Dec 31, 2002 7:27 am Post subject: Why not just turn it off when doing upgrades? |
|
|
Unless this is a production server, can't you just turn off port forwarding while doing upgrades?
just a thought.
btw... what kind of error codes are you getting? |
|
Back to top |
|
|
OdinsDream Veteran
Joined: 01 Jun 2002 Posts: 1057
|
Posted: Tue Dec 31, 2002 4:11 pm Post subject: Re: Why not just turn it off when doing upgrades? |
|
|
ehudokai wrote: | Unless this is a production server, can't you just turn off port forwarding while doing upgrades?
just a thought.
btw... what kind of error codes are you getting? |
I don't get any errors other that timeouts. If I emerge someEbuild portage will resolve ibiblio, and then wait forever on the next line, connecting to http: //ibiblio[80]:
If I leave it going all night, I come back to a screen of mirror hops, after timeouts on each.
As of now, I've just been changing the IP address and restarting eth0 before I emerge things, but I'd like to think I have some kind of control over this situation, even if this isn't a server running NASA missions. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|