LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-21-2006, 01:02 PM   #1
Berticus
Member
 
Registered: Jul 2005
Distribution: Arch
Posts: 159

Rep: Reputation: 31
iptables open port for Azureus


Azureus suggests opening a port within the range of 49152-65535. The first time I booted up Azureus it was using 6881, and it was fine. Then I reboot, and re-opened Azureus, and iptables wouldn't allow it to recieve packages. I wanted to download Xanrdos, but didn't want to cough up $10 for the http download. Anyway, So I tried out the tcp testing tool that comes with Azureus, and I get the NAT error. I check out the tables of NAT, and everything is allowed. I take a look at filter, and everything, except 22, is closed. So I added the following line:
Code:
  iptables -t filter -A INPUT -p tcp --dport 57310 -j ACCEPT
  iptables -t filter -A INPUT -p udp --dport 57310 -j ACCEPT
restarted netfilter, and still nothing. I then tried this out:
Code:
  iptables -t filter -A INPUT -p tcp --dport 57310 -j ACCEPT
  iptables -t filter -A INPUT -p udp --dport 57310 -j ACCEPT
  iptables -t filter -A INPUT -p tcp --sport 57310 -j ACCEPT
  iptables -t filter -A INPUT -p udp --sport 57310 -j ACCEPT
Once again restarted netfilter, and once again no results. So I tried one more thing:
Code:
  iptables -I INPUT -p TCP --dport 49152:65535 -m state --state NEW -j ACCEPT
I restarted netfilter, and again nothing yield. Now I've completely run out of ideas...
 
Old 02-21-2006, 02:08 PM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
What does
Quote:
iptables -L -nv
say after bootup of the machine?
 
Old 02-21-2006, 03:32 PM   #3
Berticus
Member
 
Registered: Jul 2005
Distribution: Arch
Posts: 159

Original Poster
Rep: Reputation: 31
Code:
Chain INPUT (policy DROP 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination 
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0         tcp dpts:49152:65535 state NEW
  353  336K ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0         state RELATED,ESTABLISHED
    5   348 ACCEPT     all  --  lo     *       0.0.0.0/0            0.0.0.0/0 
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0         tcp dpt:22

Chain FORWARD (policy DROP 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination 
    0     0 ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0         state RELATED,ESTABLISHED

Chain OUTPUT (policy DROP 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination 
  336 65895 ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0         state RELATED,ESTABLISHED
    5   348 ACCEPT     all  --  *      lo      0.0.0.0/0            0.0.0.0/0 
   16   969 ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0
When I change the policy to ACCEPT it works fine, so it's gotta be a firewall problem.

Last edited by Berticus; 02-21-2006 at 04:43 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables +azureus +forwarding not working wierdthing Linux - Networking 1 04-02-2006 09:06 AM
Open/Closing port without iptables? hottdogg Slackware 8 12-27-2005 03:55 PM
Iptables help, block port to outside but open to inside. Brian1 Linux - Networking 2 09-27-2005 08:41 PM
Azureus NAT error on port 6881 dealerman Fedora 3 08-21-2005 09:42 AM
open port 10000 by iptables vijaysh Linux - Security 2 12-24-2004 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration