LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 11-03-2005, 11:22 AM   #16
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Original Poster
Rep: Reputation: 35

Quote:
Originally posted by Capt_Caveman
iptables -I INPUT -p tcp --dport 6881 -j ACCEPT
iptables -I INPUT -p udp --dport 6881 -j ACCEPT
just to double check by "adding those rules" you mean entering them in then doing? "service iptables save"?
 
Old 11-03-2005, 12:56 PM   #17
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Start by just running them (you can copy and paste them if you like). Then try starting azureus to see if it works properly. If it does, then run the 'service iptables save' command to make the firewall changes permanent.
 
Old 11-03-2005, 08:11 PM   #18
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Original Poster
Rep: Reputation: 35
i still get a nat error after adding those rules
 
Old 11-03-2005, 09:11 PM   #19
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
execute this simple iptables script and see if it does the trick (it should AFAIK)...

you might need to edit the IPT variable (the location of your iptables program)... do a "whereis iptables" if you aren't sure where it is...

Code:
#!/bin/sh

IPT="/usr/sbin/iptables"

$IPT -F
$IPT -F -t nat
$IPT -F -t mangle

$IPT -X
$IPT -X -t nat
$IPT -X -t mangle

$IPT -P INPUT DROP
$IPT -P OUTPUT ACCEPT
$IPT -P FORWARD DROP

$IPT -A INPUT -i lo -j ACCEPT
$IPT -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

$IPT -A INPUT -p TCP --dport 6881 -m state --state NEW -j ACCEPT
$IPT -A INPUT -p UDP --dport 6881 -m state --state NEW -j ACCEPT

$IPT -A INPUT -m limit --limit 3/minute --limit-burst 3 \
-j LOG --log-prefix "INPUT DROP: "
 
Old 05-26-2006, 09:17 AM   #20
oknees
LQ Newbie
 
Registered: May 2006
Posts: 1

Rep: Reputation: 0
Open ports 6881:6999

Hi..I need to open ports 6881:6999 on a freeBSD firewall with a squid-proxy. pls.how do i do this? i also just need to open this for my specific machine. pls reply here or send email to vness@ssc.org.na
 
Old 05-26-2006, 01:52 PM   #21
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by oknees
Hi..I need to open ports 6881:6999 on a freeBSD firewall with a squid-proxy. pls.how do i do this? i also just need to open this for my specific machine. pls reply here or send email to vness@ssc.org.na
this is a linux forum... you should ask your question in the BSD forum, which is located over here:

http://www.linuxquestions.org/questi...splay.php?f=17

good luck...
 
  


Reply



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
Azureus and NAT error :( Peleus Linux - Software 1 11-08-2005 07:53 AM
Nat error - azureus ceborame Linux - Newbie 1 09-03-2005 10:24 AM
Azureus NAT error on port 6881 dealerman Fedora 3 08-21-2005 09:42 AM
Azureus problems, specifically port 6881 cegha Mandriva 5 07-20-2005 03:19 AM
nat error in azureus rosscopeeko Linux - Software 4 12-30-2004 11:04 PM

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

All times are GMT -5. The time now is 03:01 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