Forward all traffic to another Public address

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

 



Hello All,
 
I am freaking going crazy and pulling my hair out.  Here is I want to do.
Forward all traffic (smtp, pop3, web,etc) for one IP address in Server box located in CA to a Server in TX
These boxes are on separate networks.
Here is what I did
 
iptables -t nat -A PREROUTING -s 216.x.x.x -d 238.x.x.x -m state --state RELATED,ESTABLISHED -j MASQ
iptables -t nat -A PREROUTING -d 238.x.x.x -j DNAT --to 216.x.x.x
 
 
Can someone please help me as I cannot figure out what I am doing wrong.
 
 
Thank you,
 
Linux



[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