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-19-2005, 04:58 PM   #1
mfeoli
Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 92

Rep: Reputation: 15
Question I need to change a command from IpTables to IpChains, please Help


Hi,
From a previous thread I got an answer on IPTables but only have ipchains

I need to do the following statement in ipchains instead of iptables,
(too newbie to upgrade to 2.4 and IPTables,... but learning )

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 help will be greatly appreciated

Last edited by mfeoli; 01-20-2005 at 02:28 PM.
 
Old 01-20-2005, 02:28 PM   #2
mfeoli
Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 92

Original Poster
Rep: Reputation: 15
by the way I don't know if this can actually be done, anyone knows?
 
  


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
how to change to iptables command Roll Linux - Security 2 05-09-2005 05:26 PM
translating an iptables command back to ipchains reetep Linux - Networking 0 05-15-2004 06:17 PM
Ipchains and iptables RH 7.3 nepcw Linux - Security 5 04-15-2004 07:07 PM
ipchains vs iptables bulliver Linux - Security 4 12-10-2002 03:43 PM
iptables vs ipchains jabble Linux - General 2 12-09-2001 02:34 AM

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

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