LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-21-2006, 01:08 AM   #1
L1nuxbug
Member
 
Registered: Feb 2004
Location: Quetta
Distribution: RedHat
Posts: 54

Rep: Reputation: 15
port forwarding, emule ??


Dear Friends...

I have windows xp clients on LAN with Linux AS3 working as Gateway and DHCP server, in one client i have installed e-mule, its unable to connect to server,
H E L P !
 
Old 09-21-2006, 01:14 AM   #2
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
You can use IPTABLES commands to open the firewall or you can use
system-config-security to adjust that.
As long as you have no NAT Router that opens the Internet Connection cause if so you have to adjust that there.
 
Old 09-21-2006, 01:22 AM   #3
L1nuxbug
Member
 
Registered: Feb 2004
Location: Quetta
Distribution: RedHat
Posts: 54

Original Poster
Rep: Reputation: 15
from IPTABLES how to configure it??
 
Old 09-21-2006, 02:12 AM   #4
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
For e.g. the pc that runs emule has the ip:192.168.0.1
so it would be:
Code:
iptables -t nat -A PREROUTING -p tcp --dport 5881 -i ppp0 -j DNAT --to 192.168.0.1
iptables -t nat -A PREROUTING -p udp --dport 5906 -i ppp0 -j DNAT --to 192.168.0.1
iptables -t nat -A PREROUTING -p tcp --dport 24500:24505 -i ppp0 -j DNAT --to 192.168.0.1
iptables -A FORWARD -p tcp -d 192.168.0.1 --dport 5881 -o eth1 -j ACCEPT
iptables -A FORWARD -p udp -d 192.168.0.1 --dport 5906 -o eth1 -j ACCEPT
This is what you have to adjust if you using a dial up with your RHEL3 AS.
Then I would be a good idea to attach this at the end of course of your
/etc/ppp/ip-up config.
 
  


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
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 07:35 PM
Simple Port Forwarding Firewall - not forwarding MadTurki Linux - Security 14 04-09-2006 12:08 PM
emule/ed2k client open port demmylls Linux - Software 1 11-06-2005 06:12 PM
Port 80 forwarding to port 22 with iptables zahoo Linux - Networking 3 02-22-2005 07:22 AM
port forwarding and packet forwarding syrtsardo Linux - Newbie 2 07-03-2003 10:37 AM

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

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