Skip to contentSkip to conversation

Very basic question

DISCUSSION Eric Leblond 1 participant 1 message Sep 24, 2004

lore
Share & tools
lore
#0 lore raw
Quoted 7 lines · On Fri, 2004-09-24 at 12:28, [email protected] wrote:

Hi,

I am very new to trying to use iptables and was wondering if
someone could help me out with what I should do to solve my current problem.

Ie forward all incoming traffic on eth2 going to address 213.249.230.206 to 192.168.10.2 on eth1.

only one is enough

Quoted 2 lines

iptables -t nat -A PREROUTING -i eth2 -s 213.249.230.206 -j DNAT --to 192.168.10.2

traffic to 213.249.230.206 thus -d not -s :
iptables -t nat -A PREROUTING -i eth2 -d 213.249.230.206 -j DNAT --to 192.168.10.2

Signature · 2 lines
Eric Leblond <[email protected]>
INL