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, 11:22 AM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
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, 01:23 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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, 09:24 PM   #3
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
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, 09:37 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

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

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

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