Author Topic: Blocking incoming ports?  (Read 2698 times)

CoreyC

  • Sr. Member
  • ****
  • Posts: 288
    • View Profile
    • http://
Blocking incoming ports?
« 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?

ronba

  • Newbie
  • *
  • Posts: 35
    • View Profile
    • http://
Blocking incoming ports?
« Reply #1 on: May 13, 2004, 07:45:20 am »
Are you search in the file /etc/services ?
It\'s the file config for the ports.
SL-C1000 beta-1.1.0
 Sony U101 Linux

CoreyC

  • Sr. Member
  • ****
  • Posts: 288
    • View Profile
    • http://
Blocking incoming ports?
« Reply #2 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?

DrWowe

  • Hero Member
  • *****
  • Posts: 696
    • View Profile
    • http://
Blocking incoming ports?
« Reply #3 on: May 13, 2004, 07:58:58 pm »
Is netfilter enabled?  Does pdaxrom setup firewall rules?

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Blocking incoming ports?
« Reply #4 on: May 13, 2004, 08:25:33 pm »
run nmap against the Z from the desktop and see what it says is open

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

CoreyC

  • Sr. Member
  • ****
  • Posts: 288
    • View Profile
    • http://
Blocking incoming ports?
« Reply #5 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?

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Blocking incoming ports?
« Reply #6 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
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

CoreyC

  • Sr. Member
  • ****
  • Posts: 288
    • View Profile
    • http://
Blocking incoming ports?
« Reply #7 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