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.
|