LinuxQuestions.org
Review your favorite Linux distribution.
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
 
LinkBack Search this Thread
Old 07-31-2002, 09:50 AM   #1
grubjo
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, 10:19 AM   #2
turnip
Member
 
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, 06:38 AM   #3
pk21
Member
 
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
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IPTable rules RecoilUK Linux - Security 1 05-27-2005 07:25 PM
Remove iptable rules greenthing Linux - Networking 11 03-03-2005 08:15 AM
Verifying IPTable rules... Ateo Linux - Networking 1 02-02-2005 03:33 PM
Help with IPtable Rules aqoliveira Linux - Security 3 12-10-2003 10:00 AM
Iptable rules for Gnutella al_erola Linux - Security 5 03-06-2002 03:21 AM


All times are GMT -5. The time now is 08:46 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration