Very basic question.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

I have a PC with 3 ethernet cards, one is connected to the internet (eth2).
I want to use network translation to forward all requests to a pair of
static IP addresses I have to particular locales on an internal network
(which is accessed through eth1).

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

 

I have tried the following, but it just seems to redirect all traffic to the
local firewall:

 

iptables -t nat -A POSTROUTING -o eth1 -s 192.168.10.2 -j SNAT --to
213.249.230.206

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

 

What am I doing wrong?

 

Tom 


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux