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 01-25-2005, 11:05 AM   #1
mfeoli
Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 92

Rep: Reputation: 15
Question I need a IPChains Guru still alive to convert an IPtables statement


What I need is to convert the following to ipchains

IPT=/sbin/iptables

EMULE_TCP=4662
EMULE_UDP=4672

TARGET_PC=192.168.0.2


## Creating eMule rules for (PREROUTING in nat)
$IPT -t nat -A PREROUTING -i eth1 -p udp -m udp --dport $EMULE_UDP -j DNAT --to-destination $TARGET_PC:$EMULE_UDP
$IPT -t nat -A PREROUTING -i eth1 -p tcp -m tcp --dport $EMULE_TCP -j DNAT --to-destination $TARGET_PC:$EMULE_TCP


any input will be greatly appreciated
 
Old 01-25-2005, 08:07 PM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Been awhile, but I believe you need to use ipmasqadm, as ipchains couldn't do port forwarding like iptables. You need to get ipmasqadm and then do something like:

/usr/sbin/ipmasqadm portfw -a -P tcp -L $EXT_IP $EMULE_TCP -R $TARGET_PC $EMULE_TCP
/usr/sbin/ipmasqadm portfw -a -P udp -L $EXT_IP $EMULE_UDP -R $TARGET_PC $EMULE_UDP

See here for more info on port forwarding under ipchains:
http://www.ibiblio.org/pub/Linux/doc...tml#FORWARDERS
 
  


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 vs iptables ALInux Linux - Networking 1 11-14-2005 04:05 AM
ipchains and iptables both? puzz_1 Linux - General 7 05-29-2003 03:07 PM
ipchains to iptables hotrodowner Linux - Security 1 01-12-2003 08:25 AM
iptables - Im having problems with an OUTPUT statement ForumKid Linux - Security 6 01-24-2002 07:34 AM
iptables /ipchains DavidPhillips Linux - Networking 2 08-15-2001 12:09 PM

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

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