Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
changed ip, alot of services not working anymore [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Wamp
n00b
n00b


Joined: 05 Sep 2004
Posts: 24
Location: Oslo, Norway

PostPosted: Mon Sep 13, 2004 3:38 pm    Post subject: changed ip, alot of services not working anymore [SOLVED] Reply with quote

I've searched the forums and the net for a while, but can't find a similar topic..
I recently changed my ip adress internally (from 10.0.0.2 to 10.0.0.3), since I wanted another machine to have my old ip.

the only thing I changed in my configuration was from
Code:

iface_eth0="10.0.0.2 broadcast 10.0.0.255 netmask 255.255.255.0"

to
Code:

iface_eth0="10.0.0.3 broadcast 10.0.0.255 netmask 255.255.255.0"

in /etc/conf.d/net
and updated my /etc/hosts file to match my new network.

and the internet is working......mostly okay.
for some reason, I all of a sudden can no longer send files through asmn... but I can still recieve.
and the giFT daemon can't connect to any servers.
(there are probably something else not working, but this is all i know about for now)

I thought maybe it had to do with my router and NAT settings, but it is open for anything, - and i can still send files with msn through a windows-machine..
i also tried to reset the router, and rebooted the computer, but nothing helps..
even tried to clean up amsn TOTALLY and reinstall it, but still can't send files.
(I can however, as soon as i change back to ip 10.0.0.2)

is there a config-file I've forgotten to update, or... what can it be? :-/
_________________
Help theese poor people :)


Last edited by Wamp on Wed Sep 15, 2004 3:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
Petyr
Guru
Guru


Joined: 08 Jan 2003
Posts: 471
Location: San Diego, CA, USA

PostPosted: Tue Sep 14, 2004 10:34 pm    Post subject: Reply with quote

On your router take a look at the Applications and Gaming section (Linksys) or Port Forwarding (Netgear) and see what IP the ports are getting forwarded to. I'm willing to be that it's the .2 address, and whn you switch to .3, suddnely when people try to connect back to you, they can't.
Anyhow change all those .2's to .3's and I'm fairly sure it will work.

hth,
Petyr Rahl
Back to top
View user's profile Send private message
Wamp
n00b
n00b


Joined: 05 Sep 2004
Posts: 24
Location: Oslo, Norway

PostPosted: Wed Sep 15, 2004 12:51 am    Post subject: Reply with quote

It may seem as an idea, and I will try it tomorrow...

however, it seems strange that ip 10.0.0.3 is the only one that is "blocked" like that, since I can send files and log on to networks from my landlord's machine (10.0.0.4) and from my win98-partition in vmware (10.0.0.5) and so on..

just to make a quick test, I turned off my landlord's machine, and switched the ip from this one to 10.0.0.4 (his ip) and tried again, -with no luck..
I didn't restart the router or switch, so maybe that was the case.. but I have static ip's on all machines, so it really shouldn't make a difference.. :-/

anyway I will update this message as soon as I've looked at the router tomorrow, though I doubt that's the case :(

update
----------
nope, has nothing to do with the router at all. it forwards -everything-, no filtering or NAT whatsoever enabled, -and the problem does not lie in my firewall (hardware) either, since I've tried both to enable and disable services on it (even removed it physically from the network) so the problem lies within gentoo somewhere.. :?
_________________
Help theese poor people :)
Back to top
View user's profile Send private message
Wamp
n00b
n00b


Joined: 05 Sep 2004
Posts: 24
Location: Oslo, Norway

PostPosted: Wed Sep 15, 2004 2:13 am    Post subject: Reply with quote

wOHAA!!

I tried to run ettercap, sniff my own ip and run 'giftd', it seemed to open aLOT of ports so the connection seemed okay.
however giFTcurs gives me the message "Can't connect to the daemon wamp.ath.cx:1213: Connection refused (111)

so i tried
Code:
giFTcurs -s 10.0.0.3
and it is connected

seems like a hostname-issue?

this is my /etc/hosts file:
Code:

10.0.0.1        router.wamp.ath.cx      router
10.0.0.2        wamp.ath.cx              server
10.0.0.3        kenneth.wamp.ath.cx     wamp
10.0.0.4        vidar.wamp.ath.cx       vidar
10.0.0.5        corner.wamp.ath.cx      corner


my MXrecord is wamp.ath.cx, but that shouldn't have anything to do with my ip in the hostsfile beeing "kenneth.wamp.ath.cx instead of just "wamp.ath.cx", should it? *confused* 8O
_________________
Help theese poor people :)
Back to top
View user's profile Send private message
nielchiano
Veteran
Veteran


Joined: 11 Nov 2003
Posts: 1287
Location: 50N 3E

PostPosted: Wed Sep 15, 2004 1:34 pm    Post subject: Reply with quote

looks like you have found the problem:
Wamp wrote:
giFTcurs gives me the message "Can't connect to the daemon wamp.ath.cx:1213: Connection refused (111)

and
Code:
10.0.0.1        router.wamp.ath.cx      router
10.0.0.2        wamp.ath.cx              server
10.0.0.3        kenneth.wamp.ath.cx     wamp
10.0.0.4        vidar.wamp.ath.cx       vidar
10.0.0.5        corner.wamp.ath.cx      corner
gives:
he tries to connect to 10.0.0.2.
However, if you ask him to connect to 10.0.0.3:
Wamp wrote:
so i tried
Code:
giFTcurs -s 10.0.0.3
and it is connected
So you should change that to kenneth.wamp.ath.cx; or change your host file to resolve correctly
Back to top
View user's profile Send private message
Wamp
n00b
n00b


Joined: 05 Sep 2004
Posts: 24
Location: Oslo, Norway

PostPosted: Wed Sep 15, 2004 3:18 pm    Post subject: Reply with quote

this worked:) thank you alot :)
_________________
Help theese poor people :)
Back to top
View user's profile Send private message
Wamp
n00b
n00b


Joined: 05 Sep 2004
Posts: 24
Location: Oslo, Norway

PostPosted: Wed Sep 15, 2004 3:18 pm    Post subject: Reply with quote

this worked:) thank you alot :)

note:
as for giftd, it had to be reconfigured as well, to match my new hostname

as for amsn, I had to add some nat entrys in my router (although my ISP specified that it's without a firewall.. stupid ISP)

(for people with Cisco 6xx series, to enable filesending in amsn, do the following)

Code:

telnet 10.0.0.1
<type password>
enable
set nat entry add LAN-IP 6891 WAN-IP 6891 tcp
write
reboot

whereof LAN-IP = your IP on the lan, and WAN-IP = your ip on the net
_________________
Help theese poor people :)
Back to top
View user's profile Send private message
nielchiano
Veteran
Veteran


Joined: 11 Nov 2003
Posts: 1287
Location: 50N 3E

PostPosted: Wed Sep 15, 2004 5:48 pm    Post subject: Reply with quote

Wamp wrote:
add some nat entrys in my router (although my ISP specified that it's without a firewall.. stupid ISP)

as soon as you are doing NAT, you have a kind of firewall... there is no way around
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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