LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-22-2003, 05:21 PM   #1
C2H5OH
LQ Newbie
 
Registered: Mar 2003
Location: Ireland
Distribution: RH8
Posts: 2

Rep: Reputation: 0
Pleae Help to newbie to open port


Action on RH8
My Firewall configuration looks like this:

/*-----------------------*/
echo " Clearing any existing rules and setting default policy.."
$IPTABLES -P INPUT ACCEPT
$IPTABLES -F INPUT
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -F OUTPUT
$IPTABLES -P FORWARD DROP
$IPTABLES -F FORWARD
$IPTABLES -t nat -F

echo " FWD: Allow all connections OUT and only existing and related ones IN"
$IPTABLES -A FORWARD -i $EXTIF -o $INTIF -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A FORWARD -i $INTIF -o $EXTIF -j ACCEPT
$IPTABLES -A FORWARD -j LOG

echo " Open ports"
$IPTABLES -A INPUT -i $EXTIF -p tcp --dport 4662 -j ACCEPT
$IPTABLES -A OUTPUT -o $EXTIF -p tcp --dport 4662 -j ACCEPT

echo " Enabling SNAT (MASQUERADE) functionality on $EXTIF"
$IPTABLES -t nat -A POSTROUTING -o $EXTIF -s 192.168.0.0/24 -j MASQUERADE
/*-------------------------------------*/

$EXTIF it's my network card, connected to the internet.
But i check eDonkey 4662 port test, it gives me message (if lMule running):
timeout : connection was accepted on ip xxxxxxxxxx
sent hello but no answer was given !??

and Gives me message:
error/resest on ip xxxxxxxxx!
if lMule is not running.

What i'm doing wrong?

Thank you for any ideas...
 
Old 03-23-2003, 04:23 AM   #2
mandeltuete
Member
 
Registered: Mar 2003
Location: Switzerland
Distribution: Fedora 3
Posts: 75

Rep: Reputation: 15
if you have eDokey, you will probably want to masquerade your port 4662. Because eDonkey can't connect to your computer behind the firewall because you don't have a public ip for it.

I currently know too less about iptables to give you a command. But search on the internet, how to masquerade a specific port.


HTH
mandeltuete
 
Old 03-23-2003, 04:30 AM   #3
mandeltuete
Member
 
Registered: Mar 2003
Location: Switzerland
Distribution: Fedora 3
Posts: 75

Rep: Reputation: 15
Try something like this:
Code:
iptables -A PREROUTING -t nat -p tcp --dport 4662 -j DNAT --to 192.168.0.2 
iptables -A POSTROUTING -t nat -o eth1 -j MASQUERADE
where 192.168.0.2 is your computer with eDonkey behind your firewall and eth1 is your connection to the internet

HTH
mandeltuete
 
Old 03-23-2003, 04:55 AM   #4
C2H5OH
LQ Newbie
 
Registered: Mar 2003
Location: Ireland
Distribution: RH8
Posts: 2

Original Poster
Rep: Reputation: 0
I'm running eDonkey (actualy it's LMule, eMule for Linux) on my Linux server, not on my remote PC, so it has direct connection to internet.
 
Old 03-24-2003, 03:36 PM   #5
mandeltuete
Member
 
Registered: Mar 2003
Location: Switzerland
Distribution: Fedora 3
Posts: 75

Rep: Reputation: 15
I guess eDonkey or eMule or whatever also needs an udp port open.

Try this:
Code:
 $IPTABLES -A INPUT -i $EXTIF -p udp --dport 4662 -j ACCEPT
I hope this works...


mandeltuete
 
Old 04-11-2003, 01:25 PM   #6
Crickit
Member
 
Registered: Apr 2003
Location: A whole lot of nowhere.
Distribution: Mandrake 9.1
Posts: 58

Rep: Reputation: 15
I just finished fixing this same problem on my machine. The problem with me, however, was that I am connecting to the internet through a router (Linksys BFSR41).

To fix it, all I needed to do is set up port triggering for ports 4662 and 4672. You can find out how to do it with other routers at:

www.emule.org > FAQ > English > Ports, Firewalls and Routers > Routers
 
  


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
Help Pleae: Error installing XFree86-100dpi-fonts-4.3.0-35.EL SEATU Linux - General 1 09-29-2005 08:12 AM
cannot SFTP to SUSE 9.2 box, port 22 open, can putty in though using same port. jgrady Linux - Networking 6 03-29-2005 08:44 AM
web browsers slow, little memory free, pleae review output from top jeffreybluml Linux - Newbie 31 07-03-2004 08:15 PM
Total Newbie, pleae help me out: post install problems. Venomous Squirr Linux - General 18 10-17-2002 08:34 PM
firewall.rc.config says :"open port 8080" but nmap says port is closed saavik Linux - Security 2 02-14-2002 12:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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