Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]Disable all ports in the kernel?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1344
Location: Sweden

PostPosted: Thu Jan 15, 2009 10:21 pm    Post subject: [Solved]Disable all ports in the kernel? Reply with quote

Here I have a problem with starting mysql: https://forums.gentoo.org/viewtopic-t-726101.html
Azureus can't open local socket either.
I have a wierd problem with not being able to access my local apache server.

Could I have disabled the ports completely in the kernel somehow?


Last edited by Letharion on Fri Jan 16, 2009 8:50 am; edited 1 time in total
Back to top
View user's profile Send private message
paulbiz
Guru
Guru


Joined: 01 Feb 2004
Posts: 508
Location: St. Louis, Missouri, USA

PostPosted: Thu Jan 15, 2009 10:34 pm    Post subject: Reply with quote

Perhaps check your /etc/hosts.allow and /etc/hosts.deny to make sure nothing is wrong. For example in my hosts.allow I have this:

Code:
ALL: 127.0.0.1, 192.168.0.0/255.255.255.0


which should give access to everything from my local machine and local network.
Back to top
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1344
Location: Sweden

PostPosted: Thu Jan 15, 2009 10:48 pm    Post subject: Reply with quote

paulbiz wrote:
Perhaps check your /etc/hosts.allow and /etc/hosts.deny to make sure nothing is wrong. For example in my hosts.allow I have this:

Code:
ALL: 127.0.0.1, 192.168.0.0/255.255.255.0


which should give access to everything from my local machine and local network.


I don't have either of those files.
I added a hosts.allow with that setting, but it didn't make any difference.
Perhaps it should look different for me? I have a white ip, so it's not in the 192.168-range.
Also, now that I check ifconfig, I don't have a loopback... I can't ping 127.0.0.1. That's probably related, but I have no idea why.

Where does loopback normally spawn from?
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9882
Location: almost Mile High in the USA

PostPosted: Thu Jan 15, 2009 11:24 pm    Post subject: Reply with quote

did you compile your kernel with all TCP/IP support? Does any of your networking utilities work? Ping?
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
paulbiz
Guru
Guru


Joined: 01 Feb 2004
Posts: 508
Location: St. Louis, Missouri, USA

PostPosted: Fri Jan 16, 2009 7:04 am    Post subject: Reply with quote

Letharion wrote:
paulbiz wrote:
Perhaps check your /etc/hosts.allow and /etc/hosts.deny to make sure nothing is wrong. For example in my hosts.allow I have this:

Code:
ALL: 127.0.0.1, 192.168.0.0/255.255.255.0


which should give access to everything from my local machine and local network.


I don't have either of those files.
I added a hosts.allow with that setting, but it didn't make any difference.
Perhaps it should look different for me? I have a white ip, so it's not in the 192.168-range.
Also, now that I check ifconfig, I don't have a loopback... I can't ping 127.0.0.1. That's probably related, but I have no idea why.

Where does loopback normally spawn from?

I think the hosts.allow/hosts.deny is part of sys-apps/tcp-wrappers

but it seems you've got more serious problems than this. :(
Back to top
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1344
Location: Sweden

PostPosted: Fri Jan 16, 2009 8:48 am    Post subject: Reply with quote

Wasn't to bad after all.

Code:
ifconfig lo up


did the trick. Now the only question that remains is, why isn't this upped during normal init?
Since I use openRC, maybe I should file a bug somewhere?
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Fri Jan 16, 2009 5:19 pm    Post subject: Reply with quote

Letharion wrote:
Now the only question that remains is, why isn't this upped during normal init?

It should be. By default, net.lo is in the boot runlevel.

You can check like this.
Code:
# rc-update show
Back to top
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1344
Location: Sweden

PostPosted: Mon Jan 19, 2009 8:21 am    Post subject: Reply with quote

cyrillic wrote:
Letharion wrote:
Now the only question that remains is, why isn't this upped during normal init?

It should be. By default, net.lo is in the boot runlevel.

You can check like this.
Code:
# rc-update show

I most likely just messed that up then :) It's back now anyhow. Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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