LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Firewall Blocking Music Sharing (https://www.linuxquestions.org/questions/linux-newbie-8/firewall-blocking-music-sharing-450200/)

Josh100 05-31-2006 07:28 AM

Firewall Blocking Music Sharing
 
Hey, I've just installed Banshee to share music to my mac, it works fine when the firewall is off, but when I turn it on it the mac still detects the libary, but it will not allow me to view it and just says i need to allow port 3689 on the other machine, which according to nmap, it is already open

suse:~ # nmap localhost

Starting Nmap 4.00 ( http://www.insecure.org/nmap/ ) at 2006-05-31 13:26 BST
Interesting ports on localhost (127.0.0.1):
(The 1661 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
111/tcp open rpcbind
139/tcp open netbios-ssn
445/tcp open microsoft-ds
631/tcp open ipp
3689/tcp open rendezvous
5800/tcp open vnc-http
5801/tcp open vnc-http-1
5900/tcp open vnc
5901/tcp open vnc-1

Nmap finished: 1 IP address (1 host up) scanned in 0.240 seconds

ethics 05-31-2006 08:12 AM

what about UDP?

what does
Code:

iptables -L
show?

Josh100 05-31-2006 08:37 AM

\suse:~ # \iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
suse:~ #

Josh100 06-04-2006 09:53 AM

Bump, please help :)

slzckboy 06-04-2006 02:02 PM

how are the two machines connected,via a router ?

Josh100 06-04-2006 04:05 PM

Yea a router, but I dont think it has anything to do with that as it works when the linux machines firewall is turned off.

slzckboy 06-04-2006 04:22 PM

which firewall are you turning on and off.
Iptables?

I would say that you to look at the firewall rules when it is on and see if there is anything there that would block the port in question if you havn't already done so.

Josh100 06-04-2006 04:43 PM

I'm just going through yast and turning it off, i've got all internet traffic allowed

slzckboy 06-04-2006 04:53 PM

can you do iptables -L when the firewall is turned on and post ?

Tinkster 06-04-2006 05:14 PM

Quote:

Originally Posted by Josh100
which according to nmap, it is already open

suse:~ # nmap localhost

That proves nothing - to determine whether the firewall is doing its
job or not you'[ll have to run nmap from a REMOTE machine. The
local traffic will go unaffected by iptables.


Cheers,
Tink

Josh100 06-04-2006 07:00 PM

Starting Nmap 4.03 ( http://www.insecure.org/nmap/ ) at 2006-06-05 00:58 BST
Interesting ports on 192.168.1.65:
(The 1667 ports scanned but not shown below are in state: filtered)
PORT STATE SERVICE
22/tcp open ssh
80/tcp closed http
113/tcp closed auth
139/tcp open netbios-ssn
445/tcp open microsoft-ds
5801/tcp open vnc-http-1
5901/tcp open vnc-1
MAC Address: 00:0D:87:18:47:97 (Elitegroup Computer System Co. (ECS))

Nmap finished: 1 IP address (1 host up) scanned in 33.006 seconds
iMac:/usr root#

Heres an external one, it doesn't seem to be allowing it, anyone know how I can allow the port?

Tinkster 06-04-2006 07:13 PM

Now what did iptables -L say at the time that was taken? :}

The thing with ports is that it iptables ISN'T blocking one there
STILL needs to be a process listening on it to get any response.

There's no such thing as an OPEN port as such.


Cheers,
Tink

Josh100 06-05-2006 06:13 AM

I see, so how do I fix this?

slzckboy 06-06-2006 06:53 AM

Quote:

Originally Posted by Tinkster
Now what did iptables -L say at the time that was taken? :}


Cheers,
Tink

We still need to see the ruleset when iptables is turned on with
Quote:

Originally Posted by josh100
\suse:~ # \iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
suse:~ #

was the firewall off or on when the above command was run?

Josh100 06-06-2006 03:03 PM

Code:


suse:~ # iptables -L
Chain INPUT (policy DROP)
target    prot opt source              destination
ACCEPT    all  --  anywhere            anywhere
LOG        all  --  anywhere            anywhere            state RELATED,ESTAB                                              LISHED LOG level warning tcp-options ip-options prefix `SFW2-IN-ACC-RELATED '
ACCEPT    all  --  anywhere            anywhere            state RELATED,ESTAB                                              LISHED
input_ext  all  --  anywhere            anywhere
input_ext  all  --  anywhere            anywhere
LOG        all  --  anywhere            anywhere            LOG level warning t                                              cp-options ip-options prefix `SFW2-IN-ILL-TARGET '
DROP      all  --  anywhere            anywhere

Chain FORWARD (policy DROP)
target    prot opt source              destination
LOG        all  --  anywhere            anywhere            LOG level warning t                                              cp-options ip-options prefix `SFW2-FWD-ILL-ROUTING '

Chain OUTPUT (policy ACCEPT)
target    prot opt source              destination
ACCEPT    all  --  anywhere            anywhere
ACCEPT    all  --  anywhere            anywhere            state NEW,RELATED,E                                              STABLISHED
LOG        all  --  anywhere            anywhere            LOG level warning t                                              cp-options ip-options prefix `SFW2-OUT-ERROR '

Chain forward_ext (0 references)
target    prot opt source              destination

Chain input_ext (2 references)
target    prot opt source              destination
LOG        udp  --  anywhere            anywhere            PKTTYPE = broadcast                                              udp dpt:netbios-ns LOG level warning tcp-options ip-options prefix `SFW2-ACC-BC                                              ASTe '
ACCEPT    udp  --  anywhere            anywhere            PKTTYPE = broadcast                                              udp dpt:netbios-ns
LOG        udp  --  anywhere            anywhere            PKTTYPE = broadcast                                              udp dpt:netbios-dgm LOG level warning tcp-options ip-options prefix `SFW2-ACC-B                                              CASTe '
ACCEPT    udp  --  anywhere            anywhere            PKTTYPE = broadcast                                              udp dpt:netbios-dgm
DROP      all  --  anywhere            anywhere            PKTTYPE = broadcast                                             
LOG        icmp --  anywhere            anywhere            icmp source-quench                                              LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-SOURCEQUENCH '
ACCEPT    icmp --  anywhere            anywhere            icmp source-quench
LOG        icmp --  anywhere            anywhere            icmp echo-request L                                              OG level warning tcp-options ip-options prefix `SFW2-INext-ACC-PING '
ACCEPT    icmp --  anywhere            anywhere            icmp echo-request
LOG        icmp --  anywhere            anywhere            state RELATED,ESTAB                                              LISHED icmp echo-reply LOG level warning tcp-options ip-options prefix `SFW2-INe                                              xt-ACC-ICMP '
ACCEPT    icmp --  anywhere            anywhere            state RELATED,ESTAB                                              LISHED icmp echo-reply
LOG        icmp --  anywhere            anywhere            state RELATED,ESTAB                                              LISHED icmp destination-unreachable LOG level warning tcp-options ip-options pre                                              fix `SFW2-INext-ACC-ICMP '
ACCEPT    icmp --  anywhere            anywhere            state RELATED,ESTAB                                              LISHED icmp destination-unreachable
LOG        icmp --  anywhere            anywhere            state RELATED,ESTAB                                              LISHED icmp time-exceeded LOG level warning tcp-options ip-options prefix `SFW2-                                              INext-ACC-ICMP '
ACCEPT    icmp --  anywhere            anywhere            state RELATED,ESTAB                                              LISHED icmp time-exceeded
LOG        icmp --  anywhere            anywhere            state RELATED,ESTAB                                              LISHED icmp parameter-problem LOG level warning tcp-options ip-options prefix `S                                              FW2-INext-ACC-ICMP '
ACCEPT    icmp --  anywhere            anywhere            state RELATED,ESTAB                                              LISHED icmp parameter-problem
LOG        icmp --  anywhere            anywhere            state RELATED,ESTAB                                              LISHED icmp timestamp-reply LOG level warning tcp-options ip-options prefix `SFW                                              2-INext-ACC-ICMP '
ACCEPT    icmp --  anywhere            anywhere            state RELATED,ESTAB                                              LISHED icmp timestamp-reply
LOG        icmp --  anywhere            anywhere            state RELATED,ESTAB                                              LISHED icmp address-mask-reply LOG level warning tcp-options ip-options prefix `                                              SFW2-INext-ACC-ICMP '
ACCEPT    icmp --  anywhere            anywhere            state RELATED,ESTAB                                              LISHED icmp address-mask-reply
LOG        icmp --  anywhere            anywhere            state RELATED,ESTAB                                              LISHED icmp protocol-unreachable LOG level warning tcp-options ip-options prefix                                              `SFW2-INext-ACC-ICMP '
ACCEPT    icmp --  anywhere            anywhere            state RELATED,ESTAB                                              LISHED icmp protocol-unreachable
LOG        icmp --  anywhere            anywhere            state RELATED,ESTAB                                              LISHED icmp redirect LOG level warning tcp-options ip-options prefix `SFW2-INext                                              -ACC-ICMP '
ACCEPT    icmp --  anywhere            anywhere            state RELATED,ESTAB                                              LISHED icmp redirect
LOG        tcp  --  anywhere            anywhere            tcp dpt:5801 LOG le                                              vel warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP '
ACCEPT    tcp  --  anywhere            anywhere            tcp dpt:5801
LOG        tcp  --  anywhere            anywhere            tcp dpt:5901 LOG le                                              vel warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP '
ACCEPT    tcp  --  anywhere            anywhere            tcp dpt:5901
LOG        tcp  --  anywhere            anywhere            tcp dpt:http LOG le                                              vel warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP '
ACCEPT    tcp  --  anywhere            anywhere            tcp dpt:http
LOG        tcp  --  anywhere            anywhere            tcp dpt:microsoft-d                                              s LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP '
ACCEPT    tcp  --  anywhere            anywhere            tcp dpt:microsoft-d                                              s
LOG        tcp  --  anywhere            anywhere            tcp dpt:netbios-ssn                                              LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP '
ACCEPT    tcp  --  anywhere            anywhere            tcp dpt:netbios-ssn                                             
LOG        tcp  --  anywhere            anywhere            tcp dpt:ssh LOG lev                                              el warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP '
ACCEPT    tcp  --  anywhere            anywhere            tcp dpt:ssh
LOG        udp  --  anywhere            anywhere            udp dpt:netbios-dgm                                              LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-UDP '
ACCEPT    udp  --  anywhere            anywhere            udp dpt:netbios-dgm                                             
LOG        udp  --  anywhere            anywhere            udp dpt:netbios-ns                                              LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-UDP '
ACCEPT    udp  --  anywhere            anywhere            udp dpt:netbios-ns
reject_func  tcp  --  anywhere            anywhere            tcp dpt:ident sta                                              te NEW
LOG        all  --  anywhere            anywhere            PKTTYPE = multicast                                              LOG level warning tcp-options ip-options prefix `SFW2-INext-DROP-DEFLT '
DROP      all  --  anywhere            anywhere            PKTTYPE = multicast                                             
LOG        tcp  --  anywhere            anywhere            tcp flags:FIN,SYN,R                                              ST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-DROP-DEFL                                              T '
LOG        icmp --  anywhere            anywhere            LOG level warning t                                              cp-options ip-options prefix `SFW2-INext-DROP-DEFLT '
LOG        udp  --  anywhere            anywhere            LOG level warning t                                              cp-options ip-options prefix `SFW2-INext-DROP-DEFLT '
LOG        all  --  anywhere            anywhere            state INVALID LOG l                                              evel warning tcp-options ip-options prefix `SFW2-INext-DROP-DEFLT-INV '
DROP      all  --  anywhere            anywhere

Chain reject_func (1 references)
target    prot opt source              destination
REJECT    tcp  --  anywhere            anywhere            reject-with tcp-res                                              et
REJECT    udp  --  anywhere            anywhere            reject-with icmp-po                                              rt-unreachable
REJECT    all  --  anywhere            anywhere            reject-with icmp-pr                                              oto-unreachable
suse:~ #

Sorry that was without the firewall:rolleyes:


All times are GMT -5. The time now is 08:56 PM.