You are not logged in.

#1 2005-06-02 16:43:17

cuallito
Member
Registered: 2005-03-26
Posts: 21

I think my router is retarded

I'm having a heck of a time trying to open ports on my router. I was downloading some things in Azureus and I was getting green smiley faces and everything was working great. So I absent mindedly turned of my linux box before I went to work. Anyways, after I got back, turned it back on, and started it back up, I got yellow smileys sad I checked my router and sure enough, my computer had switched from 192.168.0.4 to 192.168.0.2. So I reconfigured my router to foreward 6881-6999 to .2 instead of .4. I still got yellow smileys and and the 'trouble establishing connection on 6881' error message. So I checked port 6881 with several port scanner sites and they all said that 6881 was CLOSED. To make sure that it wasn't just my linux box I tried forewarding 1000 to a windows machine, then I checked it with several sites and they all said that one was CLOSED too. Why the heck can't I foreward ports?

Offline

#2 2005-06-02 16:50:39

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: I think my router is retarded

ummm two things: if you want forwarded ports, don't use dhcp, use a static IP, it's easier that way

secondly, try rebooting the router... I know mine has issues when I reassign just the IP of a port (like you did)

Nice topic, by the way... I laughed kinda hard at that

Offline

#3 2005-06-02 18:18:32

cuallito
Member
Registered: 2005-03-26
Posts: 21

Re: I think my router is retarded

Thanks for replying phrakure. How do I set up my linux box to use a static IP? My internet provider uses dynamic addressing so is it even possible?

Offline

#4 2005-06-02 19:29:04

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: I think my router is retarded

cuallito wrote:

Thanks for replying phrakure. How do I set up my linux box to use a static IP? My internet provider uses dynamic addressing so is it even possible?

yes... ummm let me try and draw this:

   outside world
          |
          |
  |-----router-----|
  |     |     |    |
 /      |     |     
C1     C2     C3    C4

now, the line from the "outside world" to the router has it's own IP address, and the lines from the router to each computer have their own IP addresses.... each IP address is assigned by the thing above it in the diagram.... so the router gets its IP from the "outside world" (ISP) and the computers get their IPs from the router

short answer: it's absolutely possible.

to setup a static IP, you need to know your router's dhcp range... mine assigns dhcp addresses from 192.168.1.2 to 192.168.1.100
you want a static IP outside that range (192.168.1.150?)

there is a simple example in /etc/rc.conf for static ip setups

Offline

#5 2005-06-02 19:34:17

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: I think my router is retarded

I've got static IPs set up for myself here, mainly for the same reason you need 'em. 
What you do is peek inside your /etc/rc.conf file.  There should be a section like:

lo="lo 127.0.0.1"
eth0="dhcp"
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"

give or take.
Comment out the "dhcp" line, and un-comment the non-dhcp line, and set yourself to whatever IP you want.  I usually set my static IPs out of the range that my router assigns IPs via DHCP so I don't ever get duplicated IPs.

So, that section in rc.conf looks like this (sorta) now:

lo="lo 127.0.0.1"
#eth0="dhcp"
eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"

A little farther down, there's a section like:

gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

Remove the ! in front of gateway in the routes array, and make sure the IP on the first of those two lines points at your router, like so:

gateway="default gw 192.168.0.1"
ROUTES=(gateway)

(my router is at 192.168.0.1)

Save and quit your editor; you're done in there.

Then... I think you can do an /etc/rc.d/network restart as root, maybe, to enable the new settings?  I'm not really sure about that.  I know a good solid reboot will load 'em tho. tongue

Offline

#6 2005-06-03 00:04:12

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: I think my router is retarded

your router may also have an interface to configure it's dhcp to give a particular computer the same IP, on my router i put in the mac address of the network card, tell it the IP i want, and I always get the same one.

Offline

Board footer

Powered by FluxBB