LinuxQuestions.org
Help answer threads with 0 replies.
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 08-08-2005, 12:22 PM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Rep: Reputation: 83
iptables rules for emule in nat box


What are the rules I have to set in a NAT router that will be use to connect many clients to emule?

My default FORWARD policy is DROP... and don't intend to change it.

There are three boxes that will connect to the emule network.

And what will the configuration of the clients be?
 
Old 08-08-2005, 02:23 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
You will not be able to have them all exposed to the internet unless you set them up to use different port ranges on the client. Then you'll need to port forward the ports on your NAT box to the appropriate clients.
 
Old 08-08-2005, 10:24 PM   #3
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
you mean to NOT get a low ID.... I don't care if it's low ided. What are the rules I have to set?
 
Old 08-08-2005, 10:37 PM   #4
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
Ah, you mean for outbound? In that case, you need to allow outbound tcp ports 4661 and 4662, and udp port 4665. For example, if eth0 is your internal interface:
Code:
export INTIF="eth0"
iptables -A FORWARD -i $INTIF -p tcp --dport 4661 -j ACCEPT
iptables -A FORWARD -i $INTIF -p tcp --dport 4662 -j ACCEPT
iptables -A FORWARD -i $INTIF -p udp --dport 4665 -j ACCEPT
That SHOULD work.
 
  


Reply

Tags
iptables, linux, networking


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
Blocking Emule with Iptables Palula Linux - Networking 12 08-26-2005 01:21 PM
iptables - how to allow client in my local net use emule -- please help me b:z Linux - Networking 3 04-12-2005 10:53 AM
How to show rules in nat table? mrpc_cambodia Red Hat 2 09-26-2004 11:04 PM
emule don't work with iptables/nat coyote gomen Linux - Networking 1 08-16-2003 05:19 PM
iptables -t nat -L not showing all rules alpha-wolf Linux - Networking 0 08-14-2001 07:36 AM


All times are GMT -5. The time now is 09:44 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration