IPTABLES + OUTPUT + SNAT

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

 



Hello friends:

We are using iptables under Linux kernerl 2.6.14.

We need to do this:
Our server has 2 ip's. One is used only for SMTP outgoing and the other for
all the rest.
All is running fine except that our smtp outgoing IP has problems conecting
ONLY to one smtp server.
What we want to do is: all from our server to that smtp server change the
source IP and use the other one that we have in our server.
Do i explain ok? My english is not very good :(
We are trying this with this:

iptables -t nat -A OUTPUT -p tcp -j SNAT -d ip_wanadoo --to nuestra_otra_ip

But:
iptables: Invalid argument

We are using OUTPUT becouse we think that it is the correct.

Can this be done? What are we doing badly?

A lot of thank's
 
-- 
Rubén Navarro Huedo
http://www.palotes.com
http://www.cabodesantapola.org






[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