OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: CoreyC on May 13, 2004, 06:46:11 am

Title: Blocking incoming ports?
Post by: CoreyC on May 13, 2004, 06:46:11 am
pdaXrom seems to block incoming packets when using p2p filesharing programs like amule, mutella, etc...

How can I open these ports up for incoming packets?
Title: Blocking incoming ports?
Post by: ronba on May 13, 2004, 07:45:20 am
Are you search in the file /etc/services ?
It\'s the file config for the ports.
Title: Blocking incoming ports?
Post by: CoreyC on May 13, 2004, 07:50:23 pm
Thanks for your help, but that isn\'t where the problem is.  I\'ve tried editing /etc/services already and even copied the services from my suse box (where these apss run fine) to my zaurus and still did not have any luck.

There is something else blocking these ports... any other ideas?
Title: Blocking incoming ports?
Post by: DrWowe on May 13, 2004, 07:58:58 pm
Is netfilter enabled?  Does pdaxrom setup firewall rules?
Title: Blocking incoming ports?
Post by: Stubear on May 13, 2004, 08:25:33 pm
run nmap against the Z from the desktop and see what it says is open

Stu
Title: Blocking incoming ports?
Post by: CoreyC on May 14, 2004, 06:10:16 am
Stu:

I let nmap run last night while I slept:

linux:~ # nmap -v -sS -sU -P0 192.168.1.2
<...a bunch of verbose stuff...>
(no udp responses received -- assuming all ports filtered)
All 10000 scanned ports on 192.168.1.2 are: filtered

Nmap run completed -- 1 IP address (1 host up) scanned in 10031.465 seconds


ok.. so the ports are filtered.  How can I stop this?
Title: Blocking incoming ports?
Post by: Stubear on May 14, 2004, 07:04:34 am
Okay, decided to read some man pages before replying.

The file you want to edit to change open ports is /etc/inetd.conf. After you make changes you will need to restart inetd.
inetd is responsible for any incoming connections - basically it compares what is coming in against a list (inetd.conf) and decides what to do depending on the list, by default if the port is not on the list then it does nothing - ie blocks port. If it finds it on the list it runs the program associated with that port - on my machine it starts sshd when it recieves data on port 23, this means sshd doesn\'t need to be running all the time.

/etc/services is just a list of ports to services that run on that port so that programs can say ftp rather than 22 etc.

Hope this gets things going

Stu
Title: Blocking incoming ports?
Post by: CoreyC on May 14, 2004, 09:47:50 pm
Stu,

That may be heading in the right direction.  After playing with inetd.conf for a few hours I just can not figure it out.  I emailed sash and asked him to look at this thread, hopefully we can get an answer straight from the source.  I\'m sure whatever the \'problem\' is, it was done for security reasons (obviously).

My ultimate goal is to be able to use my Zaurus more than I use my Desktop.  This is a huge roadblock in meeting my goals