Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-31-2002, 10:50 AM   #1
LQ Newbie
Registered: Jul 2002
Posts: 19

Rep: Reputation: 0
iptable-rules for eDonkey?

Hi, I use Linux as router. How do I have to configure FORWARD and DNAT-Rules for edonkey? At least one Pc behind the firewall should be able to download via eDonkey.

Bye, Hannes
Old 07-31-2002, 11:19 AM   #2
Registered: Jul 2002
Posts: 143

Rep: Reputation: 15
iptables -t nat -A PREROUTING -p tcp -i $interface --dport xxxx -j DNAT --to ip_of_machine

iptables -t nat -A PREROUTING -p udp -i $interface --dport xxxx -j DNAT --to ip_of_machine

replace xxx with the port or ports edonkey works on and $interface with the interface the traffic is coming in on. and you're away. You don't need any forward rules for this.
Old 08-01-2002, 07:38 AM   #3
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
The portnumber you will need is probably listed in your /var/log/messages file


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
IPTable rules RecoilUK Linux - Security 1 05-27-2005 08:25 PM
Remove iptable rules greenthing Linux - Networking 11 03-03-2005 09:15 AM
Verifying IPTable rules... Ateo Linux - Networking 1 02-02-2005 04:33 PM
Help with IPtable Rules aqoliveira Linux - Security 3 12-10-2003 11:00 AM
Iptable rules for Gnutella al_erola Linux - Security 5 03-06-2002 04:21 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:24 PM.

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