Quote:
Originally Posted by oudmaster
hi all,
I am using Zeroshell vRouter which is based on Linux !
I am connecting two networks,
is it possible to do policy routing so if smtp traffic comes from one network is redirected to a specific IP address !?
thanks,
|
from a terminal try the following; HOWEVER do not SAVE this change until verified it is working like you expect
Code:
iptables -A PREROUTING -t nat -p tcp -i <inbound interface> --dport -j DNAT --to <ip to forward to>
iptables -A FORWARD -p tcp --dport 25 -d <ip to forward to> -j ACCEPT
It might help if you expand a little bit by giving more information. Even if you have to come up with a false IP scheme just for this post.