How is this accomplished? I want to open ports 6881-6889 for an azureus java bittorrent client i downloaded. I have looked through the manpage for iptables, but honestly, it makes very little sense to me. I'm running slackware 10.0, ide kernel 2.4.26. I haven't recompiled the kernel or messed with system files at all.
I googled (both google and google/linux) for:
opening ports with iptables
understanding iptables
opening closing ports linux
...and have searched the forums here for about 30 minutes, give or take, without success.
I'm just not looking in the right places, or overlooked my answer somewhere. :-)
Maybe nmap could shed light on my lack of knowledge:
Code:
root@slack811:/home/tykkea# nmap -O -v -sT 127.0.0.1
Starting nmap 3.50 ( http://www.insecure.org/nmap/ ) at 2004-12-11 02:25 EST
Host localhost (127.0.0.1) appears to be up ... good.
Initiating Connect() Scan against localhost (127.0.0.1) at 02:25
Adding open port 111/tcp
Adding open port 6000/tcp
Adding open port 37/tcp
Adding open port 113/tcp
Adding open port 6969/tcp
The Connect() Scan took 0 seconds to scan 1659 ports.
For OSScan assuming that port 37 is open and port 1 is closed and neither are firewalled
Interesting ports on localhost (127.0.0.1):
(The 1653 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
37/tcp open time
111/tcp open rpcbind
113/tcp open auth
6000/tcp open X11
6969/tcp open acmsoda
Device type: general purpose
Running: Linux 2.4.X|2.5.X
OS details: Linux Kernel 2.4.0 - 2.5.20
Uptime 0.316 days (since Fri Dec 10 18:50:24 2004)
TCP Sequence Prediction: Class=random positive increments
Difficulty=5128201 (Good luck!)
IPID Sequence Generation: All zeros
Nmap run completed -- 1 IP address (1 host up) scanned in 4.878 seconds
Do I need to add the ports to /etc/services, then edit /etc/inetd.conf? The ports are not listed in /etc/services.
Thanks in advance.